Skip to content

Give opinionated version suggestions for new projects (particularly for js/wasm backend) #2285

Closed
@tysonzero

Description

@tysonzero

Knowing what version of haskell.nix, nixpkgs and ghc to use seems rather unclear.

I'm currently on:

haskell.nix: 6e9c388cb8353b7d773cd93b553fa939556401ce
nixpkgs: 2311
ghc: 982

This more or less "works" modulo some minor interventions needed to get amazonka, filepath, geos, servant-jsaddle and web-push to build (version overriding/constraining, allow-newer and c-dep tweaks).

However I'd like to try and get a newer ghc working to see if js backend payload size has been brought down (my ~100 module ~6k LOC project creates a 34M js file), and knowing which combinations of the above are likely to work feels like a bit of a guessing game, and cache misses seem quite common.

The "Getting Started" link seems to mention newest haskell.nix + nixpkgs-unstable + ghc925, but of course that combo would not give me either the js or the wasm backend, and is also just a fairly old ghc version at this point, so I was wondering if a more opinionated "cutting edge" setup is suggested anywhere, and if not if it could be put somewhere obvious to help newcomers, particularly those looking to do any frontend dev where this stuff tends to be most challenging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions