On Thu, Jul 15, 2010 at 9:20 AM, Pasqualino "Titto" Assini
<[email protected]> wrote:
> Many thanks for the explanation.
>
> But I thought that GHC always derives the most generic type, why does
> it fix my 'a' to 'Int' ?

Inferring the type of higher ranked functions is problematic, so GHC
never does this by itself.  See [1].

[1] 
http://www.haskell.org/ghc/docs/6.12.1/html/users_guide/other-type-extensions.html#id3027672

HTH,

-- 
Felipe.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to