Skip to content

Instantly share code, notes, and snippets.

@Kiwi
Forked from emilypi/ghci.conf
Created October 27, 2020 17:06
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 Kiwi/767051af019fb5d5bb51ee09f7501c7a to your computer and use it in GitHub Desktop.
Save Kiwi/767051af019fb5d5bb51ee09f7501c7a to your computer and use it in GitHub Desktop.
My modest ghci.conf
:set -XRankNTypes
:set -XGADTs
:set -XTypeFamilies
:set -XTypeApplications
:set -XBangPatterns
:set -XMagicHash
:set -XMultiParamTypeClasses
:set -XPatternSynonyms
:set -XDataKinds
:set -XConstraintKinds
:set -XOverloadedStrings
:set -XNumericUnderscores
:set -XFlexibleContexts
:set -XScopedTypeVariables
:set prompt "П> "
:def hlint const . return $ ":! hlint \"src\""
:def hoogle \s -> return $ ":! hoogle --color --count=15 " ++ show s
:def rg \s -> return $ ":! rg " ++ s
:def fzf const . pure $ ":! cat $HOME/.ghc/ghci_history | fzf --height 25"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment