]> gerrit.simantics Code Review - simantics/platform.git/blob - InvalidInstance1.scl
36b3b92fc66ac33be0662ae680f4198f558be8bc
[simantics/platform.git] / InvalidInstance1.scl
1 class Foo a where
2     (+) :: a -> a -> a
3
4 instance Foo Double where
5     infix 3 (+)
6     x + y = x
7 --
8 5:5-5:16: Invalid declaration under instance definition.