Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. type alias Props = { start: Date, stop: Date, assignee: String}
  2. type Item
  3. = Task Props
  4. | SubTask Props
  5. | Bug Props
  6. | Epic Props
  7. | ...
  8. assignTo: String -> Item -> Item
  9. assignTo person item =
  10. let
  11. changeAssignee props = {props | assignee = person}
  12. in
  13. case item of
  14. Task p -> Task (changeAssignee p)
  15. SubTask p -> SubTask (changeAssigne p)
  16. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement