Guest User

Untitled

a guest
Jan 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ghci> x <- readFile "foo.txt"
  2. ghci> let y = read x :: [Int]
  3. ghci> :t y
  4. y :: [Int]
  5.  
  6. x <- readFile "foo.txt"
  7.  
  8. example = do
  9. x <- readFile "foo.txt"
  10. let y = read x :: [Int]
  11. return y
  12.  
  13. readFoo = do
  14. x <- readFile "foo.txt"
  15. let y = read x :: [Int]
  16. return y
  17.  
  18. a -> IO a
Add Comment
Please, Sign In to add comment