ghc: Miscellaneous updates and clean up
This commit is contained in:
parent
198d333a79
commit
bd98551ec9
1 changed files with 24 additions and 12 deletions
|
@ -1,22 +1,33 @@
|
||||||
-- -------------------------------------------------------------------- --
|
-- -------------------------------------------------------------------- --
|
||||||
-- Default Extensions
|
-- Default Extensions
|
||||||
|
-- https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/control.html
|
||||||
|
-- GHC2024 gives errors with various projects
|
||||||
|
|
||||||
:set -XRankNTypes
|
|
||||||
:set -XGADTs
|
|
||||||
:set -XTypeFamilies
|
|
||||||
:set -XTypeApplications
|
|
||||||
:set -XBangPatterns
|
:set -XBangPatterns
|
||||||
|
:set -XConstraintKinds
|
||||||
|
:set -XDataKinds
|
||||||
|
:set -XDuplicateRecordFields
|
||||||
|
:set -XFlexibleContexts
|
||||||
|
:set -XGADTs
|
||||||
:set -XMagicHash
|
:set -XMagicHash
|
||||||
:set -XMultiParamTypeClasses
|
:set -XMultiParamTypeClasses
|
||||||
:set -XPatternSynonyms
|
|
||||||
:set -XDataKinds
|
|
||||||
:set -XConstraintKinds
|
|
||||||
:set -XOverloadedStrings
|
|
||||||
:set -XNumericUnderscores
|
:set -XNumericUnderscores
|
||||||
:set -XFlexibleContexts
|
|
||||||
:set -XScopedTypeVariables
|
|
||||||
:set -XOverloadedRecordDot
|
:set -XOverloadedRecordDot
|
||||||
:set -XDuplicateRecordFields
|
:set -XOverloadedStrings
|
||||||
|
:set -XPatternSynonyms
|
||||||
|
:set -XRankNTypes
|
||||||
|
:set -XScopedTypeVariables
|
||||||
|
:set -XTypeApplications
|
||||||
|
|
||||||
|
-- -------------------------------------------------------------------- --
|
||||||
|
-- Useful flags
|
||||||
|
|
||||||
|
:set -fprint-explicit-foralls
|
||||||
|
:set -fprint-explicit-kinds
|
||||||
|
:set -ferror-spans
|
||||||
|
-- Enable multi-line expressions with :{ and :}
|
||||||
|
:set +m
|
||||||
|
-- Colorizing and pretty-printing ghci output
|
||||||
:set -interactive-print=Text.Pretty.Simple.pPrint
|
:set -interactive-print=Text.Pretty.Simple.pPrint
|
||||||
|
|
||||||
-- -------------------------------------------------------------------- --
|
-- -------------------------------------------------------------------- --
|
||||||
|
@ -42,7 +53,8 @@
|
||||||
-- -------------------------------------------------------------------- --
|
-- -------------------------------------------------------------------- --
|
||||||
-- Util cmds
|
-- Util cmds
|
||||||
|
|
||||||
|
:def fzf const . pure $ ":! cat $HOME/.ghc/ghci_history | fzf --height 25"
|
||||||
:def hlint const . return $ ":! hlint \"src\""
|
:def hlint const . return $ ":! hlint \"src\""
|
||||||
:def hoogle \s -> return $ ":! hoogle --color --count=15 " ++ show s
|
:def hoogle \s -> return $ ":! hoogle --color --count=15 " ++ show s
|
||||||
:def rg \s -> return $ ":! rg " ++ s
|
:def rg \s -> return $ ":! rg " ++ s
|
||||||
:def fzf const . pure $ ":! cat $HOME/.ghc/ghci_history | fzf --height 25"
|
:def tags \_ -> return ":! fast-tags --fully-qualified -R ."
|
||||||
|
|
Loading…
Reference in a new issue