On 16 October 2010 00:47, Jacek Generowicz <jacek.generow...@cern.ch> wrote:
> -- why does "show 2" compile, while "view 2" gives an
> -- 'Ambiguous type variable' error
>
> fine                  = view (2::Int)
> noProblem             = show 2
> ambiguousTypeVariable = view 2

Don't integral literals default to Integer, of which there is a Show
instance but no View instance?
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to