fork download
  1. import Control.Monad
  2. import Data.Char
  3.  
  4. main = forever $ do
  5. putStr "Give me some input: "
  6. 1 <- getLine
  7. putStrLn $ map toUpper 1
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:6:1:
    No instance for (Num String)
      arising from the literal `1' at prog.hs:6:1
    Possible fix: add an instance declaration for (Num String)
    In the pattern: 1
    In a 'do' expression: 1 <- getLine
    In the second argument of `($)', namely
        `do putStr "Give me some input: "
            1 <- getLine
              putStrLn $ map toUpper 1'
stdout
Standard output is empty