Logs: liberachat/#haskell
| 2021-06-06 23:15:09 | <janus> | does someone know of a good introduction to the continuation monad? |
| 2021-06-06 23:16:53 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:d950:8679:5786:8899) |
| 2021-06-06 23:16:59 | × | bfrk quits (~Thunderbi@200116b845b1f5008103f1add8a488d1.dip.versatel-1u1.de) (Ping timeout: 272 seconds) |
| 2021-06-06 23:16:59 | bfrk1 | is now known as bfrk |
| 2021-06-06 23:18:23 | <boxscape> | janus I thought this was alright https://en.m.wikibooks.org/wiki/Haskell/Continuation_passing_style |
| 2021-06-06 23:18:24 | × | ddellacosta quits (~ddellacos@89.45.224.92) (Ping timeout: 252 seconds) |
| 2021-06-06 23:19:02 | × | V quits (~v@anomalous.eu) (Ping timeout: 252 seconds) |
| 2021-06-06 23:19:18 | → | Flux joins (~Flux@41337027.cst.lightpath.net) |
| 2021-06-06 23:19:52 | <Flux> | I installed a package via "stack build <pkg>" and am trying to import the package but it's not working, any tips on how I might debug this? |
| 2021-06-06 23:20:20 | <Flux> | By not working, I mean it can't find the module when i try to import it |
| 2021-06-06 23:21:48 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:d950:8679:5786:8899) (Ping timeout: 272 seconds) |
| 2021-06-06 23:23:30 | → | Lycurgus joins (~juan@cpe-45-46-140-49.buffalo.res.rr.com) |
| 2021-06-06 23:25:28 | → | Toast52 joins (~Toast52@151.192.167.120) |
| 2021-06-06 23:27:01 | <janus> | Flux: you need to make sure that the build environment uses the same stack-lts that you built it with |
| 2021-06-06 23:27:15 | <Flux> | can you explain what that means |
| 2021-06-06 23:27:40 | <janus> | Flux: when you write "stack build <pkg>" in some arbitrary folder, stack will choose some arbitrary compiler version to install the package for |
| 2021-06-06 23:27:53 | <janus> | but most likely you are trying to use it in some project, right? |
| 2021-06-06 23:27:58 | <Flux> | yeah |
| 2021-06-06 23:28:08 | × | aplainzetakind quits (~johndoe@captainludd.powered.by.lunarbnc.net) (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) |
| 2021-06-06 23:28:17 | <janus> | so if that is the case, it makes more sense to add the dependency to your project configuration so that you can put it in version control and such |
| 2021-06-06 23:28:26 | → | aplainzetakind joins (~johndoe@captainludd.powered.by.lunarbnc.net) |
| 2021-06-06 23:28:33 | <Flux> | hmm like when i do "stack build" and "stack run" things are ok |
| 2021-06-06 23:28:37 | <Flux> | but i'm trying to mess around in ghci |
| 2021-06-06 23:28:40 | <Flux> | and it's not importing correctly |
| 2021-06-06 23:28:50 | <geekosaur> | stack ghci, or just plain ghci? |
| 2021-06-06 23:28:58 | <janus> | if you don't have a project, and you just want a repl with the package, you can write 'stack repl <pkg>' |
| 2021-06-06 23:29:00 | <Flux> | oh i was using plain ghci |
| 2021-06-06 23:29:04 | <geekosaur> | plain ghci will not see things installed by stack |
| 2021-06-06 23:29:22 | <Flux> | gotcha, didn't know that |
| 2021-06-06 23:29:40 | × | Lycurgus quits (~juan@cpe-45-46-140-49.buffalo.res.rr.com) (Quit: Exeunt) |
| 2021-06-06 23:29:48 | <janus> | but better just write a package.yaml, stick it in there, and then you can have version control |
| 2021-06-06 23:30:03 | <janus> | and you can specify the ghc flags and all that jazz |
| 2021-06-06 23:31:37 | <Flux> | what is stack ghci actually doing |
| 2021-06-06 23:31:53 | <Flux> | it's taking an awfully long time |
| 2021-06-06 23:32:09 | <monochrom> | janus: My http://www.vex.net/~trebla/haskell/cont.xhtml is a good introduction to the Cont monad. |
| 2021-06-06 23:32:19 | <janus> | Flux: it will look for a project configuration file, and if it doesn't find one, it will just choose some compiler and lts and download the packages for that |
| 2021-06-06 23:32:42 | <janus> | Flux: so if you have a desired lts or compiler you want to use, better specify it... and if you specify it, why not specify it in a file ;) |
| 2021-06-06 23:33:05 | <janus> | Flux: it is probably taking a long time because it needs to get its own ghc which is separate from the ghci you invoke from the command line |
| 2021-06-06 23:33:06 | → | fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) |
| 2021-06-06 23:33:29 | <janus> | Flux: and if the package you specify has a lot of dependencies, all of those will need to get built for that compiler |
| 2021-06-06 23:33:47 | × | Tuplanolla quits (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi) (Quit: Leaving.) |
| 2021-06-06 23:33:48 | → | fendor_ joins (~fendor@178.165.128.197.wireless.dyn.drei.com) |
| 2021-06-06 23:35:21 | × | zeenk quits (~zeenk@2a02:2f04:a310:b600:b098:bf18:df4d:4c41) (Quit: Konversation terminated!) |
| 2021-06-06 23:37:00 | × | fendor quits (~fendor@77.119.131.188.wireless.dyn.drei.com) (Ping timeout: 272 seconds) |
| 2021-06-06 23:37:11 | × | madjestic quits (~madjestic@88-159-247-120.fixed.kpn.net) (Ping timeout: 252 seconds) |
| 2021-06-06 23:37:39 | × | fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 252 seconds) |
| 2021-06-06 23:39:21 | <Flux> | i see, i think there is a stack.yaml file |
| 2021-06-06 23:39:55 | × | fendor_ quits (~fendor@178.165.128.197.wireless.dyn.drei.com) (Ping timeout: 264 seconds) |
| 2021-06-06 23:40:09 | → | jmcarthur joins (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) |
| 2021-06-06 23:40:12 | <Flux> | but somehow it cannot satisfy package |
| 2021-06-06 23:40:22 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:d950:8679:5786:8899) |
| 2021-06-06 23:40:30 | × | jmcarthur quits (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) (Client Quit) |
| 2021-06-06 23:42:36 | → | fendor joins (~fendor@178.115.130.234.wireless.dyn.drei.com) |
| 2021-06-06 23:46:06 | <janus> | if you can do "stack build <pkg>" in that directory, you should also be able to do "stack repl <pkg>" |
| 2021-06-06 23:46:35 | <janus> | if you can do "stack build <pkg>" in another directory, but not that one, it is probably because that specific lts/ghc version is not compatible with the package |
| 2021-06-06 23:46:35 | → | V joins (~v@anomalous.eu) |
| 2021-06-06 23:46:52 | <janus> | if you tell us the name maybe it is easier to debug, and paste the error in the pastebin in topic |
| 2021-06-06 23:47:43 | × | MQ-17J quits (~MQ-17J@8.21.10.116) (Ping timeout: 264 seconds) |
| 2021-06-06 23:48:27 | <Flux> | sure, i am trying to build hasktorch https://github.com/hasktorch/hasktorch |
| 2021-06-06 23:49:07 | <Flux> | https://paste.tomsmeding.com/3l5bgA93 |
| 2021-06-06 23:49:08 | <Flux> | here is the error i am seeing |
| 2021-06-06 23:49:45 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-06-06 23:52:28 | <janus> | Flux: which command is that the output of? |
| 2021-06-06 23:52:32 | <Flux> | stack ghci |
| 2021-06-06 23:52:44 | × | Deide quits (~Deide@user/deide) (Quit: Seeee yaaaa) |
| 2021-06-06 23:53:00 | <Flux> | eveyrthing else works (like stack build hasktorch, etc) |
| 2021-06-06 23:53:09 | <janus> | Flux: ok i think that warning says that it wants you to specify package since it doesn't support multiple packages for the ghci |
| 2021-06-06 23:53:34 | <janus> | Flux: so maybe try "stack repl examples" or "stack repl hasktorch" from that same folder? |
| 2021-06-06 23:53:55 | <Flux> | ok that does not work either |
| 2021-06-06 23:54:10 | → | pavonia joins (~user@user/siracusa) |
| 2021-06-06 23:54:34 | <Flux> | stack repl hasktorch worked but not examples |
| 2021-06-06 23:55:33 | × | bfrk quits (~Thunderbi@200116b8451fe900af67d936efb17ea9.dip.versatel-1u1.de) (Ping timeout: 268 seconds) |
| 2021-06-06 23:55:52 | × | Axman6 quits (~Axman6@user/axman6) (Remote host closed the connection) |
| 2021-06-06 23:56:06 | → | Axman6 joins (~Axman6@user/axman6) |
| 2021-06-06 23:56:46 | → | ddellacosta joins (~ddellacos@89.45.224.248) |
| 2021-06-06 23:57:55 | × | waleee quits (~waleee@h-98-128-228-119.NA.cust.bahnhof.se) (Ping timeout: 264 seconds) |
| 2021-06-06 23:58:43 | → | MQ-17J joins (~MQ-17J@8.21.10.116) |
| 2021-06-06 23:59:15 | → | hmmmas joins (~chenqisu1@183.217.201.236) |
| 2021-06-06 23:59:18 | → | jmcarthur joins (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) |
| 2021-06-06 23:59:59 | → | myShoggoth joins (~myShoggot@97-120-89-117.ptld.qwest.net) |
| 2021-06-07 00:01:02 | → | haskellGuestGuy joins (~haskellGu@81.96.113.213) |
| 2021-06-07 00:01:31 | × | ddellacosta quits (~ddellacos@89.45.224.248) (Ping timeout: 264 seconds) |
| 2021-06-07 00:01:36 | <Flux> | can i make it not recompile it every time i type stack repl hasktorch |
| 2021-06-07 00:02:42 | × | prite quits (~pritam@user/pritambaral) (Ping timeout: 264 seconds) |
| 2021-06-07 00:03:35 | × | xff0x quits (~xff0x@2001:1a81:53fc:900:3f16:186f:3986:9c65) (Ping timeout: 252 seconds) |
| 2021-06-07 00:04:08 | → | xff0x joins (~xff0x@2001:1a81:53fc:900:d0f6:e7c5:21c7:3f71) |
| 2021-06-07 00:04:28 | <Flux> | what's the easiest way to install new version of ghci? |
| 2021-06-07 00:05:52 | <haskellGuestGuy> | anyone connecting to this server/channel via limeChat IRC? |
| 2021-06-07 00:06:19 | <shapr> | Flux: I use ghcup |
| 2021-06-07 00:06:20 | <geekosaur> | Flux, with stack you select a different resolver in stack.yaml |
| 2021-06-07 00:06:22 | × | jmcarthur quits (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) (Quit: My MacBook Air has gone to sleep. ZZZzzz…) |
| 2021-06-07 00:06:41 | → | fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) |
| 2021-06-07 00:06:59 | <geekosaur> | consult stackage.org to see what resolvers come with what ghc(i) versions |
| 2021-06-07 00:08:25 | <Flux> | ghcup doesn't support 8.10.4? :0 |
| 2021-06-07 00:08:42 | <geekosaur> | it does |
| 2021-06-07 00:08:55 | <geekosaur> | but stack won't use things you install with ghcup |
| 2021-06-07 00:09:12 | <geekosaur> | it uses things it installs based on the resolver you select |
| 2021-06-07 00:10:55 | <Axman6> | haskellGuestGuy: no, but if you ask your question we might be able to help anyway |
| 2021-06-07 00:11:07 | × | fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 264 seconds) |
| 2021-06-07 00:11:54 | → | jmcarthur joins (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) |
All times are in UTC.