Logs: freenode/#haskell
| 2020-09-21 09:08:10 | <maerwald> | upgrade to 3.2.0.0 |
| 2020-09-21 09:08:33 | <cpressey> | [exa]: In fact I don't, that could easily be the problem. |
| 2020-09-21 09:09:50 | <[exa]> | debian says it has 3.0.0.0-3 which might be the same... You may just use the binary distribution of cabal from their website, or get one using ghcpu |
| 2020-09-21 09:09:55 | <[exa]> | *ghcup |
| 2020-09-21 09:10:03 | × | worc3131 quits (~quassel@2a02:c7f:c026:9500:7d0b:65d0:38a4:4786) (Remote host closed the connection) |
| 2020-09-21 09:10:10 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-09-21 09:10:32 | <[exa]> | a common observation here is that ghc/cabal versions from $distro's package manager usually suck |
| 2020-09-21 09:10:59 | <maerwald> | there's also https://launchpad.net/~hvr/+archive/ubuntu/ghc but it lacks ghc-8.10 |
| 2020-09-21 09:11:02 | <cpressey> | maerwald: This is the version it gave me when I did "cabal install cabal-install" on (I think) Friday. I'll try upgrading again and see if it goes all the way to 3.2 this time. |
| 2020-09-21 09:11:18 | × | psut quits (~psutcliff@2a00:801:44a:a00b:20c3:c64:eb15:73a2) (Quit: Leaving) |
| 2020-09-21 09:11:18 | → | worc3131 joins (~quassel@2a02:c7f:c026:9500:7d0b:65d0:38a4:4786) |
| 2020-09-21 09:11:27 | <maerwald> | ah no, it has 8.10 |
| 2020-09-21 09:11:40 | <maerwald> | cpressey: cabal install cabal-install doesn't work very well |
| 2020-09-21 09:11:41 | <int-e> | cpressey: the newer cabal-install should pick up the most recent cabal-install ;-) |
| 2020-09-21 09:12:11 | <merijn> | You might need to "cabal update" first :p |
| 2020-09-21 09:12:13 | <maerwald> | int-e: that depends on your GHC version, not cabal-install |
| 2020-09-21 09:12:14 | <int-e> | maerwald: it turns out that cabal-install 3.2 cannot be built with cabal-install<2.2 |
| 2020-09-21 09:12:27 | <maerwald> | well, then both |
| 2020-09-21 09:12:35 | <cpressey> | [exa]: Is it absolutely required to list all modules in the cabalfile? In development, I sometimes add/remove modules, and it would be nice to not have to remember to update the cabalfile too |
| 2020-09-21 09:13:10 | <maerwald> | cpressey: you can use cabal-fmt to auto-expand modules https://oleg.fi/gists/posts/2019-08-11-cabal-fmt.html |
| 2020-09-21 09:13:14 | <merijn> | cpressey: Also, why did you still have 1.24? :o THat's ancient |
| 2020-09-21 09:13:46 | <phadej> | merijn: some people use distributions' package managers, and their repositories ;) |
| 2020-09-21 09:13:46 | <cpressey> | merijn: because I'm running Ubuntu 18.04 LTS and was still using the version in their package repository. |
| 2020-09-21 09:13:58 | <phadej> | but does 18.04 has that old cabal-install |
| 2020-09-21 09:13:59 | <merijn> | cpressey: Short answer: Yes. Long answer: Yes, because the cabal file is supposed to *define* what goes into a source distribution and doing that sorta thing implicitly is...a bad idea |
| 2020-09-21 09:14:07 | <int-e> | phadej: yes |
| 2020-09-21 09:14:08 | <phadej> | that's wiked |
| 2020-09-21 09:14:09 | <merijn> | cpressey: Wow, that's depressing |
| 2020-09-21 09:14:19 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 246 seconds) |
| 2020-09-21 09:14:27 | <int-e> | phadej: 18.04 was released very shortly after cabal-install 2.0.0.0 |
| 2020-09-21 09:14:37 | <int-e> | phadej: presumably it was frozen then. |
| 2020-09-21 09:14:39 | <merijn> | cpressey: 1.24 is probably at least 4-6 years out of date by now :o |
| 2020-09-21 09:14:51 | <[exa]> | cpressey: well it sometimes picks the unlisted modules correctly for me, but I have no idea about the precise reason why it works |
| 2020-09-21 09:15:00 | <merijn> | [exa]: It doesn't |
| 2020-09-21 09:15:02 | <maerwald> | merijn: that's what LTS means |
| 2020-09-21 09:15:04 | <maerwald> | lol |
| 2020-09-21 09:15:13 | <merijn> | [exa]: However, GHC looks for imports independent of cabal |
| 2020-09-21 09:15:15 | <cpressey> | Well, not listing the modules in the cabalfile probably explains my problem, anyway. Thanks all. |
| 2020-09-21 09:15:30 | <merijn> | [exa]: So, even if files aren't listed, GHC may find them |
| 2020-09-21 09:16:06 | <[exa]> | o good |
| 2020-09-21 09:16:12 | <int-e> | phadej: Or hmm. Am I off by a year? Anyway, 1.24 wasn't ancient yet then :P |
| 2020-09-21 09:16:13 | <[exa]> | makes sense, thanks |
| 2020-09-21 09:16:42 | → | pfurla joins (~pfurla@ool-182ed2e2.dyn.optonline.net) |
| 2020-09-21 09:16:45 | <int-e> | phadej: and your 4-6 years are definitely closer to 3. |
| 2020-09-21 09:16:52 | <merijn> | int-e: That was mine |
| 2020-09-21 09:16:57 | → | boxscape joins (577bcb23@gateway/web/cgi-irc/kiwiirc.com/ip.87.123.203.35) |
| 2020-09-21 09:17:08 | <merijn> | Although, admittedly I may have been using the source version |
| 2020-09-21 09:17:10 | <int-e> | ah. oops I did it again... |
| 2020-09-21 09:17:35 | <merijn> | I just recall switching to new-build early on in the Haskell part of my phd codebase and I moved on from 1.24 really shortly after that :p |
| 2020-09-21 09:17:45 | <phadej> | 20.04 is using 2.4.0.0 |
| 2020-09-21 09:17:52 | <phadej> | though there definitely was 3.0 and 3.2 |
| 2020-09-21 09:18:01 | <boxscape> | was curious how the constraints package implements Gcd so I took a look and... https://hackage.haskell.org/package/constraints-0.12/docs/src/Data.Constraint.Nat.html#Gcd |
| 2020-09-21 09:18:02 | <boxscape> | that doesn't look right? Am I missing something or is it just not fully implemented? |
| 2020-09-21 09:18:06 | <merijn> | int-e: Perhaps it's just academic trauma induced time dilation that makes feel like it was 6 years :p |
| 2020-09-21 09:18:06 | <phadej> | and **worse**, they have ghc-8.8 |
| 2020-09-21 09:18:12 | <phadej> | which cabal-install-2.4 doesn't support |
| 2020-09-21 09:18:17 | <phadej> | they = Ubuntu |
| 2020-09-21 09:18:29 | <merijn> | lol |
| 2020-09-21 09:18:35 | <int-e> | merijn: FWIW, I was surprised as well... it feels longer. |
| 2020-09-21 09:18:38 | <merijn> | Linux packaging, yay! |
| 2020-09-21 09:18:41 | <phadej> | or now |
| 2020-09-21 09:18:48 | <phadej> | s/now/no |
| 2020-09-21 09:18:54 | <phadej> | it's 8.8.1+dfsg1+is+8.6.5 |
| 2020-09-21 09:19:01 | <phadej> | which is :)(: |
| 2020-09-21 09:19:19 | <int-e> | phadej: still usable for bootstrapping a real ghc. |
| 2020-09-21 09:19:38 | <phadej> | feels like it's common that distribution packages don't really are up to date with where HAskell goes |
| 2020-09-21 09:19:44 | → | kuribas joins (~user@ptr-25vy0i9m1chs7zs38i7.18120a2.ip6.access.telenet.be) |
| 2020-09-21 09:19:44 | <phadej> | int-e: to bootstrap 9.0 you need 8.8.1 |
| 2020-09-21 09:19:47 | <phadej> | that one is really 8.6.5 |
| 2020-09-21 09:19:50 | <phadej> | so no luck. |
| 2020-09-21 09:19:55 | → | borne joins (~fritjof@200116b864f88900f00953f5fedbeb5e.dip.versatel-1u1.de) |
| 2020-09-21 09:19:59 | <tomsmeding> | boxscape: not to speak about Lcm, Div and Mod |
| 2020-09-21 09:20:03 | <int-e> | phadej: 9.0 isn't released |
| 2020-09-21 09:20:12 | <phadej> | int-e: I hope it's matter of weeks now. |
| 2020-09-21 09:20:14 | <boxscape> | tomsmeding right |
| 2020-09-21 09:20:46 | <maerwald> | int-e: 9.0.1-alpha1 is |
| 2020-09-21 09:20:48 | <tomsmeding> | boxscape: does it actually _work_, somehow in a way that we don't understand? or is it actually unimplemented |
| 2020-09-21 09:20:58 | <tomsmeding> | work as in "test it" |
| 2020-09-21 09:21:06 | <boxscape> | I haven't actually tried to be honest but I guess I should, and I will right now |
| 2020-09-21 09:21:07 | <phadej> | ghc "support" windows are too short for ubuntu :( |
| 2020-09-21 09:21:34 | → | Cadair1 joins (~Cadair@185.204.1.185) |
| 2020-09-21 09:21:54 | <maerwald> | boxscape: try to be honest next time |
| 2020-09-21 09:22:17 | <boxscape> | but I was honest this time too :( |
| 2020-09-21 09:22:34 | <boxscape> | it doesn't work, by the way - Gcd 4 2 is not reduced |
| 2020-09-21 09:22:39 | <tomsmeding> | heh |
| 2020-09-21 09:22:41 | <phadej> | maerwald: there is no 9.0.1-alpha1, is there? |
| 2020-09-21 09:22:54 | <maerwald> | https://downloads.haskell.org/~ghc/9.0.1-alpha1/ |
| 2020-09-21 09:23:15 | <tomsmeding> | boxscape: file a bug report :) |
| 2020-09-21 09:23:47 | <boxscape> | I suppose I will, or maybe a PR if I can figure out how it should work |
| 2020-09-21 09:25:09 | <merijn> | hah |
| 2020-09-21 09:25:32 | <merijn> | Next thing you know you'll be handed commit access and responsible for maintaining it ;) |
| 2020-09-21 09:25:38 | <boxscape> | oh boy |
| 2020-09-21 09:25:43 | <int-e> | phadej: hmm if you release 2 major versions per year and you support the 2 latest major versions for bootstrapping... |
| 2020-09-21 09:25:48 | <boxscape> | I am not at all qualified to handle the constraints package :) |
| 2020-09-21 09:25:48 | <tomsmeding> | unlikely for this particular package I think |
| 2020-09-21 09:25:56 | <phadej> | maerwald: there isn't tag in repository |
| 2020-09-21 09:26:02 | <int-e> | ...that's not a very generous time frame |
| 2020-09-21 09:26:04 | <phadej> | maerwald: so I have no idea what that directory is about |
| 2020-09-21 09:26:23 | <phadej> | maerwald: also it wasn't announced, and according to ben, if something weren't announced it doesn't exist. |
| 2020-09-21 09:26:29 | <maerwald> | phadej: I don't know either, but it works fine :p |
All times are in UTC.