fork(1) download
  1. import Data.List
  2.  
  3. main = print $ nub []
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[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 []
stdout
Standard output is empty