2025/11/30

Newest at the top

2025-11-30 22:32:49 +0100 <tomsmeding> (I often do `:def R \_ -> Prelude.return ":r\n:m -Day01\n"` or similar so that I can :R and have ghci do the right thing)
2025-11-30 22:30:20 +0100 <tomsmeding> then you can at least see what's up
2025-11-30 22:30:15 +0100 <tomsmeding> this was default pre-GHC-9.0 but they changed it to "ghci> "
2025-11-30 22:30:07 +0100 <tomsmeding> related tip: put `:set prompt "%s> " in your .ghci, then it shows you which modules you have in scope
2025-11-30 22:30:02 +0100 <iqubic> It seems to be working now.
2025-11-30 22:29:57 +0100 <iqubic> Thanks. This is for Advent of Code stuff. I'm just getting my development environment set up for this year.
2025-11-30 22:29:43 +0100 <tomsmeding> I hate this behaviour and I have still not complained officially about it
2025-11-30 22:29:16 +0100 <tomsmeding> You'll have to do :m *Day02 again, or :m -Day01, to get Day02 only
2025-11-30 22:28:59 +0100 <tomsmeding> the problem is that :r adds the first module in the list in your cabal file to the scope if it isn't already there; this means, in your case, that if you do :m *Day02 and then :r, you'll have _both_ Day01 and Day02 in scope
2025-11-30 22:28:43 +0100 <iqubic> thank you!
2025-11-30 22:28:00 +0100 <tomsmeding> yes
2025-11-30 22:27:51 +0100 <iqubic> Can I then use :r to reload the module when I make changes to Day01?
2025-11-30 22:27:35 +0100trickard_trickard
2025-11-30 22:27:26 +0100 <iqubic> Yeah, that works.
2025-11-30 22:27:05 +0100 <tomsmeding> (or, if you don't care, disable the warning in ghci)
2025-11-30 22:26:43 +0100 <tomsmeding> use :m *Day01
2025-11-30 22:26:40 +0100 <tomsmeding> at which point it's forgotten that you had those other-modules set, so you get the warning
2025-11-30 22:26:23 +0100 <tomsmeding> iqubic: don't use :l, it throws away the environment that cabal set up for you and loads things from scratch again
2025-11-30 22:26:13 +0100wootehfoot(~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2025-11-30 22:25:43 +0100 <iqubic> https://dpaste.alwaysdata.org/jTztyJ0w
2025-11-30 22:23:35 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 240 seconds)
2025-11-30 22:23:30 +0100 <tomsmeding> can you post the full output of `cabal repl`?
2025-11-30 22:22:26 +0100 <iqubic> No.
2025-11-30 22:22:02 +0100 <tomsmeding> does it work if you `cabal repl` in the terminal?
2025-11-30 22:21:49 +0100 <iqubic> Via Emacs. I'm using Haskell-Mode to open the repl for me.
2025-11-30 22:21:21 +0100 <tomsmeding> iqubic: how are you starting ghci?
2025-11-30 22:20:29 +0100 <yin> namespace pollution, mostly
2025-11-30 22:19:50 +0100 <iqubic> Why?
2025-11-30 22:19:37 +0100 <yin> i hate Prelude -.-
2025-11-30 22:19:04 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-30 22:18:58 +0100 <iqubic> I can't tell if this is a Nix thing or not.
2025-11-30 22:18:33 +0100 <iqubic> https://gist.github.com/IQubic/ae3f1e0c3062ffd0a65035771dffdc90
2025-11-30 22:18:30 +0100 <iqubic> When I load up Day01 in GHCi I'm given an error.
2025-11-30 22:17:42 +0100 <iqubic> I seem to be getting a weird "missing-home-modules" error in GHCi.
2025-11-30 22:11:20 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 240 seconds)
2025-11-30 22:10:30 +0100ByronJohnson(~bairyn@MAIL.DIGITALKINGDOM.ORG) ByronJohnson
2025-11-30 22:09:29 +0100bairyn(~bairyn@MAIL.DIGITALKINGDOM.ORG) (Ping timeout: 244 seconds)
2025-11-30 22:09:20 +0100 <[exa]> mauke: ok thanks for info, I'll try to push there a bit and see
2025-11-30 22:08:53 +0100trickard_(~trickard@cpe-85-98-47-163.wireline.com.au)
2025-11-30 22:08:33 +0100trickard(~trickard@cpe-85-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-11-30 22:08:33 +0100karenw(~karenw@user/karenw) (Ping timeout: 250 seconds)
2025-11-30 22:08:08 +0100 <monochrom> "The side quests are more important than the destination" >:)
2025-11-30 22:07:39 +0100 <tomsmeding> iqubic: if you only want to enable it in a specific module, you can also add {-# OPTIONS -Wno-x-partial #-} at the top of the file
2025-11-30 22:07:15 +0100peterbecich(~Thunderbi@172.222.148.214) (Ping timeout: 240 seconds)
2025-11-30 22:06:53 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-30 22:06:43 +0100 <tomsmeding> iqubic: ghc-options: -Wno-x-partial
2025-11-30 22:05:40 +0100 <monochrom> Similarly I found interesting books I didn't know I needed by going to the physical library bookshelf for the book I thought I needed but "wait a second all these other neighbouring books are way more interesting!"
2025-11-30 22:05:29 +0100 <iqubic> How do I enable that in my Cabal file?
2025-11-30 22:04:18 +0100 <monochrom> The collateral ROI being that I picked up some other options I didn't need back then but did later.
2025-11-30 22:03:48 +0100 <glguy> that warning is hacked in with an extension warning, so it's harder to find than others