strlen in Hutton 2ed 10.5 Derived primitives => run on Windows 7 Haskell Platform 8.2.2 strlen :: IO () strlen = do putStr "Enter a string: " xs <- getLine putStr "The string has " putStr (show (length xs)) putStr " characters"
strlen :: IO () strlen = do putStr "Enter a string: " xs <- getLine putStr "The string has " putStr (show (length xs)) putStr " characters"This compiles for me with ghc 8.2.