Commit Graph

5 Commits

Author SHA1 Message Date
Stephen Diehl
04dbc4085c added test case 2015-01-18 19:31:58 -05:00
Stephen Diehl
165d264ad8 explicit inlining of pull request #33 2015-01-18 19:24:09 -05:00
Christian Sievers
448c75be0a Fix type inference in poly.
Fixes type checking error in these examples:

   Poly> (\x -> if x then x else (x+1))
   <<closure>> : Int -> Int
(shouldn't type check)

   Poly> (\x -> fix (x 0))
   <<closure>> : forall a b. a -> b
(should give forall a. (Int -> a -> a) -> a)

Instead of finding out how to correctly infer types for the
If, Fix and Op cases, this fix delegates to the App case.
2015-01-18 15:13:11 +01:00
Stephen Diehl
07ae2b3c8b PolyML -> Poly 2015-01-07 14:26:12 -05:00
Stephen Diehl
9241ebe43c initial commit 2015-01-05 02:54:15 -05:00