Newest at the top
2024-10-28 14:16:44 +0100 | ljdarj | (~Thunderbi@user/ljdarj) ljdarj |
2024-10-28 14:16:38 +0100 | alioguzhan | (~Thunderbi@78.173.93.98) (Ping timeout: 245 seconds) |
2024-10-28 14:14:56 +0100 | <haskellbridge> | <sm> another satisfied customer! NEXT! |
2024-10-28 14:14:54 +0100 | paul_j | (~user@8.190.187.81.in-addr.arpa) |
2024-10-28 14:14:37 +0100 | vanishingideal | (~vanishing@user/vanishingideal) vanishingideal |
2024-10-28 14:14:32 +0100 | <haskellbridge> | <sm> well sinbad concluded something in a hurry |
2024-10-28 14:14:29 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-10-28 14:14:01 +0100 | <haskellbridge> | <sm> Indeed |
2024-10-28 14:13:43 +0100 | rosco | (~rosco@60.53.5.183) rosco |
2024-10-28 14:13:05 +0100 | merijn | (~merijn@77.242.116.146) merijn |
2024-10-28 14:11:27 +0100 | <tomsmeding> | ( https://ircbrowse.tomsmeding.com/browse/lchaskell?events_page=13900 ) |
2024-10-28 14:11:00 +0100 | <tomsmeding> | sm: got https://xkcd.com/2337/ vibes there :) |
2024-10-28 14:10:46 +0100 | sinbad | (~sinbad@user/sinbad) (Quit: Leaving.) |
2024-10-28 14:09:00 +0100 | <sinbad> | haskellbridge: Right, that was my conclusion too. |
2024-10-28 14:08:12 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 252 seconds) |
2024-10-28 14:08:00 +0100 | <tomsmeding> | then you'd also have to switch dependencies inside that sublibrary, but at that point it's basically the same as the hs-source-dirs approach but with more ceremony |
2024-10-28 14:07:38 +0100 | <tomsmeding> | sinbad: oh hm, you're correct -- I forgot about the conditional dependencies part |
2024-10-28 14:06:03 +0100 | <haskellbridge> | <sm> alright no I’m still on topic, good :) sinbad, why do you need conditional source ? |
2024-10-28 14:05:29 +0100 | <sinbad> | haskellbridge: I think it was addressed to me. At least I made sense of it :-) |
2024-10-28 14:04:17 +0100 | <haskellbridge> | <sm> and my last comment may have conflated two threads of discussion, ignore if it doesn’t make sense |
2024-10-28 14:04:07 +0100 | <sinbad> | haskellbridge: well, it is a executable, that is a utility whose libraries are not of public interest. |
2024-10-28 14:03:32 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-10-28 14:03:15 +0100 | merijn | (~merijn@77.242.116.146) (Ping timeout: 252 seconds) |
2024-10-28 14:02:38 +0100 | <haskellbridge> | <sm> if only the bridge could reject them |
2024-10-28 14:02:05 +0100 | <haskellbridge> | <sm> ack, sorry, irc edits 🚫 |
2024-10-28 14:01:33 +0100 | <haskellbridge> | <sm> * when the differences are so |
2024-10-28 13:58:39 +0100 | <haskellbridge> | <sm> * doing this in one package |
2024-10-28 13:58:24 +0100 | merijn | (~merijn@77.242.116.146) merijn |
2024-10-28 13:58:06 +0100 | <haskellbridge> | <sm> * if |
2024-10-28 13:58:04 +0100 | <haskellbridge> | <sm> I’m curious of this makes sense, if the differences are that large |
2024-10-28 13:56:53 +0100 | <sinbad> | tomsmeding: Not sure that the mixings would cut it, since, in my case, the difference between the dependencies is enormous. It looks to me that with mixings both versions are built. Am I wrong? |
2024-10-28 13:54:35 +0100 | rosco | (~rosco@60.53.5.183) (Quit: Lost terminal) |
2024-10-28 13:44:41 +0100 | <lxsameer> | tomsmeding: thanks, that would be helpful |
2024-10-28 13:44:18 +0100 | <tomsmeding> | https://github.com/tomsmeding/pastebin-haskell/blob/03e09c078a34e9bbf3fe8745aaee1917d8474de3/paste… |
2024-10-28 13:43:44 +0100 | scaniatrucker | (~user@78.56.98.5) (Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)) |
2024-10-28 13:43:16 +0100 | <tomsmeding> | lxsameer: I've used this before https://hackage.haskell.org/package/mustache but not sure if that's what you were looking for |
2024-10-28 13:42:29 +0100 | <sinbad> | tomsmeding: Thank you, I am going to look into mixing too. |
2024-10-28 13:42:23 +0100 | <lxsameer> | tomsmeding: text |
2024-10-28 13:41:10 +0100 | euleritian | (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
2024-10-28 13:41:06 +0100 | <tomsmeding> | lxsameer: a templating engine for what? text, html, haskell? |
2024-10-28 13:40:52 +0100 | euleritian | (~euleritia@dynamic-176-003-032-186.176.3.pool.telefonica.de) (Read error: Connection reset by peer) |
2024-10-28 13:40:38 +0100 | merijn | (~merijn@77.242.116.146) (Ping timeout: 255 seconds) |
2024-10-28 13:40:35 +0100 | <tomsmeding> | the trick would then be to put the Foo versions in a separate internal sublibrary ( https://cabal.readthedocs.io/en/stable/cabal-package-description-file.html#library ) as two regular, different modules with different names (Foo1 and Foo2, say), and then depending on your flag, depend on that sublibrary with a mixin renaming the proper Foo version to "Foo", and then re-export Foo |
2024-10-28 13:40:01 +0100 | <lxsameer> | any suggestion for a templating engine for haskell? |
2024-10-28 13:39:04 +0100 | <tomsmeding> | they allow you to depend on a library but rename one or more modules from that library on import |
2024-10-28 13:38:29 +0100 | <tomsmeding> | sinbad: for completeness, mixins would be another way to accomplish this: https://cabal.readthedocs.io/en/stable/cabal-package-description-file.html#pkg-field-mixins |
2024-10-28 13:36:49 +0100 | <tomsmeding> | furthermore, they are mostly _reference_ docs, i.e. you can find definitions of directives, but generally not (with some exceptions) answers to questions like yours |
2024-10-28 13:36:32 +0100 | <sinbad> | tomsmeding: good to know I am not alone :-) |
2024-10-28 13:36:12 +0100 | <tomsmeding> | almost everything is _there_, but not always in the expected format or place |
2024-10-28 13:35:58 +0100 | <tomsmeding> | sinbad: I agree that the cabal docs sometimes make it hard to find the information that you need; I myself ran into this multiple times |