Skip to content

Instantly share code, notes, and snippets.

@strake
Created February 21, 2020 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strake/2bddd9e5b082468f95c69d7958236c9a to your computer and use it in GitHub Desktop.
Save strake/2bddd9e5b082468f95c69d7958236c9a to your computer and use it in GitHub Desktop.
Script to do a shell command with the given GHC version in the PATH
#!/bin/sh
v=$1
shift
PATH="$HOME/.ghcup/ghc/$v/bin:$PATH" exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment