Haskell + asdf?

Someone might want to pursue implementing a Haskell option for asdf, a generic dev tool version switcher.

Link for lazy people (like me).

What would this buy me — say — in respec to Cabal’s --with-compiler?

1 Like

ahem: GHCup

3 Likes

Until nixpkgs takes over the world, it will allow for less context switches when switching between the python or typescript portion of your production codebase and the Haskell portion. I am unsure if it’s my favorite yet, but just trying to raise awareness.

1 Like

I think @hasufell is trying to point out that recent versions of GHCup allow you to do

ghcup run --ghc 9.2.1 cabal build

etc.

1 Like

I recently built an asdf plugin that wraps ghcup, it should work for ghc, cabal, stack and hls. I hope this helps.

1 Like

But @kanishka implicitly raises a good point that it is silly that every language needs its own <lang>up (rustup, ghcup, etc.). Even though I am an avid Nix user, I would support giving this asdf some Haskell love.

5 Likes

You forget that those are not just tools, but also distribution channels. I don’t think the problem really lies within multiple implementations of similar things. The code is rather trivial (conceptually).

1 Like