!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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.org143 Servers

Load older messages


SenderMessageTime
1 Dec 2025
@acidbong:envs.net@acidbong:envs.net
In reply to @b:chreekat.net

Probably not the right room to be asking (sorry), and I'm not sure there is an option that's more idiomatic. But I'll give my own recommendations and heuristics:

  1. Always use explicit export lists so you only export the things you want exported. It's helpful to the compiler as well as your future self
  2. Anything that needs a do block usually goes on the top level
  3. lets and wheres are good for one-line unpacking or manipulating of function arguments, but it gets confusing if you can't see the place where the arguments are declared on the same screen
  4. I usually put top-level helpers after the function they are helping, and I usually use let instead of where.
  5. Nesting lets and wheres is awful
oh damn, i confused the room
09:06:53
@acidbong:envs.net@acidbong:envs.net left the room.09:08:17
20 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".22:10:58
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".22:10:58
@grahamc:nixos.org@grahamc:nixos.org invited @maralorn:maralorn.demaralorn.22:11:05
@maralorn:maralorn.demaralorn joined the room.22:11:13
@andi:kack.itandi- joined the room.22:30:49
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.22:36:42
Room Avatar Renderer.22:46:20
@maralorn:maralorn.demaralorn changed the join rule to "public" from "public".22:54:26
@maralorn:maralorn.demaralorn changed the room topic to "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/" from "For discussions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/".22:56:19
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.23:05:49
@pennae:matrix.eno.spacepennae joined the room.23:06:26
@justinrestivo:matrix.orgjustinrestivo joined the room.23:07:39
@srid:matrix.orgsrid joined the room.23:07:41
@_xmpp_qy=40xa0.uk:matrix.orgbqv joined the room.23:08:26
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.23:08:27
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from bqv to qy.23:08:28
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.23:08:29
@ryantm:matrix.orgryantm joined the room.23:18:05
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.23:18:11
@sternenseemann:systemli.orgsterni (he/him) joined the room.23:18:19
@Ericson2314:matrix.orgJohn Ericson joined the room.23:20:08
@jcie74:matrix.orgpie_ joined the room.23:20:26
@utdemir:matrix.orgutdemir joined the room.23:23:07
@baum:bdisk.eubaum joined the room.23:24:21
@shibayashi:ncrypt.atshibayashi joined the room.23:35:42
21 May 2021
@joe:monoid.aljoe (he/him) joined the room.00:41:12
@o1lo0lol1o:matrix.orgo1lo0lol1o joined the room.00:44:27
@cdepillabout:matrix.orgcdepillabout joined the room.00:45:33

Show newer messages


Back to Room ListRoom Version: 6