Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,796,981 events total
2026-03-02 10:49:14 <Leary> I suggest you minimise it down to a reproducer and make an issue of it.
2026-03-02 10:51:12 <gentauro> sshine: what kind of "sourcery" do you put in `$CONFIG`? https://github.com/sshine/evm-opcodes/blob/09f7e8c5e3a19140a698fb161d2e4aee0b7a3843/.github/workflows/haskell.yml#L48-L60
2026-03-02 10:51:28 <[exa]> I assume it's because I yoloed and did global package installs with `--lib` etc
2026-03-02 10:51:42 <[exa]> Leary: would that count as weird ^ ?
2026-03-02 10:52:18 <Leary> Yes.
2026-03-02 10:52:43 <[exa]> ah, okay. :D
2026-03-02 10:54:55 <merijn> [exa]: --lib is the devil, never use it
2026-03-02 10:55:20 <merijn> It's hacky bypass for the new v2-build order
2026-03-02 10:55:38 <[exa]> any good alternative if I want to just play
2026-03-02 10:55:40 <[exa]> :D
2026-03-02 10:56:29 <merijn> [exa]: Basically, in the olden days you had a single global library database that had to be consistent or things exploded. In v2 the package database is automatically generated per project (allowing arbitrary many parallel installs of the same dependencies as long as they don't conflict "within a project")
2026-03-02 10:56:56 <merijn> [exa]: --lib does a global install into the old global package database, forcing EVERYTHING to use that exact version of the dependency you installed via --lib
2026-03-02 10:57:00 <[exa]> yap, my usecase is mainly "hey I have a ghci here and I want containers"
2026-03-02 10:57:09 <[exa]> the workaround is to make a small cabal env
2026-03-02 10:57:15 × misterfish quits (~misterfis@84.53.85.146) (Ping timeout: 245 seconds)
2026-03-02 10:57:16 <[exa]> but that's a bit too much work for a random hack
2026-03-02 10:57:31 <merijn> either a small cabal env or passing the dependency as a flag to cabal and using cabal repl over ghci
2026-03-02 10:59:19 <[exa]> oh it's actually the last example in `cabal repl --help`
2026-03-02 10:59:21 <[exa]> ok great
2026-03-02 10:59:29 <[exa]> let's nuke some .cabal then :)
2026-03-02 10:59:36 <[exa]> merijn Leary: thanks :)
2026-03-02 10:59:56 × juri_ quits (~juri@217-114-215-140.pool.ovpn.com) (Ping timeout: 252 seconds)
2026-03-02 11:04:09 acidjnk_new joins (~acidjnk@p200300d6e700e5876e445e500c43f7e0.dip0.t-ipconnect.de)
2026-03-02 11:04:21 × aku quits (aku@65.108.245.241) (Quit: Lost terminal)
2026-03-02 11:04:42 <[exa]> merijn: is there any workalike of --build-depends option for `cabal exec` ?
2026-03-02 11:05:24 CiaoSen joins (~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db)
2026-03-02 11:06:59 × acidjnk_new3 quits (~acidjnk@p200300d6e700e526dbe7f3b147cdd5b9.dip0.t-ipconnect.de) (Ping timeout: 245 seconds)
2026-03-02 11:07:01 × Enrico63 quits (~Enrico63@host-80-104-109-187.retail.telecomitalia.it) (Quit: Client closed)
2026-03-02 11:07:27 aku joins (aku@65.108.245.241)
2026-03-02 11:07:35 juri_ joins (~juri@217-114-215-140.pool.ovpn.com)
2026-03-02 11:08:44 kuribas joins (~user@ip-188-118-57-242.reverse.destiny.be)
2026-03-02 11:23:26 × tales quits (~tales@149.167.1.176) (Remote host closed the connection)
2026-03-02 11:26:10 xff0x joins (~xff0x@2405:6580:b080:900:f8aa:9656:36aa:e9bc)
2026-03-02 11:40:02 × vanishingideal quits (~vanishing@user/vanishingideal) (Ping timeout: 248 seconds)
2026-03-02 11:45:55 × tremon quits (~tremon@83.80.159.219) (Quit: getting boxed in)
2026-03-02 11:53:37 hakutaku joins (~textual@user/hakutaku)
2026-03-02 12:15:41 <merijn> [exa]: What exactly are you trying to do?
2026-03-02 12:16:07 <[exa]> run a ghc on an ad-hoc file that requires a library
2026-03-02 12:16:22 <[exa]> ideally with least environment setup involved
2026-03-02 12:16:45 <[exa]> I thought `cabal exec --build-depends containers -- ghc blah.hs ...
2026-03-02 12:20:30 KindFoxo joins (~KindFoxo@user/KindoFoxo)
2026-03-02 12:23:13 Guest25 joins (~Guest25@2001:6b0:d:2fa::104)
2026-03-02 12:25:14 misterfish joins (~misterfis@84.53.85.146)
2026-03-02 12:29:19 <merijn> [exa]: fyi
2026-03-02 12:29:36 <merijn> cabal supports shebang execution where you can write the cabal file as comment at the top
2026-03-02 12:30:13 <merijn> [exa]: https://cabal.readthedocs.io/en/3.4/cabal-commands.html?highlight=env#cabal-v2-run
2026-03-02 12:30:14 <[exa]> ah ok I guess this wins
2026-03-02 12:30:16 <[exa]> thanks
2026-03-02 12:30:18 <[exa]> :D
2026-03-02 12:31:34 morj_away joins (~morj@user/morj)
2026-03-02 12:42:39 vanishingideal joins (~vanishing@user/vanishingideal)
2026-03-02 12:51:10 × morj_away quits (~morj@user/morj) (Quit: Konversation terminated!)
2026-03-02 12:54:09 wickedjargon joins (~user@2605:8d80:5430:d209:272f:8e4a:220e:2e05)
2026-03-02 12:55:57 × hakutaku quits (~textual@user/hakutaku) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2026-03-02 12:56:42 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 255 seconds)
2026-03-02 12:56:46 hakutaku joins (~textual@user/hakutaku)
2026-03-02 12:58:35 Lord_of_Life joins (~Lord@user/lord-of-life/x-2819915)
2026-03-02 12:58:38 × KindFoxo quits (~KindFoxo@user/KindoFoxo) (Remote host closed the connection)
2026-03-02 12:59:07 emmanuelux joins (~em@user/emmanuelux)
2026-03-02 12:59:23 jtnuttall joins (~jeremy@user/jeremyn)
2026-03-02 13:06:34 <gentauro> merijn: cabalscript? Yes please :)
2026-03-02 13:08:54 <gentauro> btw, does cabal and hackage have official logos? (in svg format)?
2026-03-02 13:09:17 gentauro cabal seems to have this -> https://cabal.readthedocs.io/en/3.4/_static/Cabal-dark.png
2026-03-02 13:10:43 gentauro and hackage has this one -> https://hackage.haskell.org/static/favicon.png
2026-03-02 13:13:13 <int-e> https://wiki.haskell.org/Haskell_logos has the Haskell logo (hackage has a recolored version) and the Cabal one as SVG and a few more as well.
2026-03-02 13:14:48 <int-e> Oh. Maybe the haskell logo is not an SVG. An SVG version exists though, a couple of obvious links deeper.
2026-03-02 13:18:38 zlqrvx joins (~zlqrvx@user/zlqrvx)
2026-03-02 13:22:03 × vanishingideal quits (~vanishing@user/vanishingideal) (Ping timeout: 246 seconds)
2026-03-02 13:24:25 <gentauro> int-e: found this one for hackage -> https://github.com/haskell/hackage-server/blob/master/datafiles/static/icons/hackage.svg
2026-03-02 13:24:42 <gentauro> but doesn't seem to match the one from https://hackage.haskell.org/
2026-03-02 13:24:44 <gentauro> Hmmmm
2026-03-02 13:26:33 × vidak quits (~vidak@2407:e400:7800:2c01:c4db:d9c4:aac4:94f6) (Ping timeout: 248 seconds)
2026-03-02 13:26:55 <int-e> gentauro: the main page uses the grayscale ones (which look wrong on a white brackground, but that's fixable :P)
2026-03-02 13:28:12 <int-e> And then I guess the favicon is rounded cut-out from a screenshot of that?
2026-03-02 13:30:35 × misterfish quits (~misterfis@84.53.85.146) (Ping timeout: 245 seconds)
2026-03-02 13:31:31 × jtnuttall quits (~jeremy@user/jeremyn) (Ping timeout: 264 seconds)
2026-03-02 13:32:43 <int-e> gentauro: https://github.com/haskell/hackage-server/commit/9c81898f3b2d5bb5d5aa402f94cba69f70de58bc doesn't say how the favicon was created. so the trail goes cold here :P
2026-03-02 13:33:55 × weary-traveler quits (~user@user/user363627) (Remote host closed the connection)
2026-03-02 13:34:35 <gentauro> int-e: I vote for using this instead -> https://people.willamette.edu/~fruehr/logos/PNGs/CataLaw.png
2026-03-02 13:34:44 gentauro from your link "Classic Haskell logos"
2026-03-02 13:34:53 <gentauro> just imagine writing Lips with bananas :o
2026-03-02 13:36:23 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Read error: Connection reset by peer)
2026-03-02 13:37:12 vidak joins (~vidak@2407:e400:7800:2c01:d0be:76f8:cc84:bd4a)
2026-03-02 13:38:23 Lord_of_Life joins (~Lord@user/lord-of-life/x-2819915)
2026-03-02 13:41:42 vanishingideal joins (~vanishing@user/vanishingideal)
2026-03-02 13:43:00 × sixfourtwelve quits (~ethanmorg@static.82.129.225.46.clients.your-server.de) (Quit: leaving)
2026-03-02 13:44:16 × hsw quits (~hsw@106.104.102.45) (Remote host closed the connection)
2026-03-02 13:45:39 <gentauro> int-e: I guess I should be able to re-create that logo as SVG as I have previously made a "derived" logo -> https://gitlab.com/FunctionalCopenhagenersMeetupGroup
2026-03-02 13:46:08 gentauro now I just need to find the SVG on my machine …
2026-03-02 13:47:34 emaczen joins (~user@user/emaczen)
2026-03-02 13:56:07 × juri_ quits (~juri@217-114-215-140.pool.ovpn.com) (Ping timeout: 264 seconds)
2026-03-02 13:57:36 juri_ joins (~juri@217-114-215-140.pool.ovpn.com)
2026-03-02 13:59:30 rekahsoft joins (~rekahsoft@bras-base-orllon1103w-grc-20-76-67-111-168.dsl.bell.ca)
2026-03-02 14:00:43 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2026-03-02 14:09:17 <gentauro> what is the GHC compiler flag that dissallows defining `sum types` with `product types`? For example: `data FooBar = Foo { foo :: Int } | Bar { bar :: String}`. both `foo` as well as `bar` have signatures like: `FooBar -> …`. So you end up with a runtime error if wrongly used …
2026-03-02 14:10:07 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Quit: = "")
2026-03-02 14:10:38 × acidjnk_new quits (~acidjnk@p200300d6e700e5876e445e500c43f7e0.dip0.t-ipconnect.de) (Remote host closed the connection)
2026-03-02 14:11:01 acidjnk_new joins (~acidjnk@p200300d6e700e5876e445e500c43f7e0.dip0.t-ipconnect.de)
2026-03-02 14:15:13 <mangoiv> `-Wpartial-fields`
2026-03-02 14:16:03 <mangoiv> or `-Wincomplete-record-selectors` if you rather want to have it at use site (arguably the better one)

All times are in UTC.