Commit 96b4ce93 authored by Ian Lynagh's avatar Ian Lynagh

Remove the haskell98 dependency from some ghci tests

parent aa184f0d
import List
import Data.List
main = print (sort [100,99..1])
......@@ -7,7 +7,7 @@ let echo s = void (putStrLn s)
:def
:echo hello, world!
let echoupper s = return (":! echo " ++ map Char.toUpper s)
let echoupper s = return (":! echo " ++ map Data.Char.toUpper s)
:echo hello, world!
:def echo echoupper
:undef echo
......
-- bug: shouldn't kill the whole system
System.exitFailure
System.Exit.exitFailure
-- testing :info
:info +
:info (+)
:info Complex.:+
:info (Complex.:+)
:info Data.Complex.:+
:info (Data.Complex.:+)
:info RealFloat
:info `List.isPrefixOf`
:info `Data.List.isPrefixOf`
-- !!! test `:set args' and `:set prog'
System.getArgs
System.Environment.getArgs
print it
System.getProgName
System.Environment.getProgName
print it
:set args
System.getArgs
System.Environment.getArgs
print it
System.getProgName
System.Environment.getProgName
print it
:set args foo bar
System.getArgs
System.Environment.getArgs
print it
System.getProgName
System.Environment.getProgName
print it
:set prog foo
System.getArgs
System.Environment.getArgs
print it
System.getProgName
System.Environment.getProgName
print it
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment