Logs: freenode/#haskell
| 2021-02-28 12:59:10 | <daffy> | hmm but if i'm not returning img how come the image is still displayed? |
| 2021-02-28 12:59:31 | <xsperry> | in the same way putStrLn doesn't return the string it prints |
| 2021-02-28 12:59:37 | <daffy> | oh wait fin itself is an image |
| 2021-02-28 12:59:54 | <daffy> | oh okay i see what u mean |
| 2021-02-28 13:01:17 | × | kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection) |
| 2021-02-28 13:01:29 | → | kritzefitz joins (~kritzefit@212.86.56.80) |
| 2021-02-28 13:02:12 | <boxscape> | daffy since you're not using img you can also replace `img <- displayImage fin` with just `displayImage fin` |
| 2021-02-28 13:02:21 | × | fendor quits (~fendor@078132053193.public.t-mobile.at) (Ping timeout: 264 seconds) |
| 2021-02-28 13:02:51 | <Clint> | and is there a purpose in not having main :: IO () ? |
| 2021-02-28 13:03:22 | <boxscape> | ah that's a good point |
| 2021-02-28 13:04:02 | <daffy> | not having? or having |
| 2021-02-28 13:04:42 | <boxscape> | daffy `main` typically has the type `IO ()`, since its only purpose (usually) is to perform an IO action, not to return anything |
| 2021-02-28 13:05:17 | <boxscape> | daffy in your case that would mean having the last line be `displayImage fin` instead of adding `return fin` at the end |
| 2021-02-28 13:05:44 | <daffy> | oh |
| 2021-02-28 13:06:22 | <boxscape> | daffy though then you would have to make sure that it knows it should be using `VS` somewhere else, for example by adding the signature to `let fin = I.fromLists a :: Inte.Image I.VS Y Double` |
| 2021-02-28 13:06:38 | <infinisil> | It probably would make sense for main to be `IO ExitCode` |
| 2021-02-28 13:07:15 | <xsperry> | it would make average main longer though, since you want to return 0 in most cases |
| 2021-02-28 13:07:18 | <boxscape> | infinisil does that work, as in, will the OS accept that as exit code? |
| 2021-02-28 13:07:34 | <infinisil> | Oh no it doesn't work currently, I'm pretty sure at least |
| 2021-02-28 13:07:38 | <boxscape> | I see |
| 2021-02-28 13:07:39 | <xsperry> | no, return of main is ignored (except in ghci) |
| 2021-02-28 13:08:24 | <daffy> | ok |
| 2021-02-28 13:09:06 | <daffy> | if i'm writing to a single folder, does the forward slash go before or after the name of the folder? i've tried both but both give me errros |
| 2021-02-28 13:09:23 | <boxscape> | writing what? |
| 2021-02-28 13:09:55 | <daffy> | writing image to a file |
| 2021-02-28 13:10:01 | <daffy> | i mean |
| 2021-02-28 13:10:16 | <daffy> | yeah writing image to a file lol |
| 2021-02-28 13:10:21 | <enikar> | is it possible to have a different type for main than IO ()? |
| 2021-02-28 13:10:34 | <boxscape> | enikar I think `IO t` works, for any t |
| 2021-02-28 13:11:07 | <enikar> | ok. That wonders me. |
| 2021-02-28 13:11:12 | <boxscape> | daffy hm, in principle I would think something like "foldrName/fileName" should work, though I haven't used the hip functions |
| 2021-02-28 13:11:44 | <boxscape> | enikar I'm pretty sure that's mostly just so you can use IO actions as the last line in main without having to explicitly discard the result |
| 2021-02-28 13:11:55 | <boxscape> | s/IO actions/IO actions which don't have type IO () |
| 2021-02-28 13:19:13 | <enikar> | but nothing can read this result. For what is it usefull? |
| 2021-02-28 13:21:11 | <boxscape> | enikar say you want to end your program with saying "press enter to exit the program" and then wait for enter to be pressed. You can do that by writing `do putStrLn "press enter"; getLine`. But the type of this is `IO String` - so you couldn't do this if the type had to be IO () |
| 2021-02-28 13:21:55 | <daffy> | oh i'm an idiot i just forgot to specify the name of the file |
| 2021-02-28 13:22:01 | <daffy> | thanks boxscape for the help |
| 2021-02-28 13:22:07 | <boxscape> | you're welcome |
| 2021-02-28 13:22:55 | <boxscape> | enikar if it had to be IO () the last line would have to be `void getLine` instead - not a huge difference, I admit |
| 2021-02-28 13:24:59 | <xsperry> | enikar, ghci can read the result. I sometimes take advantage of that (though rarely) |
| 2021-02-28 13:25:38 | <boxscape> | I wonder if a haskell REPL was assumed to become a thing when the committee came up with this rule |
| 2021-02-28 13:25:56 | <boxscape> | I imagine probably? |
| 2021-02-28 13:26:11 | × | pavonia quits (~user@unaffiliated/siracusa) (Quit: Bye!) |
| 2021-02-28 13:28:12 | <boxscape> | hm can't figure out whether Miranda has a REPL |
| 2021-02-28 13:32:32 | <enikar> | boxscape: I see. But for continuing the programm, IO () should also work, I bet. am I wrong? To Continue, I just call main recursively. |
| 2021-02-28 13:32:43 | <enikar> | but never mind. |
| 2021-02-28 13:32:48 | <boxscape> | yeah |
| 2021-02-28 13:35:46 | → | Sheilong joins (uid293653@gateway/web/irccloud.com/x-lljagtdqleuggsro) |
| 2021-02-28 13:35:49 | × | son0p quits (~son0p@181.58.39.182) (Quit: leaving) |
| 2021-02-28 13:36:16 | × | rayyyy quits (~nanoz@gateway/tor-sasl/nanoz) (Ping timeout: 268 seconds) |
| 2021-02-28 13:38:30 | → | Varis joins (~Tadas@unaffiliated/varis) |
| 2021-02-28 13:51:54 | × | hiroaki_ quits (~hiroaki@2a02:908:4b18:8c40:cc64:29af:c80:536f) (Ping timeout: 246 seconds) |
| 2021-02-28 13:52:20 | → | elfets joins (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) |
| 2021-02-28 13:53:22 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:692f:34e4:c65a:92f2) |
| 2021-02-28 13:56:36 | → | bitmagie joins (~Thunderbi@200116b806dcda002112473b8db035bd.dip.versatel-1u1.de) |
| 2021-02-28 13:57:23 | → | bergey joins (~user@pool-74-108-99-127.nycmny.fios.verizon.net) |
| 2021-02-28 13:58:14 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:692f:34e4:c65a:92f2) (Ping timeout: 264 seconds) |
| 2021-02-28 13:58:25 | → | soft-warm joins (44695313@ip68-105-83-19.sd.sd.cox.net) |
| 2021-02-28 13:59:26 | → | hendi joins (uid489601@gateway/web/irccloud.com/x-cyumymliypkvjqpl) |
| 2021-02-28 13:59:52 | × | soft-warm quits (44695313@ip68-105-83-19.sd.sd.cox.net) (Client Quit) |
| 2021-02-28 14:01:04 | × | olligobber quits (olligobber@gateway/vpn/privateinternetaccess/olligobber) (Remote host closed the connection) |
| 2021-02-28 14:01:23 | × | dxld quits (~dxld@rush.pub.dxld.at) (Remote host closed the connection) |
| 2021-02-28 14:02:34 | × | bergey quits (~user@pool-74-108-99-127.nycmny.fios.verizon.net) (Ping timeout: 260 seconds) |
| 2021-02-28 14:02:54 | → | soft-warm joins (44695313@ip68-105-83-19.sd.sd.cox.net) |
| 2021-02-28 14:02:56 | × | ambiso9 quits (~ambiso@209.182.239.205) (Quit: The Lounge - https://thelounge.chat) |
| 2021-02-28 14:03:36 | → | svet_ joins (~svet@90.200.185.163) |
| 2021-02-28 14:04:38 | → | ambiso9 joins (~ambiso@209.182.239.205) |
| 2021-02-28 14:05:17 | → | ADG1089__ joins (~aditya@110.226.222.179) |
| 2021-02-28 14:05:22 | → | zebrag joins (~inkbottle@aaubervilliers-654-1-83-46.w86-212.abo.wanadoo.fr) |
| 2021-02-28 14:05:39 | <ADG1089__> | anyone running haskell on arch? |
| 2021-02-28 14:07:49 | × | forgottenone quits (~forgotten@176.42.27.254) (Remote host closed the connection) |
| 2021-02-28 14:08:55 | → | forgottenone joins (~forgotten@176.42.27.254) |
| 2021-02-28 14:10:48 | <ADG1089__> | how to automatically add extra deps based on hints from stack build? |
| 2021-02-28 14:11:20 | <int-e> | ADG1089__: I've done that for a while... I recommend only using the distro compiler to compile your own |
| 2021-02-28 14:11:43 | <int-e> | stack works I suppose |
| 2021-02-28 14:12:01 | → | carlomagno joins (~cararell@148.87.23.10) |
| 2021-02-28 14:12:02 | <nshepperd2> | step 1 of using haskell on arch is to uninstall all haskell-related arch packages |
| 2021-02-28 14:12:07 | <int-e> | but then it shouyld no longer matter that you're on arch |
| 2021-02-28 14:13:11 | → | nineonine joins (~nineonine@2604:3d08:7785:9600:8c3e:8d1a:de68:76d3) |
| 2021-02-28 14:14:31 | × | nineonine quits (~nineonine@2604:3d08:7785:9600:8c3e:8d1a:de68:76d3) (Remote host closed the connection) |
| 2021-02-28 14:15:15 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-02-28 14:15:17 | → | nineonine joins (~nineonine@2604:3d08:7785:9600:8c3e:8d1a:de68:76d3) |
| 2021-02-28 14:15:35 | <ADG1089__> | problem is llvm is v11 on arch, latest ghc supports v10 or 9 i think |
| 2021-02-28 14:15:57 | × | minoru_shiraeesh quits (~shiraeesh@109.166.56.139) (Remote host closed the connection) |
| 2021-02-28 14:17:18 | → | bitmapper joins (uid464869@gateway/web/irccloud.com/x-fhpztltksioqsdcb) |
| 2021-02-28 14:18:03 | × | deja quits (~deja@212095008174.public.telering.at) (Quit: requested) |
| 2021-02-28 14:18:38 | → | renzhi joins (~renzhi@2607:fa49:653f:eb00::5bc7) |
| 2021-02-28 14:19:02 | → | minoru_shiraeesh joins (~shiraeesh@109.166.56.139) |
| 2021-02-28 14:19:14 | → | mk2048 joins (3e85a292@h62-133-162-146.dyn.bashtel.ru) |
| 2021-02-28 14:19:24 | × | nineonine quits (~nineonine@2604:3d08:7785:9600:8c3e:8d1a:de68:76d3) (Ping timeout: 240 seconds) |
| 2021-02-28 14:19:33 | → | acarrico joins (~acarrico@dhcp-68-142-39-249.greenmountainaccess.net) |
| 2021-02-28 14:19:44 | → | machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca) |
| 2021-02-28 14:21:17 | <int-e> | ADG1089__: Oh, that may be a problem, but I can't help. I only used the native code generator (on x86-64)... |
| 2021-02-28 14:23:36 | × | hendursa1 quits (~weechat@gateway/tor-sasl/hendursaga) (Quit: hendursa1) |
| 2021-02-28 14:23:49 | <int-e> | Arch just isn't a very nice distribution, I'm afraid... some packages just need slots to be used sanely, and llvm is one of them. not to mention the insanity of continually updating haskell packages shipped as shared libraries with no promise of binary compatibility between versions |
| 2021-02-28 14:23:57 | → | hendursaga joins (~weechat@gateway/tor-sasl/hendursaga) |
| 2021-02-28 14:25:15 | × | luigy quits (~luigy@104.236.106.229) (*.net *.split) |
| 2021-02-28 14:25:15 | × | xcin quits (~x@159.203.132.140) (*.net *.split) |
| 2021-02-28 14:25:15 | × | debugloop quits (~danieln@unaffiliated/debugloop) (*.net *.split) |
| 2021-02-28 14:25:22 | → | luigy joins (~luigy@104.236.106.229) |
All times are in UTC.