Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-19 11:03:24 × aggin quits (~ecm@103.88.87.37) (Quit: WeeChat 3.0.1)
2021-03-19 11:03:58 mnrmnaugh joins (~mnrmnaugh@unaffiliated/mnrmnaugh)
2021-03-19 11:04:13 <dramforever> For Haskell *development* just stay away from Arch Haskell packages. Actually, for most cases, as a rule of thumb for *any* development just stay away from *any* Linux distro packages.
2021-03-19 11:04:31 <dramforever> (If you'd like to disagree, you clearly know enough to ignore my rule of thumb.)
2021-03-19 11:05:34 <__monty__> Gentoo and NixOS don't have this problem : ) Even on Debian you might want to use their packages because a significant install base is going to be using those versions anyway.
2021-03-19 11:06:56 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds)
2021-03-19 11:07:46 <dramforever> If you're using Gentoo and NixOS I deserve being ignored
2021-03-19 11:08:07 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-19 11:08:14 <dramforever> Though, not sure about Gentoo, but even in the case NixOS I'd recommend trying some non-distro stuff like haskell.nix
2021-03-19 11:08:36 _noblegas joins (uid91066@gateway/web/irccloud.com/x-hphnornkrwdfiotz)
2021-03-19 11:08:46 <__monty__> +1
2021-03-19 11:08:51 <dramforever> My main gripe about the distro libraries is that they are often built for the programs included in the distro
2021-03-19 11:09:13 <dramforever> e.g. Having pandoc means including pandoc dependencies
2021-03-19 11:09:13 × emmanuel_erc quits (~user@2603-7000-9600-01c9-0000-0000-0000-0874.res6.spectrum.com) (Read error: Connection reset by peer)
2021-03-19 11:09:14 × benkolera quits (uid285671@gateway/web/irccloud.com/x-umfyvnhcrdleizmf) (Quit: Connection closed for inactivity)
2021-03-19 11:09:25 emmanuel_erc joins (~user@2603-7000-9600-01c9-0000-0000-0000-0874.res6.spectrum.com)
2021-03-19 11:09:54 <yushyin> as a maintainer i wouldn't even bother maintaining haskell packages. build some well known haskell packages (pandoc,shellcheck) statically, ignore libraries and recommend ghc/stack/nix for development
2021-03-19 11:10:02 marinelli joins (~marinelli@gateway/tor-sasl/marinelli)
2021-03-19 11:10:03 <dramforever> Developing on them, and one day you'll get a missing dependency, the next day you'll get an outdated library, and the next you'll be missing a dependency, whose dependency is newer than that in the distro and conflicts with something
2021-03-19 11:10:25 <__monty__> It's less of an issue in source-based distros. NixOS makes all of hackage available for example.
2021-03-19 11:10:27 <dramforever> yushyin: Not being able to build a package in a distro with your distro's packages sound... a bit odd :(
2021-03-19 11:10:40 <dramforever> __monty__: They still get outdated easily :(
2021-03-19 11:11:35 <__monty__> Potato, tomato, outdated, stable.
2021-03-19 11:12:05 <dramforever> As if nixpkgs haskell packages are, by any standard, stable
2021-03-19 11:12:24 <__monty__> Most of them derive from stackage LTS.
2021-03-19 11:12:36 <dramforever> That's true
2021-03-19 11:12:50 <dramforever> I guess somehow I just keep using non-stackage stuff :P
2021-03-19 11:13:18 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds)
2021-03-19 11:13:24 <yushyin> dramforever: yes it's odd indeed ^^
2021-03-19 11:13:38 <dramforever> I guess I don't get to complain about a set of stuff being unstable if it's literally the entire hackage
2021-03-19 11:13:57 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-19 11:15:20 jonn joins (~sweater@206.81.18.26)
2021-03-19 11:16:28 <jonn> Dear all, I want to add a flag to my own project for conditional compilation. Sadly, I'm yet to switch to cabal v2 and am still using stackage. How do I do that without manually patching .cabal file (which I suppose is generated from packages.yaml + stack.yaml?)
2021-03-19 11:17:19 × coot quits (~coot@37.30.58.223.nat.umts.dynamic.t-mobile.pl) (Quit: coot)
2021-03-19 11:18:14 <[exa]> jonn: I'm afraid switching to cabal v2 might be easier
2021-03-19 11:18:36 <dramforever> You don't have to use package.yaml for using stack. If you don't have a package.yaml, that .cabal file will be used.
2021-03-19 11:18:48 <opqdonut> yeah, I use stack.yaml + myproj.cabal
2021-03-19 11:18:57 <dramforever> And I think hpack (package.yaml thing) and stack support flags too?
2021-03-19 11:19:14 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds)
2021-03-19 11:19:23 rdivyanshu joins (uid322626@gateway/web/irccloud.com/x-puiusmmccpivlalb)
2021-03-19 11:19:28 <jonn> It does, but it only seem to support flags for dependencies, not the project apps / libs.
2021-03-19 11:20:01 <jonn> At least, that's what I gathered from reading the docs and observations...
2021-03-19 11:20:10 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-19 11:20:15 <day> __monty__: ive seen nixOS mentionings pop up more and more. maybe i'll give it a try, but I kind of like the rolling release style
2021-03-19 11:20:17 <dramforever> By 'it' do you mean hpack or stack?
2021-03-19 11:20:27 <jonn> stack, whilst reading package.yaml
2021-03-19 11:20:49 <__monty__> day: NixOS unstable is a rolling release.
2021-03-19 11:20:59 <day> oh
2021-03-19 11:21:07 <jonn> Ok, so I'll try to edit .cabal file and hope that stack shan't regenerate it.
2021-03-19 11:21:23 <dramforever> If you delete package.yaml it will, but how will that help?
2021-03-19 11:21:25 <__monty__> There's minimal checks ensuring the channel builds which can hold up channel bumps.
2021-03-19 11:21:35 <dramforever> Oh no https://github.com/sol/hpack#flags
2021-03-19 11:21:44 <dramforever> This is some confusing documentation
2021-03-19 11:21:59 <dramforever> jonn: But from what I gather, you *can* specify flags in package.yaml
2021-03-19 11:22:04 Sorna joins (~Sornaensi@077213203030.dynamic.telenor.dk)
2021-03-19 11:23:11 <__monty__> day: Caveat emptor though, UX isn't great yet, I wouldn't want to go back though : )
2021-03-19 11:23:19 <dramforever> jonn: https://paste.tomsmeding.com/e5ounghg
2021-03-19 11:24:05 <dramforever> Yeah that's why I was asking, you keep mentioning stack not supporting flags and mention package.yaml vs *.cabal, but they are kind of two separate things
2021-03-19 11:24:05 dsrt^ joins (~hph@ip98-184-89-2.mc.at.cox.net)
2021-03-19 11:24:08 × zyga quits (~zyga@139.28.218.148) (Remote host closed the connection)
2021-03-19 11:24:09 <jonn> fooflagthigy is the name of the project, right?
2021-03-19 11:24:15 <day> __monty__: UX?
2021-03-19 11:24:28 <dramforever> jonn: This is package.yaml, fooflagthingy is the name of the flag
2021-03-19 11:24:43 puffnfresh joins (~puffnfres@119-17-138-164.77118a.mel.static.aussiebb.net)
2021-03-19 11:24:48 <dramforever> In stack.yaml it's like this https://docs.haskellstack.org/en/stable/yaml_configuration/#flags
2021-03-19 11:25:07 <dramforever> I'm going to guess that using the name for your local package will make it apply to your local package
2021-03-19 11:25:15 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 246 seconds)
2021-03-19 11:25:28 × Sornaensis quits (~Sornaensi@79.142.232.102.static.router4.bolignet.dk) (Ping timeout: 245 seconds)
2021-03-19 11:25:44 <jonn> Thing is that I tried, but maybe I had a typo or something.
2021-03-19 11:25:46 <__monty__> day: User experience, the various commands don't have a very coherent interface yet and documentation isn't amazing yet.
2021-03-19 11:25:59 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-19 11:26:13 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
2021-03-19 11:26:28 <dramforever> jonn: oh :(
2021-03-19 11:26:34 <day> ah. i was thinking ui
2021-03-19 11:26:44 × Sathiana quits (~kath@185-113-98-38.cust.bredband2.com) (Quit: WeeChat 3.0)
2021-03-19 11:27:01 <dramforever> __monty__: That seems to be worked on. Maybe day should check back in like half a year or a year or something?
2021-03-19 11:27:03 Sathiana joins (~kath@185-113-98-38.cust.bredband2.com)
2021-03-19 11:27:19 × Sathiana quits (~kath@185-113-98-38.cust.bredband2.com) (Client Quit)
2021-03-19 11:27:27 <jonn> Now that I think about it, you *must* be right... `# Override default flag values for local packages and`
2021-03-19 11:27:30 <day> __monty__: but isnt the only notable difference the package manager?
2021-03-19 11:27:48 Sathiana joins (~kath@185-113-98-38.cust.bredband2.com)
2021-03-19 11:27:53 <jonn> I assumed that stack doesn't mean "currently developed project" as "a local package" (sorry, hpack*)
2021-03-19 11:28:01 <jonn> But maybe it does...
2021-03-19 11:28:16 <dramforever> If you use NixOS you also get a really different system configuration thing
2021-03-19 11:28:24 × Sathiana quits (~kath@185-113-98-38.cust.bredband2.com) (Client Quit)
2021-03-19 11:28:27 <__monty__> If you're interested you can check it out now. Even in the comfort of your current distro by simply installing Nix the package manager. If you're expecting to distro-hop to NixOS and have a smooth experience, you're in for a cold shower.
2021-03-19 11:29:18 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-03-19 11:29:21 × puffnfresh quits (~puffnfres@119-17-138-164.77118a.mel.static.aussiebb.net) (Ping timeout: 264 seconds)
2021-03-19 11:29:21 × emmanuel_erc quits (~user@2603-7000-9600-01c9-0000-0000-0000-0874.res6.spectrum.com) (Read error: Connection reset by peer)
2021-03-19 11:29:30 emmanuel_erc joins (~user@2603-7000-9600-01c9-0000-0000-0000-0874.res6.spectrum.com)
2021-03-19 11:29:31 <__monty__> day: The package manager is usable everywhere. The special thing about NixOS is declarative system configuration through NixOS modules (kind of a bad name but hysterical raisins).
2021-03-19 11:29:45 <dramforever> jonn: Yeah, the reason you need to tell the two apart is because if you don't like hpack, you can just delete package.yaml and edit *.cabal, as mentioned earlier
2021-03-19 11:30:18 Sathiana joins (~kath@185-113-98-38.cust.bredband2.com)
2021-03-19 11:30:37 × Sathiana quits (~kath@185-113-98-38.cust.bredband2.com) (Client Quit)
2021-03-19 11:31:12 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 246 seconds)
2021-03-19 11:31:42 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-19 11:32:47 <jonn> Nice
2021-03-19 11:33:08 puffnfresh joins (~puffnfres@119-17-138-164.77118a.mel.static.aussiebb.net)
2021-03-19 11:38:03 Sathiana joins (~kath@185-113-98-38.cust.bredband2.com)
2021-03-19 11:40:00 LaserShark joins (~LaserShar@139.28.218.148)

All times are in UTC.