| 23 May 2021 |
cdepillabout | In reply to @maralorn:maralorn.de cdepillabout: I have ticked of all my build errors on haskell-updates. Most of them were weird false positives. Thanks! I'm waiting to do another ping-maintainers, but Hydra just won't finish those darwin builds. There are still about 6700 left. | 12:21:34 |
maralorn | Yeah, well it’s a time of high activity. | 12:22:30 |
maralorn | (Doing a whole communication platform switch exactly during branch-off is kinda crazy if you think about it …) | 12:23:10 |
pennae | but it..worked? :D | 12:24:14 |
pwmosquito | Hey all, here's a shameless plug for my little skeleton i use for my haskell projects:
https://github.com/pwm/nixkell
I used to copy&paste various nix bits from project to project and one day I decided to package it all up and put it up on gh. Hope some will find it useful. Any feedback/criticism welcome :) | 13:02:26 |
pwmosquito | PS: it's probably most useful for nix beginners and I've tried to write the readme with that in mind | 13:04:22 |
maralorn | pwmosquito: Cool. | 13:06:59 |
maralorn | Although I personally when I start with something find it hard to understand all the stacking abstractions. So I am not convinced of the additional toml file. | 13:09:01 |
maralorn | But I am sure it’s convenient when you know how it works. | 13:09:40 |
maralorn | pwmosquito: What are the nicest conveniences when using hpack instead of directly writing the cabal file? | 13:12:10 |
pwmosquito | Hey maralorn , Re toml config - I thought that haskellers who are not (yet) familiar with nix will find it easy to do stuff in the toml config (ghc version, nix env tools). Once they are more comfortable with nix they can ofc do whatever, eg. get rid of the toml config :) | 13:14:21 |
joe (he/him) | My copypaste file is just
{ nixpkgsSrc ? <nixpkgs>, pkgs ? import nixpkgsSrc { }, compiler ? null }:
let
haskellPackages = if compiler == null then
pkgs.haskellPackages
else
pkgs.haskell.packages.${compiler};
in haskellPackages.developPackage {
name = "";
root = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
}
| 13:14:41 |
pwmosquito | Re hpack - simply personal preference, i never actually learnt the cabal syntax :D I just write yaml and let hpack deal with the bespoke syntax of cabal | 13:15:08 |
joe (he/him) | In reply to @maralorn:maralorn.de pwmosquito: What are the nicest conveniences when using hpack instead of directly writing the cabal file? I use hpack solely for being able to not have to list out all the files, (and being able to have common settings shared between several targets, although I think cabal has this now?) | 13:15:56 |
joe (he/him) | and the documentation is imho clearer | 13:16:37 |
joe (he/him) | * and the documentation is imho clearer, although an understanding of cabal is also necessary I guess | 13:16:53 |
maralorn | In reply to @joe:monoid.al I use hpack solely for being able to not have to list out all the files, (and being able to have common settings shared between several targets, although I think cabal has this now?) Yeah, stanzas work fine. The point with listing all Modules is an annoyance. I agree. | 13:17:30 |
maralorn | In reply to @pwmosquito:matrix.org Hey maralorn , Re toml config - I thought that haskellers who are not (yet) familiar with nix will find it easy to do stuff in the toml config (ghc version, nix env tools). Once they are more comfortable with nix they can ofc do whatever, eg. get rid of the toml config :) Yeah, certainly makes sense. | 13:18:23 |
maralorn | In reply to @joe:monoid.al I use hpack solely for being able to not have to list out all the files, (and being able to have common settings shared between several targets, although I think cabal has this now?) * Yeah, stanzas work fine. The point with listing all modules is an annoyance. I agree. | 13:19:02 |
joe (he/him) | Oh, and in the past I've enjoyed being able to parse my package.yaml with yq to generate flags for running ghci | 13:20:13 |
joe (he/him) | https://github.com/expipiplus1/vulkan/blob/openxr/generate-new/flags.sh | 13:21:01 |
joe (he/him) | In reply to @pwmosquito:matrix.org PS: it's probably most useful for nix beginners and I've tried to write the readme with that in mind Thanks for trying to make things easier for nix beginners, pwmosquito ++ | 13:21:58 |
| sterni (he/him) changed their display name from sterni to sterni (he/him). | 13:24:14 |
| joe (he/him) changed their display name from joe to joe (he/him). | 13:25:46 |
pwmosquito | Thanks joe (he/him) the hardest part was definitely writing the readme :) it's also wip, i expect to rewrite it a few more times | 13:27:24 |
| Domen Kožar joined the room. | 14:08:40 |
Domen Kožar | 👋 | 14:08:54 |
sterni (he/him) | hi! | 14:09:45 |
| Jonatan Borkowski joined the room. | 20:05:10 |
@grahamc:nixos.org |  Download Channel-haskell (unused).png | 20:57:44 |