[commit: packages/filepath] master: Support :go taking a numeric argument (0b9122f)
git at git.haskell.org
git at git.haskell.org
Thu Mar 19 11:37:08 UTC 2015
Repository : ssh://git@git.haskell.org/filepath
On branch : master
Link : http://git.haskell.org/packages/filepath.git/commitdiff/0b9122f91f203238903fbd103cd931b57a24bf02
>---------------------------------------------------------------
commit 0b9122f91f203238903fbd103cd931b57a24bf02
Author: Neil Mitchell <ndmitchell at gmail.com>
Date: Mon Nov 3 15:49:50 2014 +0000
Support :go taking a numeric argument
>---------------------------------------------------------------
0b9122f91f203238903fbd103cd931b57a24bf02
.ghci | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.ghci b/.ghci
index c05f736..6e8b1b3 100644
--- a/.ghci
+++ b/.ghci
@@ -9,5 +9,5 @@ import qualified System.FilePath.Posix as P
:def gen const $ return "Generate.main"
:def test \x -> return $ if null x then "Test.main" else "System.Environment.withArgs [" ++ show x ++ "] Test.main"
-:def go const $ return $ unlines [":reload",":gen",":reload",":test",":gen",":reload"]
+:def go \x -> return $ unlines [":reload",":gen",":reload",":test " ++ x,":gen",":reload"]
:def testfull const $ return $ unlines [":reload","gen",":reload","!cabal test"]
More information about the ghc-commits
mailing list