Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 453 454 455 456 457 458 459 460 461 462 463 .. 17999
1,799,883 events total
2021-06-14 11:59:48 <dminuoso> Seems like Cabal and cabal-install use the same versioning scheme
2021-06-14 12:00:49 <merijn> dminuoso: Also, you should just have correct metadata on your packages >.>
2021-06-14 12:01:15 <DigitalKiwi> i'm not sure but i think they might be related
2021-06-14 12:01:46 <dminuoso> merijn: Sure, it's why Im asking what this is about in the first place.
2021-06-14 12:01:57 <dminuoso> It's hard to write "correct metadata" when the semantics arent even clear
2021-06-14 12:02:06 cfricke joins (~cfricke@user/cfricke)
2021-06-14 12:04:53 <cdsmith> Seems like over the last 10 years there's been a parade of different answers for how to throw and catch exceptions in MTL-style classes (MonadPeel, MonadBaseControl, blah, blah, blah). Is there a consensus for the right way to do it now?
2021-06-14 12:05:31 <merijn> dminuoso: How are they not clear? The docs say: " list of Haskell extensions used by some (but not necessarily all) modules."
2021-06-14 12:05:43 × jneira quits (~jneira_@166.red-81-39-172.dynamicip.rima-tde.net) (Ping timeout: 268 seconds)
2021-06-14 12:05:45 <dminuoso> merijn: A note what this is even used for would be helpful.
2021-06-14 12:05:59 <dminuoso> This note about "some but not necessarily all" makes me really wonder why I should bother at all
2021-06-14 12:06:00 <merijn> cdsmith: edwardk's exceptions package
2021-06-14 12:06:17 <merijn> dminuoso: It means that you should list extensions that aren't used in *every* module too
2021-06-14 12:06:21 <dminuoso> When I add nothing to it, then I seem to satisfy the "some but not necessariy all" requirement, and its correct metadata, no?
2021-06-14 12:06:23 <dminuoso> ;)
2021-06-14 12:06:34 <merijn> dminuoso: "some, not all" refers to "which modules use the extension"
2021-06-14 12:06:41 <merijn> dminuoso: Not too which extensions to list
2021-06-14 12:06:48 <DigitalKiwi> they're not enabled like they are in default-extensions
2021-06-14 12:07:10 <cdsmith> <merijn "Chris Smith: edwardk's exception"> Cool. Is it fair to say that modern Haskell code is all using that? Or are there other options I'd also need to support?
2021-06-14 12:07:24 <merijn> dminuoso: If an extension used by some (i.e. more than 0) modules, it should be listed, even if its not used by *all* modules
2021-06-14 12:07:43 haskman joins (~haskman@171.61.149.211)
2021-06-14 12:07:45 <merijn> cdsmith: I don't think there's a single thing supported by "all modern Haskell code"
2021-06-14 12:07:51 <dminuoso> It's wishful thinking to ask that cabal-install told me this, right?
2021-06-14 12:08:10 <merijn> How should it tell you that, though?
2021-06-14 12:09:02 <cdsmith> I'm writing a package that exports a monad transformer, and it's important that it work with most exception-heavy code. So I guess I need a list, rather than one answer, then?
2021-06-14 12:09:33 <merijn> cdsmith: tbh, I'd say supporting anything other than exceptions is doomed anyway
2021-06-14 12:10:00 <merijn> cdsmith: MonadBaseControl is a nightmare. In the past decade I've never even heard of MonadPeel, tbh
2021-06-14 12:10:02 <[exa]> cdsmith: "mechanism not policy" -- export tools so that everyone can make their instances easily
2021-06-14 12:10:03 <DigitalKiwi> if you write something and it works with edwardk code and not someone else good chance you did the right way ;D
2021-06-14 12:10:19 <merijn> cdsmith: unliftio-core is another option
2021-06-14 12:10:41 <merijn> cdsmith: I'd say support unliftio-core and exceptions and anything else is somebody else's problem
2021-06-14 12:11:10 × dunkeln quits (~dunkeln@94.129.65.28) (Ping timeout: 244 seconds)
2021-06-14 12:11:20 <cdsmith> <merijn "Chris Smith: I'd say support unl"> Great. This sounds like the answer I was looking for. Much appreciated
2021-06-14 12:11:29 × srk quits (~sorki@user/srk) (Quit: ZNC 1.8.1 - https://znc.in)
2021-06-14 12:11:48 srk joins (~sorki@user/srk)
2021-06-14 12:11:52 <merijn> cdsmith: MonadUnliftIO only works if your transformer is, effectively, a variation of ReaderT, though
2021-06-14 12:13:40 <cdsmith> <merijn "Chris Smith: MonadUnliftIO only "> That's fine. It's currently a StateT, but I can make it a ReaderT (MVar ...) I need to anyway, because I need to add multithreading support.
2021-06-14 12:15:17 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.1)
2021-06-14 12:16:33 × dhil quits (~dhil@195.213.192.47) (Ping timeout: 272 seconds)
2021-06-14 12:18:04 <teaSlurper> when you have something of 2 types or a space between them, what does that mean?
2021-06-14 12:18:17 <teaSlurper> thing :: x y
2021-06-14 12:18:32 dunkeln joins (~dunkeln@94.129.65.28)
2021-06-14 12:18:42 <siers> teaSlurper, those are higher order types. that means that the definition of x uses y
2021-06-14 12:18:46 jakalx joins (~jakalx@base.jakalx.net)
2021-06-14 12:19:04 <teaSlurper> ahh ok
2021-06-14 12:19:07 <teaSlurper> thx
2021-06-14 12:19:12 <teaSlurper> siers:
2021-06-14 12:19:15 <siers> (tehnically it may decide not to use it,) but it has it as an argument.
2021-06-14 12:19:28 <siers> just like regular functions have arguments
2021-06-14 12:20:07 <[exa]> teaSlurper: you may imagine x~Maybe and y~Int; giving `thing :: Maybe Int`
2021-06-14 12:20:48 <teaSlurper> ok cheers
2021-06-14 12:20:49 nsilv joins (~nsilv@212.103.198.210)
2021-06-14 12:22:54 boxscape joins (~boxscape@user/boxscape)
2021-06-14 12:24:43 × Xnuk quits (~xnuk@vultr.xnu.kr) (Quit: ZNC - https://znc.in)
2021-06-14 12:25:01 Xnuk joins (~xnuk@45.76.202.58)
2021-06-14 12:26:52 lavaman joins (~lavaman@98.38.249.169)
2021-06-14 12:27:02 × hueso quits (~root@152.170.216.40) (Ping timeout: 252 seconds)
2021-06-14 12:27:12 × sekun quits (~sekun@180.190.222.37) (Remote host closed the connection)
2021-06-14 12:27:34 sekun joins (~sekun@180.190.222.37)
2021-06-14 12:28:38 hueso joins (~root@152.170.216.40)
2021-06-14 12:29:05 dhil joins (~dhil@80.208.56.181)
2021-06-14 12:29:54 ddellacosta joins (~ddellacos@89.45.224.191)
2021-06-14 12:31:11 cfricke joins (~cfricke@user/cfricke)
2021-06-14 12:31:37 × lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 268 seconds)
2021-06-14 12:31:45 × yd502 quits (~yd502@2409:891e:320:209e:b827:1a6a:79a7:5844) (Ping timeout: 272 seconds)
2021-06-14 12:31:52 waleee-cl joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd)
2021-06-14 12:31:56 <maerwald> how does one develop base?
2021-06-14 12:32:22 <merijn> maerwald: You mean patches for base?
2021-06-14 12:32:32 <maerwald> yes... like... even build it
2021-06-14 12:32:53 <merijn> maerwald: 90% of people probably just build it as part of GHC checkout
2021-06-14 12:32:58 eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:b9b1:9fc2:289f:a533)
2021-06-14 12:33:15 <merijn> maerwald: In theory base is separately buildable, because it was shared by GHC, Hugs, and some other now defunct compiler
2021-06-14 12:33:16 <maerwald> so I have to compile the entirety of GHC to test base patches?
2021-06-14 12:33:47 <merijn> maerwald: Once you build GHC once you only have to rebuild libraries. It might be possible to *only* build base, but that's probably a question better suited to #ghc
2021-06-14 12:34:30 <merijn> I was just saying that most people probably build it as part of GHC to test things, not that it's required too (because I don't know, tbh)
2021-06-14 12:34:30 × ddellacosta quits (~ddellacos@89.45.224.191) (Ping timeout: 264 seconds)
2021-06-14 12:37:00 × eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:b9b1:9fc2:289f:a533) (Ping timeout: 244 seconds)
2021-06-14 12:37:22 zebrag joins (~chris@user/zebrag)
2021-06-14 12:37:48 <nsilv> mmh... after updating HLS to the latest version for some reason now it segfaults lol
2021-06-14 12:39:51 <maerwald> nsilv: platform?
2021-06-14 12:40:33 <nsilv> maerwald: fedora on Windows via WSL2
2021-06-14 12:40:41 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-06-14 12:43:00 flipchan joins (~filip@user/flipchan)
2021-06-14 12:44:17 <Hecate> nsilv: welcome to the club lol
2021-06-14 12:44:26 <nsilv> might be an issue on my machine maybe? i'm using nix for the project and it only segfaults in a nix shell
2021-06-14 12:44:29 <flipchan> Hi all haskell devs :) Me and a friend just started a haskell job board in order to help out people that lost there job due to covid-19, check it out at https://haskell.careers
2021-06-14 12:45:25 × pottsy quits (~pottsy@2400:4050:b560:3700:79bb:fcd:bcf3:fe7c) (Quit: Leaving)
2021-06-14 12:45:44 × hemlock quits (~hemlock@ip72-203-188-10.tu.ok.cox.net) (Ping timeout: 252 seconds)
2021-06-14 12:46:00 hemlock joins (~hemlock@2607:fb90:96d4:b2db:6767:8423:197d:e850)
2021-06-14 12:46:19 larryba joins (~bc817c21@217.29.117.252)
2021-06-14 12:46:24 × ukari quits (~ukari@user/ukari) (Remote host closed the connection)
2021-06-14 12:46:38 <larryba> hi. some of the functions in System.Directory don't work with windows extended-length paths. getDirectoryContents "\\\\?\\C:\\" works, but doesDirectoryExist "\\\\?\\C:\\" does not, it returns False
2021-06-14 12:47:35 ukari joins (~ukari@user/ukari)
2021-06-14 12:48:22 jmcarthur joins (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net)
2021-06-14 12:48:50 <nsilv> I guess i'll temporarily turn off the nix stuff on my editor
2021-06-14 12:50:14 <DigitalKiwi> build base? you mean install something with haskell.nix but don't configure cachix and build 3 of them?
2021-06-14 12:50:30 <maerwald> nix?
2021-06-14 12:50:42 × xff0x_ quits (~xff0x@2001:1a81:521d:b00:682b:ce6c:b74:cd5b) (Ping timeout: 272 seconds)
2021-06-14 12:50:55 <DigitalKiwi> https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/#setting-up-the-binary-cache
2021-06-14 12:51:08 <maerwald> was that in reponse to me?

All times are in UTC.