Logs: freenode/#haskell
| 2020-09-30 03:30:44 | → | Tspoon joins (tlarjoma@hilla.kapsi.fi) |
| 2020-09-30 03:32:45 | → | Logio joins (em@kapsi.fi) |
| 2020-09-30 03:32:45 | → | adam_wespiser joins (~adam_wesp@209.6.42.110) |
| 2020-09-30 03:33:35 | → | elliott_ joins (~elliott_@pool-100-36-54-163.washdc.fios.verizon.net) |
| 2020-09-30 03:34:28 | × | ddellacosta quits (~dd@86.106.121.168) (Ping timeout: 260 seconds) |
| 2020-09-30 03:35:20 | → | Klumben joins (Nsaiswatch@gateway/shell/panicbnc/x-qfyvvmfvccqnqxdf) |
| 2020-09-30 03:35:45 | → | filwisher joins (~filwisher@cpc76738-dals23-2-0-cust186.20-2.cable.virginm.net) |
| 2020-09-30 03:35:51 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-09-30 03:38:52 | × | machinedgod quits (~machinedg@d67-193-126-196.home3.cgocable.net) (Ping timeout: 258 seconds) |
| 2020-09-30 03:39:18 | × | reallymemorable quits (~quassel@ip68-9-215-56.ri.ri.cox.net) (Remote host closed the connection) |
| 2020-09-30 03:41:28 | × | filwisher quits (~filwisher@cpc76738-dals23-2-0-cust186.20-2.cable.virginm.net) (Ping timeout: 260 seconds) |
| 2020-09-30 03:41:29 | → | finkata joins (~dpetrov@83.222.188.39) |
| 2020-09-30 03:45:19 | <sim590> | How can I download a package with cabal globally, build it globally and then build my project that uses the same library without building it again? |
| 2020-09-30 03:45:45 | <sim590> | and I mean all of that before switching to the directory containing my project. |
| 2020-09-30 03:47:15 | <sim590> | I don't want to download and build the library more than once. |
| 2020-09-30 03:47:44 | → | Guest_91 joins (48855e8f@cpe-72-133-94-143.sw.res.rr.com) |
| 2020-09-30 03:48:38 | × | ericsagnes quits (~ericsagne@2405:6580:0:5100:4d11:5c80:3101:9ff9) (Ping timeout: 244 seconds) |
| 2020-09-30 03:48:42 | <Axman6> | I think that happens with the new style builds, identical builds should be shared between projects AFAIUI |
| 2020-09-30 03:48:59 | × | darjeeling_ quits (~darjeelin@112.16.171.8) (Ping timeout: 260 seconds) |
| 2020-09-30 03:50:14 | <Guest_91> | Hello after you install Haskell on OS X how do you start running it |
| 2020-09-30 03:50:29 | <Axman6> | what do you want to start? ghci? |
| 2020-09-30 03:50:35 | <sim590> | OK. I'm building a docker image. I'm trying this: https://paste.debian.net/1165214/. It's essentially copying my cabal file and building the project libraries there. |
| 2020-09-30 03:50:37 | × | toorevitimirp quits (~tooreviti@117.182.182.201) (Ping timeout: 244 seconds) |
| 2020-09-30 03:50:43 | <Axman6> | most of what is installed is a compiler |
| 2020-09-30 03:51:28 | <sim590> | Shouldn't this make it so that if I run a build of the same project inside the resuting image, I should be able to build my project without downloading/building all of the dependencies? |
| 2020-09-30 03:51:42 | → | iqubic joins (~user@2601:602:9500:4870:d13c:5aea:b558:d2ed) |
| 2020-09-30 03:52:19 | <Guest_91> | yes ghci |
| 2020-09-30 03:52:28 | <Axman6> | run ghci in the termina; |
| 2020-09-30 03:52:31 | <Axman6> | l* |
| 2020-09-30 03:53:05 | <Guest_91> | I tried that and it gives command not found |
| 2020-09-30 03:53:29 | <Axman6> | open a new terminal and try again, your PATH won't be updated in an already open terminal |
| 2020-09-30 03:53:40 | <Axman6> | how did you install things? |
| 2020-09-30 03:55:14 | <sim590> | Shouldn't this: https://i.imgur.com/GtUn39G.png work? One of my dependencies is Colog. |
| 2020-09-30 03:55:52 | <Guest_91> | thanks! it was the opening of new term window |
| 2020-09-30 03:56:06 | <Axman6> | have you loaded the Colog module? :m +Colog.Monad |
| 2020-09-30 03:56:43 | <Axman6> | :l(oad) is for local modules, :m(odule) loads modules visible to GHC |
| 2020-09-30 03:57:05 | <Axman6> | (that's a really poor explanantion, but basically any library would be loaded with :m) |
| 2020-09-30 03:57:26 | → | kreative joins (~kreative@185.163.110.116) |
| 2020-09-30 03:58:35 | × | inerkick quits (~rohit@117.230.9.17) (Quit: Leaving) |
| 2020-09-30 04:00:01 | × | Guest_91 quits (48855e8f@cpe-72-133-94-143.sw.res.rr.com) (Quit: Ping timeout (120 seconds)) |
| 2020-09-30 04:00:28 | <sim590> | it doesn't work: https://i.imgur.com/BkeFbYY.png |
| 2020-09-30 04:00:38 | <sim590> | Normally, it would say to load the package first or something, no? |
| 2020-09-30 04:00:42 | <sim590> | Anyway, it doesn't load. |
| 2020-09-30 04:01:24 | → | ericsagnes joins (~ericsagne@2405:6580:0:5100:c862:81df:d6b3:8407) |
| 2020-09-30 04:02:07 | × | ChaiTRex quits (~ChaiTRex@gateway/tor-sasl/chaitrex) (Remote host closed the connection) |
| 2020-09-30 04:02:13 | → | day_ joins (~Unknown@unaffiliated/day) |
| 2020-09-30 04:02:43 | → | ChaiTRex joins (~ChaiTRex@gateway/tor-sasl/chaitrex) |
| 2020-09-30 04:05:05 | × | day quits (~Unknown@unaffiliated/day) (Ping timeout: 240 seconds) |
| 2020-09-30 04:05:05 | day_ | is now known as day |
| 2020-09-30 04:05:10 | <sim590> | That's the output when I'm building the docker image: https://i.imgur.com/74FKwjQ.png |
| 2020-09-30 04:05:50 | <Axman6> | without knowing more about what you've done there's no way to know how to help. |
| 2020-09-30 04:06:08 | <sim590> | What I did is in the docker image. |
| 2020-09-30 04:07:42 | × | polyphem quits (~p0lyph3m@2a02:810d:640:776c:76d7:55f6:f85b:c889) (Ping timeout: 260 seconds) |
| 2020-09-30 04:09:05 | <sim590> | I've published my latest attempt at docker.io/sim590/hart |
| 2020-09-30 04:09:51 | <Axman6> | "Ahoy, it looks like you are in uncharted waters" |
| 2020-09-30 04:10:33 | <sim590> | Yeah the URL is https://hub.docker.com/repository/docker/sim590/hart, but the image is named sim590/hart. Tag can be :latest, so sim590/hart:latest. |
| 2020-09-30 04:11:13 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds) |
| 2020-09-30 04:11:15 | <sim590> | You could inspect it with `docker run -it sim590/hart:latest bash` if you could then tell me what's wrong. |
| 2020-09-30 04:11:25 | × | beka quits (~beka@gothdyke.mom) (Ping timeout: 240 seconds) |
| 2020-09-30 04:12:25 | × | mmaruseacph2 quits (~mihai@198.199.100.72) (Ping timeout: 240 seconds) |
| 2020-09-30 04:12:37 | → | filwisher joins (~filwisher@cpc76738-dals23-2-0-cust186.20-2.cable.virginm.net) |
| 2020-09-30 04:12:40 | → | mmaruseacph2 joins (~mihai@198.199.100.72) |
| 2020-09-30 04:12:42 | <sim590> | I do have 891M of stuff inside /root/.cabal. |
| 2020-09-30 04:13:18 | <Axman6> | I'm not going to run untrusted docer images on my machine, sorry. what does running a shell in it and running ghc-pkg list show? |
| 2020-09-30 04:14:34 | → | beka joins (~beka@gothdyke.mom) |
| 2020-09-30 04:15:09 | <sim590> | When looking inside ~/.cabal for co-log with docker run -it sim590/hart:latest find /root/.cabal -name \*co-log\*, I get this: https://paste.debian.net/1165215/ |
| 2020-09-30 04:15:52 | <sim590> | ghc-pkg list shows: https://paste.debian.net/1165216/. |
| 2020-09-30 04:15:55 | <Axman6> | and if you run ghci -package co-log? |
| 2020-09-30 04:17:18 | × | filwisher quits (~filwisher@cpc76738-dals23-2-0-cust186.20-2.cable.virginm.net) (Ping timeout: 272 seconds) |
| 2020-09-30 04:17:25 | <Axman6> | and what happens if instead of using ghci directly, you use cabal new-repl? |
| 2020-09-30 04:17:44 | <Axman6> | (I think that's a thing, I haven't used cabal directly for a long time) |
| 2020-09-30 04:18:02 | <sim590> | ghci -package co-log: https://paste.debian.net/1165217/ |
| 2020-09-30 04:18:06 | × | dolio quits (~dolio@haskell/developer/dolio) (Quit: ZNC 1.8.1 - https://znc.in) |
| 2020-09-30 04:19:16 | <sim590> | So the last command I did, I did move from /opt/hart to do this because I wanted to move from it to see if package was globally there. |
| 2020-09-30 04:20:12 | <sim590> | now after doing `cabal new-repl̀ from inside the /opt/hart directory, it's building stuff like https://paste.debian.net/1165218/ |
| 2020-09-30 04:20:28 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 272 seconds) |
| 2020-09-30 04:20:44 | <sim590> | But I thought it would have built already. |
| 2020-09-30 04:21:31 | <sim590> | But it won't be able to build `hart` since the code is not inside the image. |
| 2020-09-30 04:21:43 | <Axman6> | how are docker so bad a things. can;t even get the docker hub page to load again |
| 2020-09-30 04:21:44 | <sim590> | I just pushed my cabal file. |
| 2020-09-30 04:22:03 | <sim590> | The URL I gave you? |
| 2020-09-30 04:22:16 | <Axman6> | can you paste your docker file in dpaste? I can't load docker hub any more |
| 2020-09-30 04:22:35 | × | Jonno_FTW quits (~come@api.carswap.me) (Ping timeout: 260 seconds) |
| 2020-09-30 04:23:18 | → | Jonno_FTW joins (~come@api.carswap.me) |
| 2020-09-30 04:23:30 | <sim590> | ␒The docker file is:https://paste.debian.net/1165214/ |
| 2020-09-30 04:23:47 | × | mnrmnaugh quits (~mnrmnaugh@unaffiliated/mnrmnaugh) (Ping timeout: 260 seconds) |
| 2020-09-30 04:24:15 | → | dolio joins (~dolio@haskell/developer/dolio) |
| 2020-09-30 04:25:10 | → | thir joins (~thir@p200300f27f0fc60094e773283d7bf825.dip0.t-ipconnect.de) |
| 2020-09-30 04:28:24 | × | polyrain quits (~polyrain@2001:8003:e501:6901:4af:ac65:fda8:8e33) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-09-30 04:28:47 | × | Orbstheorem quits (~roosember@hellendaal.orbstheorem.ch) (Ping timeout: 246 seconds) |
| 2020-09-30 04:29:27 | × | thir quits (~thir@p200300f27f0fc60094e773283d7bf825.dip0.t-ipconnect.de) (Ping timeout: 240 seconds) |
| 2020-09-30 04:30:08 | <sim590> | OK. I just tried to do a new-install --only-dependencies after doing a new-build --only-dependencies and I think that it is wokring. Not sure, but I can now load the package inside ghci with -package co-log |
| 2020-09-30 04:30:10 | → | filwisher joins (~filwisher@cpc76738-dals23-2-0-cust186.20-2.cable.virginm.net) |
| 2020-09-30 04:30:50 | <sim590> | I did new-install --lib --only-dependencies -j4 actually |
| 2020-09-30 04:32:35 | → | bobajett joins (~user@2001:470:0:301::1e) |
| 2020-09-30 04:32:36 | → | Orbstheorem joins (~roosember@hellendaal.orbstheorem.ch) |
| 2020-09-30 04:32:44 | <sim590> | I'm trying to rebuild the image now https://paste.debian.net/1165220/ and see if it fixes it. |
| 2020-09-30 04:34:16 | <bobajett> | how can I write the function p where p [0,0,1,2,0,0,3,0] == [[1,2], [3]] ? (Noobie question) |
| 2020-09-30 04:34:45 | <glguy> | > let f [0,0,1,2,0,0,3,0] = [[1,2], [3]] in f [0,0,1,2,0,0,3,0] |
| 2020-09-30 04:34:48 | <lambdabot> | [[1,2],[3]] |
All times are in UTC.