diff options
Diffstat (limited to 'testsuite/tests/lib/System/getArgs001.hs')
-rw-r--r-- | testsuite/tests/lib/System/getArgs001.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/lib/System/getArgs001.hs b/testsuite/tests/lib/System/getArgs001.hs new file mode 100644 index 0000000000..4b8df9101b --- /dev/null +++ b/testsuite/tests/lib/System/getArgs001.hs @@ -0,0 +1,9 @@ +import System.Environment (getProgName, getArgs) + +main = + getProgName >>= \ argv0 -> + putStr argv0 >> + getArgs >>= \ argv -> + sequence (map (\ x -> putChar ' ' >> putStr x) argv) >> + putChar '\n' + |