2024/10/05

Newest at the top

2024-10-05 14:49:10 +0200 <kaol> I can't find a way to do this and trying to patch cabal for it is not something I'd want to go into. I'll just take it as no. Bah.
2024-10-05 14:45:12 +0200Smiles(uid551636@id-551636.lymington.irccloud.com) Smiles
2024-10-05 14:44:44 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-10-05 14:42:53 +0200paddymahoney(~paddymaho@pool-99-250-10-137.cpe.net.cable.rogers.com) (Ping timeout: 255 seconds)
2024-10-05 14:40:19 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-10-05 14:39:15 +0200 <tomsmeding> validatedTargets (under a `where` in the same file) calls resolveTargets (in ProjectOrchestration.hs), which returns a TargetsMap which is just a `Map UnitId _`
2024-10-05 14:37:37 +0200 <kaol> On a cursory look, it gets targets variable from validatedTargets and it has parameters like elaboratedPlan and targetSelectors and I suppose it's part of them to prefer libraries first.
2024-10-05 14:37:09 +0200L29Ah(~L29Ah@wikipedia/L29Ah) L29Ah
2024-10-05 14:33:28 +0200 <tomsmeding> that safeHead looks very non-configurable to me
2024-10-05 14:33:08 +0200 <tomsmeding> https://github.com/haskell/cabal/blob/b1e842d22b2d3fcd973b77bb81cf109f503be5f2/cabal-install/src/D…
2024-10-05 14:32:41 +0200 <tomsmeding> whatever that may be
2024-10-05 14:32:36 +0200 <tomsmeding> kaol: I looked in the cabal source, and it seems to take the first target ordered by UnitId
2024-10-05 14:29:20 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-10-05 14:26:49 +0200Square(~Square@user/square) Square
2024-10-05 14:26:30 +0200Square(~Square@user/square) (Remote host closed the connection)
2024-10-05 14:24:53 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-10-05 14:18:15 +0200 <kaol> And yes, the executable is the first component in my cabal. It still skips over it and picks the library instead.
2024-10-05 14:15:16 +0200 <Square> Thanks for the input on web jackdk, probie
2024-10-05 14:14:31 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 264 seconds)
2024-10-05 14:11:38 +0200 <kaol> I could write the executable name every time or set up some script to call to type less but I'd write "cabal repl" half the time from muscle memory. It'd be convenient to change this.
2024-10-05 14:09:53 +0200 <kaol> cabal repl --help tells me that running "cabal repl" uses "default component". I have several components in my cabal file and looks like it's defaulting to the first library but it'd be much more useful for my project to default to the first executable instead. Is there some knob I could turn?
2024-10-05 14:09:28 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-10-05 14:05:58 +0200kaol(~kaol@94-237-45-144.nl-ams1.upcloud.host) kaol
2024-10-05 14:01:04 +0200identity(~identity@user/ZharMeny) identity
2024-10-05 13:59:46 +0200 <jackdk> Which is what yesod-static is using under the hood. Depends on what level you are embedding at
2024-10-05 13:59:05 +0200 <jackdk> There's also https://hackage.haskell.org/package/file-embed
2024-10-05 13:58:31 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-10-05 13:57:32 +0200 <kqr> Ah, it comes with an example. Sometimes the Yesod documentation is a little difficult and sometimes it hits just the right spot!
2024-10-05 13:55:58 +0200CrunchyFlakes(~CrunchyFl@ip1f13e94e.dynamic.kabel-deutschland.de)
2024-10-05 13:54:28 +0200 <kqr> Just gotta figure out how to use it.
2024-10-05 13:54:15 +0200 <kqr> Yeah. This looks promising: https://hackage.haskell.org/package/yesod-static-1.6.1.0/docs/Yesod-EmbeddedStatic.html
2024-10-05 13:54:02 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-10-05 13:52:53 +0200 <Hecate> kqr: you mean, bundle external assets in the final binary?
2024-10-05 13:49:13 +0200 <kqr> And by "in Haskell" I mean "in Yesod", sorry
2024-10-05 13:47:29 +0200 <kqr> Does anyone know if it's possible to compile in external resources in Haskell, similar to how Shakesperean templates are compiled in? For ease of deployment when depending on specific fonts.
2024-10-05 13:47:26 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-10-05 13:45:56 +0200connrs(~connrs@user/connrs) connrs
2024-10-05 13:43:30 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 272 seconds)
2024-10-05 13:43:24 +0200CrunchyFlakes(~CrunchyFl@ip1f13e94e.dynamic.kabel-deutschland.de) (Ping timeout: 260 seconds)
2024-10-05 13:41:05 +0200connrs(~connrs@user/connrs) (Quit: ZNC 1.9.1 - https://znc.in)
2024-10-05 13:39:24 +0200rosco(~rosco@183.171.111.24) rosco
2024-10-05 13:38:59 +0200mantraofpie(~mantraofp@user/mantraofpie) (Quit: Leaving)
2024-10-05 13:38:37 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-10-05 13:34:43 +0200DigitteknohippieDigit
2024-10-05 13:33:03 +0200 <probie> It's easy enough to produce a Haskell library that can be called from JS or run in wasmtime (for example https://github.com/RubenVerg/tinyapl), but I don't know if anyone is using it to "replace" JavaScript
2024-10-05 13:29:58 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Client Quit)
2024-10-05 13:29:07 +0200 <jackdk> AIUI things are still in transtion. The reflex FRP people mostly talk on Matrix these days and I think work continues but I don't think they're not on modern JS-backend GHC stuff yet
2024-10-05 13:28:49 +0200alp_(~alp@2001:861:e3d6:8f80:1186:cef5:4906:f210) (Ping timeout: 252 seconds)
2024-10-05 13:28:14 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 260 seconds)
2024-10-05 13:26:48 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) ash3en