Commit f5364793 authored by sewardj's avatar sewardj
Browse files

[project @ 2001-06-05 14:09:45 by sewardj]

Updates for 5.01.
parent 122f682d
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
*** WARNING: . is writable by someone else, IGNORING!
*** WARNING: ./.ghci is writable by someone else, IGNORING!
Prelude> -- bug: shouldn't be defaulting these expressions
Prelude> :type (+)
forall a. (Num a) => a -> a -> a
......
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
*** WARNING: . is writable by someone else, IGNORING!
*** WARNING: ./.ghci is writable by someone else, IGNORING!
Prelude> -- bug: we used to throw away the instance accidentally here
Prelude> :m PrelBase
PrelBase> 1 == (2 :: Int)
......
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
*** WARNING: . is writable by someone else, IGNORING!
*** WARNING: ./.ghci is writable by someone else, IGNORING!
Prelude> -- check that 'it' works
Prelude> 1
1
......
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
*** WARNING: . is writable by someone else, IGNORING!
*** WARNING: ./.ghci is writable by someone else, IGNORING!
Prelude> :unset +s +t
Prelude> -- test importing a module from a package
Prelude> :l ghci004
......
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
*** WARNING: . is writable by someone else, IGNORING!
*** WARNING: ./.ghci is writable by someone else, IGNORING!
Prelude> :unset +s +t
Prelude> -- tests for :def, :undef
Prelude> let void m = m >> return ""
......@@ -16,7 +18,7 @@ Prelude> let echo s = return (":! echo " ++ map Char.toUpper s)
hello, world!
Prelude> :echo hello, world!
Prelude> :def echo echo
ghc: command `echo' is already defined
command `echo' is already defined
Prelude> :undef echo
Prelude> :def echo echo
Prelude> :echo hello, world!
......
module Ghci006 where
data Q = forall x . Show x => Q x
showQ (Q x) = show x
-- associated bug is that at the interpreter command line,
-- showQ (Q "foo") crashed the interpreter.
\ No newline at end of file
-- showQ (Q "foo") crashed the interpreter.
Compiling Ghci006 ( ghci006.hs, interpreted )
\"foo\"
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
*** WARNING: . is writable by someone else, IGNORING!
*** WARNING: ./.ghci is writable by someone else, IGNORING!
Prelude> :unset +s +t
Prelude> :s -fglasgow-exts
Prelude> -- test for contexts on existential types crashing the interpreter
Prelude> :l ghci006
Ok, modules loaded: Ghci006.
Ghci006> showQ (Q "foo")
"\"foo\""
Ghci006>
Ghci006> Leaving GHCi.
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
......
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 4.11, For Haskell 98.
/ /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
......
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