pdep-utn / mumuki-guia-funcional-practica-aplicacion-parcial-y-orden-superior

Creative Commons Attribution Share Alike 4.0 International
0 stars 1 forks source link

Consola no muestra <function> en ejercicio 1 y 2 #1

Open geh opened 8 years ago

geh commented 8 years ago

Muestra algo como:

/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