]> gerrit.simantics Code Review - simantics/platform.git/blob - NoInstance2.scl
5cb013e89e00d7785ae226a990e5250085393e9c
[simantics/platform.git] / NoInstance2.scl
1
2 class Foo a where
3     foo :: a
4
5 y :: Double
6 y = y
7     
8 x = if True then foo else y
9 --
10 8:18-8:21: There is no instance for <Foo Double>.