Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 001
- 002
- 003
- 004
- map (splitOn "n") (readFile "file.txt")
- Couldn't match expected type `[[Char]]'
- with actual type `IO String'
- In the return type of a call of `readFile'
- In the second argument of `map', namely `(readFile "file.txt")'
- In the expression: map (splitOn "") (readFile "file.txt")
- main = do
- fileContents <- readFile "file.txt"
- let modified = map (splitOn "n") fileContents
- putStrLn modified
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement