[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:3:8:
No instance for (Show a0) arising from a use of `print'
The type variable `a0' is ambiguous
Note: there are several potential instances:
instance Show Double -- Defined in `GHC.Float'
instance Show Float -- Defined in `GHC.Float'
instance (Integral a, Show a) => Show (GHC.Real.Ratio a)
-- Defined in `GHC.Real'
...plus 24 others
In the expression: print
In the expression: print $ nub []
In an equation for `main': main = print $ nub []
prog.hs:3:16:
No instance for (Eq a0) arising from a use of `nub'
The type variable `a0' is ambiguous
Note: there are several potential instances:
instance Eq a => Eq (GHC.Real.Ratio a) -- Defined in `GHC.Real'
instance Eq a => Eq (Control.Applicative.ZipList a)
-- Defined in `Control.Applicative'
instance Eq () -- Defined in `GHC.Classes'
...plus 24 others
In the second argument of `($)', namely `nub []'
In the expression: print $ nub []
In an equation for `main': main = print $ nub []