2024/05/06

Newest at the top

2024-05-06 17:43:59 +0200target_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 +0200Guest58(~Guest58@2402:3a80:a19:7f89:8f72:7bde:6107:e78c)
2024-05-06 17:38:17 +0200MajorBiscuit(~MajorBisc@c-001-008-019.client.tudelft.eduvpn.nl) (Quit: WeeChat 4.2.2)
2024-05-06 17:38:15 +0200sawilagar(~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 +0200causal(~eric@50.35.88.207) (Quit: WeeChat 4.1.1)
2024-05-06 17:24:34 +0200raehik(~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 +0200onion(~yin@user/zero) (Ping timeout: 272 seconds)
2024-05-06 17:10:55 +0200absence(torgeihe@hildring.pvv.ntnu.no) (Ping timeout: 256 seconds)
2024-05-06 17:10:41 +0200lortabac(~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.2.1)
2024-05-06 17:08:06 +0200dos__^^(~user@user/dos/x-1723657)
2024-05-06 16:56:48 +0200akegalj(~akegalj@164-156.dsl.iskon.hr) (Remote host closed the connection)
2024-05-06 16:50:18 +0200Square3(~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 +0200justsomeguy(~justsomeg@user/justsomeguy)
2024-05-06 16:41:45 +0200td_(~td@i53870908.versanet.de)
2024-05-06 16:35:30 +0200onion(~yin@user/zero)
2024-05-06 16:29:29 +0200tri(~tri@ool-18bbef1a.static.optonline.net) (Ping timeout: 268 seconds)
2024-05-06 16:25:37 +0200yeitrafferin(~user@2a04:4540:7214:f000:b4f1:19d1:d8e2:31e2) (Quit: Leaving)
2024-05-06 16:24:40 +0200tri(~tri@ool-18bbef1a.static.optonline.net)
2024-05-06 16:24:39 +0200td_(~td@i53870908.versanet.de) (Quit: waking up from the american dream ...)
2024-05-06 16:19:37 +0200euphores(~SASL_euph@user/euphores)
2024-05-06 16:13:30 +0200ec(~ec@gateway/tor-sasl/ec)
2024-05-06 16:11:26 +0200ec(~ec@gateway/tor-sasl/ec) (Remote host closed the connection)
2024-05-06 16:05:26 +0200raehik(~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net)
2024-05-06 15:57:19 +0200euphores(~SASL_euph@user/euphores) (Ping timeout: 272 seconds)
2024-05-06 15:55:18 +0200raehik(~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net) (Ping timeout: 252 seconds)
2024-05-06 15:54:36 +0200rosco(~rosco@yp-146-6.tm.net.my)
2024-05-06 15:48:18 +0200michalz(~michalz@185.246.207.193)
2024-05-06 15:47:51 +0200madeleine-sydney(~madeleine@c-76-155-235-153.hsd1.co.comcast.net) (Quit: Konversation terminated!)
2024-05-06 15:46:36 +0200euleritian(~euleritia@dynamic-176-005-138-072.176.5.pool.telefonica.de)