diff options
author | Ben Sima <ben@bsima.me> | 2020-03-31 11:44:06 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-03-31 12:02:10 -0700 |
commit | 4b255a9832d06ee08b3b68677a578e79ec8ccc17 (patch) | |
tree | ed25870dba3cc6b65666154dab3a8ea447ad1238 /.ghci | |
parent | 9f3804d5e4f28ea61a8abc856210422ad794b55e (diff) |
Add :iq ghci command
Diffstat (limited to '.ghci')
-rw-r--r-- | .ghci | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2,3 +2,5 @@ :set prompt "λ " :set prompt-cont "| " :set -Wall +-- ':iq Module M' -> 'import qualified Module as M' +:def iq (\arg -> let [x, y] = Prelude.words arg in return $ "import qualified " ++ x ++ " as " ++ y) |