Newest at the top
2024-11-08 21:50:01 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-11-08 21:38:48 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds) |
2024-11-08 21:38:45 +0100 | <yin> | just restructured everything so i don't have to match any of that |
2024-11-08 21:38:17 +0100 | <yin> | tomsmeding: ty. i'm trying to avoid funkyness |
2024-11-08 21:37:16 +0100 | <briandaed> | I stole it from someone probably, not sure from whom |
2024-11-08 21:35:26 +0100 | <sm> | briandaed your nick is breaking my brain :) |
2024-11-08 21:34:53 +0100 | <lambdabot> | Done. |
2024-11-08 21:34:53 +0100 | <sm> | @where+ stack-ghcup https://www.haskell.org/ghcup/guide/#stack-integration |
2024-11-08 21:34:12 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-11-08 21:23:20 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2024-11-08 21:22:37 +0100 | <tomsmeding> | if you want to get funky you can also `| y@Pattern { z = ((== minBound) -> True) } <- g x = ...` using ViewPatterns but... perhaps don't :D |
2024-11-08 21:22:00 +0100 | <tomsmeding> | or | y <- g x, z y == minBound = ... |
2024-11-08 21:21:45 +0100 | <tomsmeding> | | y@Pattern { z = zval } <- g x, zval == minBound = ... |
2024-11-08 21:21:16 +0100 | <tomsmeding> | *this |
2024-11-08 21:21:11 +0100 | <tomsmeding> | patterns don't allow thus, use a separate guard |
2024-11-08 21:21:01 +0100 | <tomsmeding> | yin: you mean matching on a constant instead of a constructor? |
2024-11-08 21:20:35 +0100 | <yin> | f x | y@Pattern { z = minBound } <- g x = ... |
2024-11-08 21:20:21 +0100 | <yin> | sorry i mean |
2024-11-08 21:19:32 +0100 | <yin> | is there an ergonomic way of achieving this? |
2024-11-08 21:19:19 +0100 | <yin> | what about `f x | y@Pattern { z = minBound } = ...` ? |
2024-11-08 21:19:17 +0100 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) peterbecich |
2024-11-08 21:18:26 +0100 | Natch | (~natch@c-92-34-7-158.bbcust.telenor.se) (Read error: Connection reset by peer) |
2024-11-08 21:18:24 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-11-08 21:15:34 +0100 | L29Ah | (~L29Ah@wikipedia/L29Ah) L29Ah |
2024-11-08 21:15:31 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
2024-11-08 21:13:22 +0100 | <shapr> | briandaed: thanks! |
2024-11-08 21:11:24 +0100 | <briandaed> | https://github.com/haskell/cabal/issues/6659 |
2024-11-08 21:10:22 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2024-11-08 21:08:37 +0100 | <shapr> | Is there a 'fix' ? Maybe Cabal can save an index cache per version? |
2024-11-08 21:07:55 +0100 | <shapr> | I use Nix and I switch GHC and cabal versions between projects, I think that's the cause of this warning? Warning: Parsing the index cache failed (Data.Binary.Get.runGet at position 16: Non-matching structured hashes: |
2024-11-08 21:07:45 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 248 seconds) |
2024-11-08 21:02:37 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-11-08 21:02:21 +0100 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds) |
2024-11-08 21:00:40 +0100 | caconym | (~caconym@user/caconym) caconym |
2024-11-08 21:00:01 +0100 | caconym | (~caconym@user/caconym) (Quit: bye) |
2024-11-08 20:56:42 +0100 | alexherbo2 | (~alexherbo@2a02-8440-3200-3777-6c66-54b5-7b86-7066.rev.sfr.net) alexherbo2 |
2024-11-08 20:56:23 +0100 | alexherbo2 | (~alexherbo@2a02-8440-3200-3777-6c66-54b5-7b86-7066.rev.sfr.net) (Remote host closed the connection) |
2024-11-08 20:51:48 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2024-11-08 20:51:37 +0100 | <yin> | makes sense. i'm still getting used to patterns |
2024-11-08 20:51:30 +0100 | <mauke> | f (g -> y@Pattern) = |
2024-11-08 20:51:13 +0100 | <geekosaur> | with parens around `Pattern` as needed |
2024-11-08 20:51:07 +0100 | <yin> | nice, that works. ty |
2024-11-08 20:50:59 +0100 | <geekosaur> | `| y@Pattern <- g x = …` |
2024-11-08 20:50:56 +0100 | <yin> | p@Pattern ? |
2024-11-08 20:50:38 +0100 | <geekosaur> | use an as-pattern? |
2024-11-08 20:50:01 +0100 | <yin> | is there a better way to write ` f x | Pattern <- g x , y <- g x = h y ; ...` ? |
2024-11-08 20:49:42 +0100 | <briandaed> | no need to sorry |
2024-11-08 20:49:12 +0100 | <darkling> | Sorry. |
2024-11-08 20:49:10 +0100 | <darkling> | -ECHANNEL |
2024-11-08 20:47:54 +0100 | JuanDaugherty | (~juan@user/JuanDaugherty) (Quit: JuanDaugherty) |