fork download
  1. main = print $ succ succ 1
Compilation error #stdin compilation error #stdout 0s 6268KB
stdin
Standard input is empty
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:1:8:
    No instance for (Show a0) arising from a use of `print'
    The type variable `a0' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    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 23 others
    In the expression: print
    In the expression: print $ succ succ 1
    In an equation for `main': main = print $ succ succ 1

prog.hs:1:16:
    No instance for (Enum (a0 -> a0)) arising from a use of `succ'
    Possible fix: add an instance declaration for (Enum (a0 -> a0))
    In the second argument of `($)', namely `succ succ 1'
    In the expression: print $ succ succ 1
    In an equation for `main': main = print $ succ succ 1

prog.hs:1:21:
    No instance for (Enum a0) arising from a use of `succ'
    The type variable `a0' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    Note: there are several potential instances:
      instance Enum Double -- Defined in `GHC.Float'
      instance Enum Float -- Defined in `GHC.Float'
      instance Integral a => Enum (GHC.Real.Ratio a)
        -- Defined in `GHC.Real'
      ...plus 7 others
    In the first argument of `succ', namely `succ'
    In the second argument of `($)', namely `succ succ 1'
    In the expression: print $ succ succ 1

prog.hs:1:26:
    No instance for (Num a0) arising from the literal `1'
    The type variable `a0' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    Note: there are several potential instances:
      instance Num Double -- Defined in `GHC.Float'
      instance Num Float -- Defined in `GHC.Float'
      instance Integral a => Num (GHC.Real.Ratio a)
        -- Defined in `GHC.Real'
      ...plus three others
    In the second argument of `succ', namely `1'
    In the second argument of `($)', namely `succ succ 1'
    In the expression: print $ succ succ 1
stdout
Standard output is empty