3 / /_\// /_/ / / | | GHC Interactive, version 5.03, for Haskell 98.
4 / /_\\/ __ / /___| | http://www.haskell.org/ghc/
5 \____/\/ /_/\____/|_| Type :? for help.
7 Loading package std ... linking ... done.
9 Prelude> -- tests for :def, :undef
10 Prelude> let void m = m >> return ""
11 Prelude> let echo s = void (putStrLn s)
12 Prelude> :def echo echo
13 Prelude> :echo hello, world!
16 Prelude> let echo s = return (":! echo " ++ map Char.toUpper s)
17 Prelude> :echo hello, world!
19 Prelude> :def echo echo
20 command `echo' is already defined
22 Prelude> :def echo echo
23 Prelude> :echo hello, world!
25 Prelude> Leaving GHCi.