Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Haskell

Compiler

ghc HEAD 8.3.20170706

Options
Warnings

Author

anonymous

over 8 years ago

$ ghc prog.hs -o prog.exe -Wall
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:1:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: main :: IO ()
  |
1 | main = do
  | ^^^^

prog.hs:2:16: warning: [-Wtype-defaults]
    • Defaulting the following constraints to type ‘Integer’
        (Show a0) arising from a use of ‘show’ at prog.hs:2:16-19
        (Num a0) arising from the literal ‘1’ at prog.hs:2:25
    • In the second argument of ‘(.)’, namely ‘show’
      In the expression: putStrLn . show
      In a stmt of a 'do' block: putStrLn . show $ f 1 2
  |
2 |     putStrLn . show $ f 1 2
  |                ^^^^

prog.hs:2:16: warning: [-Wtype-defaults]
    • Defaulting the following constraints to type ‘Integer’
        (Show b0) arising from a use of ‘show’ at prog.hs:2:16-19
        (Num b0) arising from the literal ‘2’ at prog.hs:2:27
    • In the second argument of ‘(.)’, namely ‘show’
      In the expression: putStrLn . show
      In a stmt of a 'do' block: putStrLn . show $ f 1 2
  |
2 |     putStrLn . show $ f 1 2
  |                ^^^^

prog.hs:3:16: warning: [-Wtype-defaults]
    • Defaulting the following constraints to type ‘Integer’
        (Show a0) arising from a use of ‘show’ at prog.hs:3:16-19
        (Num a0) arising from the literal ‘1’ at prog.hs:3:25
    • In the second argument of ‘(.)’, namely ‘show’
      In the expression: putStrLn . show
      In a stmt of a 'do' block: putStrLn . show $ g 1 2 3
  |
3 |     putStrLn . show $ g 1 2 3
  |                ^^^^

prog.hs:3:16: warning: [-Wtype-defaults]
    • Defaulting the following constraints to type ‘Integer’
        (Show b0) arising from a use of ‘show’ at prog.hs:3:16-19
        (Num b0) arising from the literal ‘2’ at prog.hs:3:27
    • In the second argument of ‘(.)’, namely ‘show’
      In the expression: putStrLn . show
      In a stmt of a 'do' block: putStrLn . show $ g 1 2 3
  |
3 |     putStrLn . show $ g 1 2 3
  |                ^^^^

prog.hs:3:16: warning: [-Wtype-defaults]
    • Defaulting the following constraints to type ‘Integer’
        (Show c0) arising from a use of ‘show’ at prog.hs:3:16-19
        (Num c0) arising from the literal ‘3’ at prog.hs:3:29
    • In the second argument of ‘(.)’, namely ‘show’
      In the expression: putStrLn . show
      In a stmt of a 'do' block: putStrLn . show $ g 1 2 3
  |
3 |     putStrLn . show $ g 1 2 3
  |                ^^^^
Linking prog.exe ...
(1,2)
(1,2,3)
Exit Code:
0