/tmp/mumuki.compile20160816-15491-p4yj4c.hs:5:22:
No instance for (Ord a0) arising from a use of ‘max’
The type variable ‘a0’ is ambiguous
Note: there are several potential instances:
instance Ord a => Ord (Maybe a) -- Defined in ‘GHC.Base’
instance Ord Ordering -- Defined in ‘GHC.Classes’
instance Ord integer-gmp-1.0.0.0:GHC.Integer.Type.BigNat
-- Defined in ‘integer-gmp-1.0.0.0:GHC.Integer.Type’
...plus 23 others
In the second argument of ‘($)’, namely ‘max’
In the expression: putStr . show $ max
In an equation for ‘main’: main = putStr . show $ max
Muestra algo como: