Ambiguous types

Ashley Yakeley ashley@semantic.org
Mon, 21 Jan 2002 02:09:15 -0800


I'm quite convinced the Haskell implementations are correct to complain, 
I just don't understand it intuitively. Anyway, here's an even simpler 
example:

compiles fine:

  ordnull :: forall a. (Ord a) => [a] -> Bool
  ordnull = null

  ordtrue :: (forall a. (Ord a) => [a]) -> Bool
  ordtrue = const True

gives type error:

  ordnull :: (forall a. (Ord a) => [a]) -> Bool
  ordnull = null


-- 
Ashley Yakeley, Seattle WA