Newest at the top
2024-05-06 18:02:19 +0200 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
2024-05-06 17:58:12 +0200 | Angelz | (Angelz@user/angelz) (Ping timeout: 260 seconds) |
2024-05-06 17:54:14 +0200 | rosco | (~rosco@yp-146-6.tm.net.my) (Quit: Lost terminal) |
2024-05-06 17:52:44 +0200 | <lambdabot> | True |
2024-05-06 17:52:43 +0200 | <Guest58> | > 10 > 5 |
2024-05-06 17:50:40 +0200 | <lambdabot> | 55 |
2024-05-06 17:50:38 +0200 | <kaol> | > sum [1..10] -- we have a Haskell IRC bot too |
2024-05-06 17:49:22 +0200 | <Guest58> | Okay thank you |
2024-05-06 17:47:36 +0200 | ocra8 | (ocra8@user/ocra8) |
2024-05-06 17:46:08 +0200 | https://www.reddit.com/r/haskell | Admin: #haskell-ops | Offtopic: #haskell-offtopic | https://downloads.haskell.org | https://play.haskell.org/ | Paste code/errors: https://paste.tomsmeding.com | Logs: https://ircbrowse.tomsmeding.com/browse/lchaskell | |
2024-05-06 17:45:50 +0200 | <glguy> | Guest58: if you run into questions while you're reading the book you could ask her. If you want to share some code along the way you can put it on https://paste.tomsmeding.com |
2024-05-06 17:45:23 +0200 | tremon | (~tremon@83.80.159.219) |
2024-05-06 17:43:59 +0200 | target_i | (~target_i@user/target-i/x-6023099) (Quit: leaving) |
2024-05-06 17:42:01 +0200 | <kaol> | They range from beginner topics to way deep into the language. |
2024-05-06 17:42:00 +0200 | <Guest58> | I just started reading the book Haskell From First Principles |
2024-05-06 17:41:35 +0200 | <kaol> | Yes. Not all the time but people do use this. |
2024-05-06 17:41:10 +0200 | <Guest58> | Do discussions happen here? |
2024-05-06 17:40:56 +0200 | <Guest58> | I have never used IRC before. Do people gather in these channels to talk about haskell? |
2024-05-06 17:40:22 +0200 | <kaol> | Welcome. |
2024-05-06 17:40:13 +0200 | <Guest58> | Hello. This is my first time using IRC |
2024-05-06 17:39:29 +0200 | Guest58 | (~Guest58@2402:3a80:a19:7f89:8f72:7bde:6107:e78c) |
2024-05-06 17:38:17 +0200 | MajorBiscuit | (~MajorBisc@c-001-008-019.client.tudelft.eduvpn.nl) (Quit: WeeChat 4.2.2) |
2024-05-06 17:38:15 +0200 | sawilagar | (~sawilagar@user/sawilagar) (Ping timeout: 268 seconds) |
2024-05-06 17:37:14 +0200 | <kaol> | Having cabal mask like I was thinking would cause no end of grief. |
2024-05-06 17:36:19 +0200 | <kaol> | Right, different hs-source-dirs definitions. It's obvious now that you said it, thanks. It works as expected. |
2024-05-06 17:33:56 +0200 | <sclv> | typically we do "src" or "lib" for the library and "exe" for the exe, or "exes/a" and "exes/b" if there are multiple exes |
2024-05-06 17:33:16 +0200 | <sclv> | otherwise they both see the modules in their source directory, and make use of them directly rather than importing |
2024-05-06 17:32:39 +0200 | <sclv> | kaol: the right practice is to have a different source directory for the library and the exe |
2024-05-06 17:31:56 +0200 | <kaol> | Another aspect of this: Instead of listing modules from the library in the executable's other-modules to make cabal not warn, I could just add the library to the executable's build-depends. |
2024-05-06 17:27:50 +0200 | <kaol> | At least I can avoid repeating anything by using a common stanza. It just works different than what I expected. |
2024-05-06 17:27:06 +0200 | causal | (~eric@50.35.88.207) (Quit: WeeChat 4.1.1) |
2024-05-06 17:24:34 +0200 | raehik | (~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net) (Ping timeout: 246 seconds) |
2024-05-06 17:22:47 +0200 | <kaol> | If I have in my cabal file a library x and an executable y that build-depends on x and I import a module from x in y, is there a way to import that like you'd do from a library and not the file as is? Specifically, I'm getting build errors about missing dependencies in y and my expectation was that those would have been encapsulated due to coming from x. |
2024-05-06 17:15:59 +0200 | <hadronized> | yeah I’d have written that with just noNegative n | n >= 0 = Just n | otherwise = Nothing |
2024-05-06 17:13:57 +0200 | onion | (~yin@user/zero) (Ping timeout: 272 seconds) |
2024-05-06 17:10:55 +0200 | absence | (torgeihe@hildring.pvv.ntnu.no) (Ping timeout: 256 seconds) |
2024-05-06 17:10:41 +0200 | lortabac | (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.2.1) |
2024-05-06 17:08:06 +0200 | dos__^^ | (~user@user/dos/x-1723657) |
2024-05-06 16:56:48 +0200 | akegalj | (~akegalj@164-156.dsl.iskon.hr) (Remote host closed the connection) |
2024-05-06 16:50:18 +0200 | Square3 | (~Square4@user/square) |
2024-05-06 16:46:06 +0200 | <justsomeguy> | \o/ |
2024-05-06 16:44:38 +0200 | <ncf> | you might also be looking for MultiWayIf |
2024-05-06 16:44:05 +0200 | <ncf> | yeah, just remove the semicolon |
2024-05-06 16:43:33 +0200 | <justsomeguy> | *within |
2024-05-06 16:43:09 +0200 | <justsomeguy> | Can I write guards withing case expressions in flow-style, like this: noNegative n = case n of { n | n >= 0 -> Just n; | otherwise -> n; }? |
2024-05-06 16:41:57 +0200 | justsomeguy | (~justsomeg@user/justsomeguy) |
2024-05-06 16:41:45 +0200 | td_ | (~td@i53870908.versanet.de) |
2024-05-06 16:35:30 +0200 | onion | (~yin@user/zero) |
2024-05-06 16:29:29 +0200 | tri | (~tri@ool-18bbef1a.static.optonline.net) (Ping timeout: 268 seconds) |
2024-05-06 16:25:37 +0200 | yeitrafferin | (~user@2a04:4540:7214:f000:b4f1:19d1:d8e2:31e2) (Quit: Leaving) |