Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. (x,y) = (10,20)
  2. (z:zs) = 0 : [1..]
  3.  
  4. prelude> x
  5. 10
  6. prelude> z
  7. 0
  8. prelude> takeN 3 zs
  9. [1,2,3]
  10.  
  11. (x,y) = (10,20)
  12. (z:zs) = 0 : [1..]
  13. True = False -- HERE
  14.  
  15. prelude> x
  16. 10
  17. prelude> 4
  18. 4
  19. prelude> True
  20. True
  21.  
  22. module Main where
  23. -- ^^^^^
  24.  
  25. x, y :: Int
  26. (x, y) = undefined
  27.  
  28. main :: IO ()
  29. main = putStrLn "hello!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement