projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1999-06-09 09:35:54 by simonpj]
[ghc-hetmet.git]
/
ghc
/
tests
/
programs
/
fun_insts
/
Main.hs
diff --git
a/ghc/tests/programs/fun_insts/Main.hs
b/ghc/tests/programs/fun_insts/Main.hs
index
286154c
..
fece8c9
100644
(file)
--- a/
ghc/tests/programs/fun_insts/Main.hs
+++ b/
ghc/tests/programs/fun_insts/Main.hs
@@
-5,6
+5,9
@@
module Main where
instance (Eq a, Eq b) => Eq (a->b)
+instance Show (a->b) where
+ show f = "<<function>>"
+
instance (Num a, Num b) => Num (a->b) where
f + g = \x -> f x + g x
negate f = \x -> - (f x)