Skip to content

Instantly share code, notes, and snippets.

@daig
Last active September 7, 2022 16:19
Show Gist options
  • Save daig/402e83f8e092a1ef2bae5d72f1508b94 to your computer and use it in GitHub Desktop.
Save daig/402e83f8e092a1ef2bae5d72f1508b94 to your computer and use it in GitHub Desktop.
GHCID with custom prelude
{- ghcid --command="cabal repl --repl-options=-XNoImplicitPrelude" -}
{-
function hdoc() {
firefox $(cabal haddock --haddock-option="--hyperlinked-source" $1 | tail -n 1)
}
-}
:set -fno-code
:set -XMagicHash -XUnboxedTuples
:set -XPackageImports
:load ./src/Prelude.hs
import Prelude
:set -XImplicitPrelude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment