| 23 May 2021 |
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 |
@grahamc:nixos.org | would y'all like to keep the avatar you have, or use this one which matches the other rooms' styles? | 20:57:45 |
toonn | Either's fine by me. | 21:15:17 |
@grahamc:nixos.org | cc maralorn who I think set the current one | 21:21:55 |
| @lambda-mike joined the room. | 21:30:08 |
pennae | more purple more good :3 | 21:32:48 |