2024/10/28

Newest at the top

2024-10-28 13:27:46 +0100 <haskellbridge> <sm> +are connected
2024-10-28 13:26:48 +0100 <haskellbridge> <sm> Yes - file names and module names (except the main file). But not file paths, as tomsmeding says
2024-10-28 13:26:36 +0100 <tomsmeding> then src1/Foo.hs and src2/Foo.hs are both independently valid, without any CPP
2024-10-28 13:26:23 +0100 <tomsmeding> what I mean is, assuming your module is called Foo: * Put version 1 in src1/Foo.hs; * Put version 2 in src2/Foo.hs; * In your-lib.cabal, switch between `hs-source-dirs: src1` and `hs-source-dirs: src2` based on the flag
2024-10-28 13:25:12 +0100 <sinbad> That is not changing the module name. To put in a different way, is there a strict mapping of source file names and module names?
2024-10-28 13:24:44 +0100 <tomsmeding> alternatively, backpack can rename modules, I think
2024-10-28 13:24:35 +0100 <tomsmeding> sinbad: good point. Put the two module versions in two separate source directories, and switch an additional hs-source-dirs: option instead?
2024-10-28 13:23:51 +0100 <sinbad> tomsmeding: I know how to use cabal's flag. If the module name change I need CPP in the source. I want to do the switch without using CPP.
2024-10-28 13:21:42 +0100Nixkernal(~Nixkernal@52.131.63.188.dynamic.cust.swisscom.net) Nixkernal
2024-10-28 13:21:17 +0100YoungFrog(~youngfrog@39.129-180-91.adsl-dyn.isp.belgacom.be) youngfrog
2024-10-28 13:20:54 +0100YoungFrog(~youngfrog@2a02:a03f:c9db:fc00:7868:ed54:6992:80f4) (Quit: ZNC 1.7.x-git-3-96481995 - https://znc.in)
2024-10-28 13:19:28 +0100 <tomsmeding> better test all configurations of your package :)
2024-10-28 13:19:13 +0100 <tomsmeding> yes
2024-10-28 13:19:09 +0100 <haskellbridge> <sm> will it add complexity and hassles for packaging/building ? Probably
2024-10-28 13:19:07 +0100 <tomsmeding> the same way you switch between dependency sets (with the `if` syntax in a .cabal file), you can also put exposed-modules: (and, indeed, other-modules:) in such an `if`
2024-10-28 13:18:37 +0100wootehfoot(~wootehfoo@user/wootehfoot) wootehfoot
2024-10-28 13:18:22 +0100 <tomsmeding> sinbad: based on cabal flags you can expose or not expose certain modules
2024-10-28 13:18:19 +0100 <haskellbridge> <sm> I think so? By selecting different deps and source files in the cabal file
2024-10-28 13:17:54 +0100Smiles(uid551636@id-551636.lymington.irccloud.com) Smiles
2024-10-28 13:16:15 +0100 <sinbad> Let's say I have two different implementations of the function foo with two different sets of dependencies. Is it possible to switch between the too foo-s using only cabal's flags but not CPP in the source files?
2024-10-28 13:13:24 +0100Nixkernal(~Nixkernal@52.131.63.188.dynamic.cust.swisscom.net) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
2024-10-28 13:12:07 +0100sinbad(~sinbad@user/sinbad) Sinbad
2024-10-28 13:06:49 +0100morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 244 seconds)
2024-10-28 13:02:35 +0100morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net)
2024-10-28 12:59:30 +0100euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
2024-10-28 12:59:13 +0100euleritian(~euleritia@dynamic-176-003-032-186.176.3.pool.telefonica.de) (Read error: Connection reset by peer)
2024-10-28 12:55:26 +0100jespada(~jespada@222.203-67-87.adsl-dyn.isp.belgacom.be) (Quit: My Mac has gone to sleep. ZZZzzz…)
2024-10-28 12:53:35 +0100scaniatrucker(~user@78.56.98.5) scaniatrucker
2024-10-28 12:48:32 +0100zero(~z@user/zero) zero
2024-10-28 12:47:47 +0100zzz(~z@user/zero) (Ping timeout: 252 seconds)
2024-10-28 12:47:34 +0100SlackCoder(~SlackCode@64-94-63-8.ip.weststar.net.ky) SlackCoder
2024-10-28 12:44:59 +0100euleritian(~euleritia@dynamic-176-003-032-186.176.3.pool.telefonica.de)
2024-10-28 12:43:49 +0100rosco(~rosco@60.53.5.183) rosco
2024-10-28 12:43:46 +0100habib(~habib@185.195.232.169) habib
2024-10-28 12:42:18 +0100euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 252 seconds)
2024-10-28 12:41:09 +0100lortabac(~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) lortabac
2024-10-28 12:40:10 +0100mari-estel(~mari-este@user/mari-estel) (Quit: shitty system)
2024-10-28 12:35:58 +0100euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
2024-10-28 12:35:32 +0100euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
2024-10-28 12:33:08 +0100lxsameer(~lxsameer@Serene/lxsameer) lxsameer
2024-10-28 12:30:10 +0100mari-estel(~mari-este@user/mari-estel) mari-estel
2024-10-28 12:19:39 +0100alexherbo2(~alexherbo@2a02-8440-3406-c072-f489-680b-9cb7-dfd8.rev.sfr.net) alexherbo2
2024-10-28 12:17:43 +0100sawilagar(~sawilagar@user/sawilagar) sawilagar
2024-10-28 12:06:19 +0100 <xelxebar> Cheers!
2024-10-28 12:06:10 +0100 <ncf> xelxebar: ok, fixed it and added that reference
2024-10-28 12:05:32 +0100 <xelxebar> And, well, the more general cata-fusion law itself follows directly from the definition of algebra homomorphism and cata as being initial.
2024-10-28 12:02:54 +0100 <xelxebar> Well, I'm not actually sure that's the earliest original, but it's what I could track down.
2024-10-28 12:01:52 +0100kuribas(~user@ptr-17d51epnnpcnu3v8qjj.18120a2.ip6.access.telenet.be) kuribas
2024-10-28 12:00:47 +0100 <xelxebar> ncf: Varmo Vene, Categorical Programming with Inductive and Coinductive Types. 2000.
2024-10-28 11:59:46 +0100xff0x(~xff0x@2405:6580:b080:900:b00a:f648:5747:c396)