Skip to content

Commit

Permalink
Make ghci.conf work with NoImplicitPrelude
Browse files Browse the repository at this point in the history
  • Loading branch information
stolyaroleh committed Apr 29, 2019
1 parent 791e870 commit 7e6a3f8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ghc/ghci.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
-- make sure this works with NoImplicitPrelude
import Control.Monad (return)
import Data.List ((++))
import Data.Function (($))

:def hoogle \s -> return $ ":! hoogle search --color --link --count=15 \"" ++ s ++ "\""
:def doc \s -> return $ ":! hoogle search --color --link --info \"" ++ s ++ "\""

-- clear loaded modules
:m

-- allow multiline commands
:set +m

:set prompt "> "

0 comments on commit 7e6a3f8

Please sign in to comment.