]> gerrit.simantics Code Review - simantics/platform.git/blob - PolymorphicRecursion2.scl
ffcf9e8925ddeb00c17d6c9df449f0370ee7d172
[simantics/platform.git] / PolymorphicRecursion2.scl
1
2
3 class Foo a where
4     foo :: a
5     
6 data List a = Nil | Cons a (List a)
7
8 r x = Cons foo (r x)
9
10 main = (1.0 :: Double)
11 --
12 1.0