Advertisement
NLinker

.ghci

Nov 26th, 2018
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- copy this to ~/.ghci and run
  2. -- chmod 644 ~/.ghci
  3.  
  4. :set prompt "λ> "
  5. :set prompt-cont "λ| "
  6.  
  7. :def hlint const . return $ ":! hlint \"src\""
  8. -- :def hoogle \x -> return $ ":! hoogle \"" ++ x ++ "\""
  9. :def hoogle \x -> return $ ":! hoogle --count=15 \"" ++ x ++ "\""
  10. :def doc \x -> return $ ":! hoogle --info \"" ++ x ++ "\""
  11.  
  12. :def pl \s -> return $ ":! pointfree \"" ++ s ++ "\""
  13. :def rr (\a -> return $ unlines [":r", a])
  14.  
  15. -- :set +t
  16.  
  17. :set -Wall
  18. :set -fno-warn-missing-signatures
  19. :set -fno-warn-type-defaults
  20. :set -fno-warn-name-shadowing
  21. :set -fno-warn-unused-do-bind
  22.  
  23. -- :set -XNoMonomorphismRestriction
  24. :set -XOverloadedStrings
  25. :set -XRankNTypes
  26. :set -XScopedTypeVariables
  27.  
  28. import Control.Applicative
  29. import Control.Monad
  30. import Control.Concurrent
  31.  
  32. import Data.String
  33. import Data.Char
  34. import Data.List
  35. import Data.Monoid
  36.  
  37. import Test.Hspec
  38.  
  39. :set editor vim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement