From 4b255a9832d06ee08b3b68677a578e79ec8ccc17 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 31 Mar 2020 11:44:06 -0700 Subject: Add :iq ghci command --- .ghci | 2 ++ 1 file changed, 2 insertions(+) (limited to '.ghci') diff --git a/.ghci b/.ghci index 08406ce..2629ab7 100644 --- a/.ghci +++ b/.ghci @@ -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) -- cgit v1.2.3