diff options
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci016.hs')
-rw-r--r-- | testsuite/tests/ghci/scripts/ghci016.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci016.hs b/testsuite/tests/ghci/scripts/ghci016.hs new file mode 100644 index 0000000000..2740a66517 --- /dev/null +++ b/testsuite/tests/ghci/scripts/ghci016.hs @@ -0,0 +1,18 @@ +-- Test for trac #552 + +module Test where + +default (T) + +data T = T + deriving (Eq, Show) + +instance Num T where + fromInteger _ = T + (+) = error "urk" + (*) = error "urk" + abs = error "urk" + signum = error "urk" + +-- Typing 3 at the ghci prompt should print T + |