Newest at the top
2025-01-08 18:30:21 +0100 | <geekosaur> | the store is very sensitive to ghc abi |
2025-01-08 18:30:12 +0100 | <geekosaur> | because that's the correct thing to do but wasn't possible in earlier versions |
2025-01-08 18:29:20 +0100 | ChaiTRex | (~ChaiTRex@user/chaitrex) ChaiTRex |
2025-01-08 18:28:53 +0100 | ChaiTRex | (~ChaiTRex@user/chaitrex) (Remote host closed the connection) |
2025-01-08 18:27:00 +0100 | jokoon | (~jokoon@2a01:cb1d:8f84:4f00:60a2:6701:a66e:bb95) (Quit: Leaving) |
2025-01-08 18:26:21 +0100 | <hseg> | For some reason, ghcup's ghc 9.8.4 compiles to store the Cabal store under ghc-9.8.4-c895 Any idea why? |
2025-01-08 18:17:42 +0100 | econo_ | (uid147250@id-147250.tinside.irccloud.com) |
2025-01-08 18:13:35 +0100 | machinedgod | (~machinedg@d108-173-18-100.abhsia.telus.net) (Ping timeout: 260 seconds) |
2025-01-08 18:11:31 +0100 | homo_ | (~homo@user/homo) homo |
2025-01-08 18:07:17 +0100 | homo | (~homo@user/homo) (Ping timeout: 252 seconds) |
2025-01-08 18:02:17 +0100 | ubert | (~Thunderbi@2a02:8109:ab8a:5a00:13a7:b05b:d8a6:72f8) (Quit: ubert) |
2025-01-08 17:57:16 +0100 | mari-estel | (~mari-este@user/mari-estel) mari-estel |
2025-01-08 17:57:01 +0100 | mari-estel | (~mari-este@user/mari-estel) (Remote host closed the connection) |
2025-01-08 17:55:07 +0100 | homo | (~homo@user/homo) homo |
2025-01-08 17:53:32 +0100 | <int-e> | does it involve giving |
2025-01-08 17:53:18 +0100 | <mauke> | <insert nsfw joke here> |
2025-01-08 17:53:07 +0100 | <int-e> | . o O ( or a good approximation thereof ) |
2025-01-08 17:51:46 +0100 | <tomsmeding> | much as I am usually condescending about the abilities of LLMs, I'm quite sure it can generate the source for `head`. :) |
2025-01-08 17:51:41 +0100 | saulosilva | (~saulosilv@181.216.220.21) saulosilva |
2025-01-08 17:50:49 +0100 | <jokoon> | no idea if he will solve this with chatpgt without help |
2025-01-08 17:50:21 +0100 | <lambdabot> | head [] = error "Prelude.head: empty list" |
2025-01-08 17:50:20 +0100 | <lambdabot> | head (x:_) = x |
2025-01-08 17:50:20 +0100 | <mauke> | @src head |
2025-01-08 17:50:14 +0100 | <jokoon> | although to be fair I just had a student send me his haskell homework |
2025-01-08 17:49:51 +0100 | <jokoon> | you can guess that I am doing homework haha |
2025-01-08 17:49:26 +0100 | <mauke> | yes, that's pretty much how head is defined |
2025-01-08 17:49:09 +0100 | <jokoon> | that works |
2025-01-08 17:49:06 +0100 | <jokoon> | like this then https://bpa.st/SDXA |
2025-01-08 17:46:03 +0100 | <tomsmeding> | foo n = "was something else: " ++ show n |
2025-01-08 17:46:02 +0100 | merijn | (~merijn@77.242.116.146) (Ping timeout: 252 seconds) |
2025-01-08 17:45:59 +0100 | <tomsmeding> | foo 2 = "was two" |
2025-01-08 17:45:56 +0100 | <tomsmeding> | foo 1 = "was one" |
2025-01-08 17:45:42 +0100 | <tomsmeding> | you can give multiple equations to a function |
2025-01-08 17:45:34 +0100 | <jokoon> | I will try to put an if |
2025-01-08 17:45:26 +0100 | <jokoon> | put some if? |
2025-01-08 17:45:25 +0100 | <tomsmeding> | what have you tried? |
2025-01-08 17:45:18 +0100 | <jokoon> | and how can I raise an error if the list is empty? |
2025-01-08 17:44:55 +0100 | <tomsmeding> | which will still crash if f8 gets an empty list |
2025-01-08 17:44:47 +0100 | <tomsmeding> | f8 (a : _) = a |
2025-01-08 17:44:28 +0100 | <jokoon> | https://bpa.st/KICQ like this? |
2025-01-08 17:43:41 +0100 | <tomsmeding> | pattern-match on it? |
2025-01-08 17:42:56 +0100 | <jokoon> | can I access the first element of a list without the head function? |
2025-01-08 17:42:42 +0100 | jokoon | (~jokoon@2a01:cb1d:8f84:4f00:60a2:6701:a66e:bb95) |
2025-01-08 17:41:24 +0100 | saulosilva | (~saulosilv@181.216.220.21) (Quit: Client closed) |
2025-01-08 17:41:04 +0100 | <merijn> | ah, no I'm misremebering it seems, it's from 2018 |
2025-01-08 17:40:05 +0100 | <merijn> | sm: So that should be MORE than old enough to require ;) |
2025-01-08 17:39:36 +0100 | <merijn> | 2.4 is the version I used at the start of my phd in 2014 |
2025-01-08 17:39:24 +0100 | <merijn> | anyway, cabal 2.2 is over a decade old, so :p |
2025-01-08 17:38:06 +0100 | <merijn> | sm: At any rate, the core idea is that the semantics of a field will never change for a specific cabal-version, so even if field "foo" changes behaviour in a later version of the spec, any file declaring version X will always use the semantics of 'foo' at time X |
2025-01-08 17:36:52 +0100 | <merijn> | ah, right |