diff options
author | Ben Sima <ben@bsima.me> | 2021-01-20 10:16:19 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-01-22 08:00:27 -0500 |
commit | 8b9ec04c25e2ddf34c9e0b925fb4283f40f54468 (patch) | |
tree | 8b3b0fbae94eec5912130da1ba2e7ab362bc9d72 /.ghci | |
parent | 92d3ab89ffd6e65d5a79de0cf5907aad3786ce44 (diff) |
Load Alpha in ghci startup and add pronunciations
Diffstat (limited to '.ghci')
-rw-r--r-- | .ghci | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,11 +1,13 @@ :set -XOverloadedStrings +:set -XNoImplictPrelude :set prompt " λ " :set prompt-cont " | " :set -Wall :set -haddock +:load Alpha -- ':iq Module M' -> 'import qualified Module as M' -:def iq (\arg -> let [x, y] = Prelude.words arg in return $ "import qualified " ++ x ++ " as " ++ y) -:def hoogle \s -> return $ ":! hoogle search --count=15 \"" ++ s ++ "\"" -:def hdoc \s -> return $ ":! hoogle search --info \"" ++ s ++ "\"" -:def f \_ -> return $ ":! ftags \n:r" -:def test \_ -> return $ ":main test" +:def iq (\arg -> let [x, y] = Prelude.words arg in return <| "import qualified " ++ x ++ " as " ++ y) +:def hoogle \s -> return <| ":! hoogle search --count=15 \"" ++ s ++ "\"" +:def hdoc \s -> return <| ":! hoogle search --info \"" ++ s ++ "\"" +:def f \_ -> return <| ":! ftags \n:r" +:def test \_ -> return <| ":main test" |