Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,804,021 events total
2021-08-08 09:00:52 <Cale> nix-shell -p "(import <nixpkgs> {}).haskell.packages.ghc865.ghcWithPackages (pkgs: with pkgs; [ $* ])"
2021-08-08 09:01:10 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 258 seconds)
2021-08-08 09:01:12 <euouae> I don't know what you're asking me Cale
2021-08-08 09:01:17 <euouae> it's a macOS
2021-08-08 09:01:17 <Cale> er, actually, just changed that to ghc884 but the clipboard was still out of date :)
2021-08-08 09:01:23 <Cale> aaah
2021-08-08 09:02:03 pfurla joins (~pfurla@ool-182ed2e2.dyn.optonline.net)
2021-08-08 09:02:24 <Cale> nix is a package manager that can put you into shells where various dependencies are satisfied
2021-08-08 09:02:35 <maerwald[m]> you don't need nix
2021-08-08 09:02:39 <maerwald[m]> `cabal repl -w ghc-8.6.5 --build-depends reactive-banana` should work
2021-08-08 09:02:58 <maerwald[m]> if you're already struggling with cabal, nix will just be a nightmare
2021-08-08 09:03:08 <Cale> Of course you don't need it, but it can be handy if cabal's dependency resolution is not working :P
2021-08-08 09:03:15 <maerwald[m]> it is working
2021-08-08 09:03:45 <euouae> Cannot find ghc?
2021-08-08 09:03:55 <maerwald[m]> euouae: yes, install 8.6.5
2021-08-08 09:04:02 <maerwald[m]> euouae: how did you install ghc?
2021-08-08 09:04:14 <euouae> Is there something about that particular version?
2021-08-08 09:04:20 <euouae> I installed with the script from Haskell.org
2021-08-08 09:04:31 <maerwald[m]> it has a different base version... base is causing resolution error
2021-08-08 09:04:36 <maerwald[m]> base is tied to GHC
2021-08-08 09:04:41 <maerwald[m]> it's the haskell prelude and other stuff
2021-08-08 09:04:47 <euouae> `cabal install ghc-8.6.5` also fails to resolve dependencies
2021-08-08 09:05:02 <maerwald[m]> euouae: try `ghcup install ghc 8.6.5`
2021-08-08 09:05:21 <euouae> Yeah that worked
2021-08-08 09:05:31 <maerwald[m]> 8.6.5 is a very popular version, although it's a little old
2021-08-08 09:05:34 <euouae> so basically reactive-banana is using some other version of Base?
2021-08-08 09:05:47 <maerwald[m]> I haven't checked in detail
2021-08-08 09:05:56 <euouae> potentially, though?
2021-08-08 09:06:32 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2021-08-08 09:06:58 <euouae> OK I installed with the ghcup command, now what? The -w ghc-8.6.5 still fails
2021-08-08 09:06:58 __monty__ joins (~toonn@user/toonn)
2021-08-08 09:07:03 <euouae> Cant' find 'ghc'
2021-08-08 09:07:48 <maerwald[m]> euouae: does `ghci-8.6.5` work?
2021-08-08 09:07:59 <euouae> No
2021-08-08 09:08:20 <maerwald[m]> euouae: are you sure ghcup installed GHC successfully?
2021-08-08 09:08:37 <maerwald[m]> can you run: source ~/.ghcup/env
2021-08-08 09:09:16 <euouae> No such file
2021-08-08 09:09:23 sim590 joins (~simon@modemcable090.207-203-24.mc.videotron.ca)
2021-08-08 09:09:52 <maerwald[m]> euouae: export PATH="$HOME/.ghcup/bin:$PATH"
2021-08-08 09:10:20 <euouae> Yeah that worked as far as invoking ghci
2021-08-08 09:10:55 <euouae> Was I supposed to run `cabal user-config` or something like that?
2021-08-08 09:11:31 × azeem quits (~azeem@dynamic-adsl-78-13-247-121.clienti.tiscali.it) (Ping timeout: 258 seconds)
2021-08-08 09:11:35 × jneira_ quits (~jneira_@28.red-80-28-169.staticip.rima-tde.net) (Quit: Ping timeout (120 seconds))
2021-08-08 09:11:50 <euouae> OK the cabal repl command also worked. Wew. That was a lot
2021-08-08 09:12:19 <maerwald[m]> so the resolution error is caused by `hashable <1.3`, which further restricts the base version
2021-08-08 09:12:20 azeem joins (~azeem@176.200.225.165)
2021-08-08 09:12:49 <maerwald[m]> you could try: `cabal repl --allow-newer=hashable --build-depends reactive-banana`
2021-08-08 09:13:02 <euouae> That's a cool trick but I'ma already running it in the older ghc version
2021-08-08 09:13:21 <euouae> but now I'm noticing that doing `:load ./doc/examples/Counter.hs` still gives me an issue with running `main`
2021-08-08 09:13:25 <euouae> it's not exported? I don't understand
2021-08-08 09:13:52 <euouae> I can still see `main:Main.main :: IO ()` if I `:browse Main` but that's about it
2021-08-08 09:14:26 <maerwald[m]> euouae: the module is missing the first line `module Main where`
2021-08-08 09:14:34 <maerwald[m]> it's sort of a cabal bug
2021-08-08 09:15:01 <euouae> OK so it was the cabal bug I mentioned
2021-08-08 09:15:10 <euouae> sigh ... nothing works today
2021-08-08 09:15:54 <__monty__> Declaring the module's name is a best practice though. That way you can add export lists.
2021-08-08 09:17:47 <euouae> Best practice is never getting out of bed
2021-08-08 09:17:56 <euouae> just stay there where it's safe from bgus
2021-08-08 09:17:57 <euouae> bugs
2021-08-08 09:18:07 × azeem quits (~azeem@176.200.225.165) (Read error: Connection reset by peer)
2021-08-08 09:18:38 <tomsmeding> pretty sure physicians wouldn't advise never getting out of bed ;)
2021-08-08 09:19:54 euouae gives up on reactive-banana for now and watches the hedgehog videos instead
2021-08-08 09:20:02 <tomsmeding> rip
2021-08-08 09:20:03 azeem joins (~azeem@dynamic-adsl-78-13-247-121.clienti.tiscali.it)
2021-08-08 09:20:16 <euouae> I'm actually going to contact the author of the module to tell them about some of the issues
2021-08-08 09:20:35 <maerwald[m]> also, I think I found a bug... `cabal repl --allow-newer=base --build-depends reactive-banana` starts a repl, but there's no reactive-banana exposed
2021-08-08 09:20:51 <euouae> whose bug?
2021-08-08 09:21:23 tomsmeding wonders what --allow-newer=base is supposed to do
2021-08-08 09:21:39 <maerwald[m]> fix the resolution error
2021-08-08 09:21:59 <tomsmeding> oh right I got the constraints the other way around again
2021-08-08 09:22:51 <tomsmeding> interesting
2021-08-08 09:22:58 <maerwald[m]> reproducible?
2021-08-08 09:22:59 <tomsmeding> looks like odd cabal behaviour
2021-08-08 09:23:00 <tomsmeding> yeah
2021-08-08 09:23:12 <maerwald[m]> can you file a bug?
2021-08-08 09:23:13 <tomsmeding> "Warning: no exposed modules"
2021-08-08 09:23:13 <Drew[m]1> maerwald[m]: yep
2021-08-08 09:23:23 <tomsmeding> I can try :)
2021-08-08 09:23:26 <Drew[m]1> Getting the same result here
2021-08-08 09:23:47 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds)
2021-08-08 09:24:17 <tomsmeding> the library in question doesn't matter, `cabal repl -b containers --allow-newer=base` has the same behaviour for me
2021-08-08 09:25:19 euouae hi-fives maerwald[m]
2021-08-08 09:26:03 <euouae> not sure if it counts as team effort, maybe more like cheering by the waysides
2021-08-08 09:26:26 <tomsmeding> okay containers is a bad example apparently because that's loaded even if you don't specify a -b
2021-08-08 09:26:30 <tomsmeding> parsec does have the same behaviour
2021-08-08 09:26:37 <tomsmeding> (same = faulty)
2021-08-08 09:27:00 pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655)
2021-08-08 09:27:08 × pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Client Quit)
2021-08-08 09:27:10 <tomsmeding> https://github.com/haskell/cabal/issues/7081
2021-08-08 09:27:24 pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655)
2021-08-08 09:29:30 <tomsmeding> apparently the conclusion by phadej is: this is a result of past hacks that have bitrotted, and properly fixing it is difficult; it may or may not become less difficult after a planned future rewrite of some things
2021-08-08 09:29:46 <tomsmeding> maerwald[m]: yay comment
2021-08-08 09:30:53 <euouae> So we went from no module name bug to -b --allow-newer bug
2021-08-08 09:31:05 <euouae> I'm tired...
2021-08-08 09:31:37 <maerwald[m]> could try stack, but then you'll probably be editing stack.yaml with random lines until you get a circular dependency error
2021-08-08 09:31:53 <euouae> hehe
2021-08-08 09:32:26 <euouae> IS there some normal order of learning Haskell?
2021-08-08 09:32:49 <euouae> Both reactive-banana and Hedgehog seem hard to learn
2021-08-08 09:32:49 <Drew[m]1> Would this be an issue if the dependency was specified by a cabal file instead of a `cabal repl` argument?
2021-08-08 09:33:31 <tomsmeding> no, this is completely a problem with repl + -b

All times are in UTC.