Guest User

Untitled

a guest
Aug 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. Haskell: define list over multiple lines
  2. tests = TestList ([TestLabel "test1" test1] ++
  3. [TestLabel "test2" test2] ++
  4. [TestLabel "test3" test3] ++
  5. [TestLabel "test4" test4] ++
  6. [TestLabel "test5" test5])
  7.  
  8. tests = TestList
  9. [ TestLabel "test1" test1
  10. , TestLabel "test2" test2
  11. , TestLabel "test3" test3
  12. , TestLabel "test4" test4
  13. , TestLabel "test5" test5 ]
  14.  
  15. tests = TestList
  16. [ "test1" ~: test1
  17. , "test2" ~: test2
  18. , "test3" ~: test3
  19. , "test4" ~: test4
  20. , "test5" ~: test5 ]
  21.  
  22. tests = TestList ([TestLabel "test1" test1,
  23. TestLabel "test2" test2,
  24. TestLabel "test3" test3,
  25. TestLabel "test4" test4,
  26. TestLabel "test5" test5])
Add Comment
Please, Sign In to add comment