home.social

#ghcup — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ghcup, aggregated by home.social.

  1. #haskell #ghcup discovery

    If like me, you use ghcup tui, and constantly find yourself pressing "u" thinking it means "use" only to find it means "uninstall", you can change the keybindings by editing ~/.ghcup/config.yaml

    key-bindings:
    uninstall:
    KChar: 'r'
    set:
    KChar: 'u'

    github.com/haskell/ghcup-hs/bl

  2. @dpwiz I can deeply empathize. I almost stopped using Nix for my project. I kept pushing because it feels like a better setup than (there's one quirk [?] that really bothered me here, in particular). It's very attractive with respect to a development env in Haskell in my opinion, but Nix sometimes feels like it causes bigger headaches.

    Also thank you for mentioning this, it makes me feel less like a fool.

  3. I kinda feel like (nixpkgs?) is better than for what I use it for.

  4. Also moved to #ghcup on #macos which makes managing compilers and cabal a bit more streamlined. #haskell

  5. Potential productivity boost ⚠️

    I think the binaries from are compiled to ignore Haddock comments (for "non-builtin" depends), so they don't show up in .

    I'm using this Nix Flake template: zero-to-flakes.com/haskell-fla

    I maybe changed 1 line in the default flake (ghc92) and now see pic.

    + for depends 💯

    I think this all lets you use same HLS, GHC, and Cabal as me, + reproduce my builds, run tests, with 1 or 2 commands.

    is reproducible magic.

  6. I can't seem to manage to get documentation (beyond type signatures) to pop up in for code (my tooling is managed with ), the way it does for the "builtin" functions.

    Does anyone know what this is about?

  7. @fosskers Agreed. The one criticism I have is that when you install something, the download info and progress bar is just written over the UI (wherever the cursor happens to be), creating a total visual mess. But apart from that, #ghcup is very nice.

  8. Oh! So I get to learn just enough about #ghcup to become dangerous! Excellent.

  9. Or without #stack using a simple #cabal-based project structure I often start with plus #ghcup for the tools. I can't get either of these simple workflows out of #nix.

  10. Can anyone link me to what's new in 9 and I think there's also a what's new or some kind of language draft or something for language and maybe that goes over all the language pragmas/extensions enabled by default in the new version.

    What should I be very aware of? I've been sticking with the versions suggest to me--so right now I'm on GHC 8.10.7.

  11. From what I can see, writing a #haskell #buildpack for #heroku is basically a #bash script one could write to set up haskell on a matching Linux distro. So all I need is to find a way to script the steps I took to get there. That might not be easy: I can't predict whether #ghcup is going to work on Heroku. Who here has tried that and can share their experiences?

  12. So that finally installed. Oh dear #ghcup maintainers: does it have to be so slow and involved? Every time I get to install #haskell on a fresh environment I have to look up how to do it, because it isn't obvious, and the packages available from package managers always prove out of date or incompatible.