!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

724 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org145 Servers

Load older messages


SenderMessageTime
23 May 2021
@pwmosquito:matrix.orgpwmosquitoPS: it's probably most useful for nix beginners and I've tried to write the readme with that in mind13:04:22
@maralorn:maralorn.demaralorn pwmosquito: Cool. 13:06:59
@maralorn:maralorn.demaralornAlthough 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:maralorn.demaralornBut I am sure it’s convenient when you know how it works.13:09:40
@maralorn:maralorn.demaralorn pwmosquito: What are the nicest conveniences when using hpack instead of directly writing the cabal file? 13:12:10
@pwmosquito:matrix.orgpwmosquito 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:monoid.aljoe (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:matrix.orgpwmosquitoRe 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 cabal13:15:08
@joe:monoid.aljoe (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:monoid.aljoe (he/him)and the documentation is imho clearer13:16:37
@joe:monoid.aljoe (he/him) * and the documentation is imho clearer, although an understanding of cabal is also necessary I guess13:16:53
@maralorn:maralorn.demaralorn
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:maralorn.demaralorn
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:maralorn.demaralorn
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:monoid.aljoe (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:monoid.aljoe (he/him)https://github.com/expipiplus1/vulkan/blob/openxr/generate-new/flags.sh13:21:01
@joe:monoid.aljoe (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
@sternenseemann:systemli.orgsterni (he/him) changed their display name from sterni to sterni (he/him).13:24:14
@joe:monoid.aljoe (he/him) changed their display name from joe to joe (he/him).13:25:46
@pwmosquito:matrix.orgpwmosquito 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
@domenkozar:matrix.orgDomen Kožar joined the room.14:08:40
@domenkozar:matrix.orgDomen Kožar👋14:08:54
@sternenseemann:systemli.orgsterni (he/him)hi!14:09:45
@jonatanb:matrix.orgJonatan Borkowski joined the room.20:05:10
@grahamc:nixos.org@grahamc:nixos.orgChannel-haskell (unused).png
Download Channel-haskell (unused).png
20:57:44
@grahamc:nixos.org@grahamc:nixos.orgwould y'all like to keep the avatar you have, or use this one which matches the other rooms' styles?20:57:45
@toonn:matrix.orgtoonn Either's fine by me. 21:15:17
@grahamc:nixos.org@grahamc:nixos.org cc maralorn who I think set the current one 21:21:55
@lambda-mike:matrix.org@lambda-mike joined the room.21:30:08
@pennae:matrix.eno.spacepennaemore purple more good :321:32:48

Show newer messages


Back to Room ListRoom Version: 6