Guest User

Untitled

a guest
Jun 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import Data.List.NonEmpty
  2.  
  3. data Coordinate =
  4. Coordinate
  5. Double
  6. Double
  7.  
  8. data Waypoint =
  9. Waypoint
  10. String -- name
  11. String -- code
  12. (Maybe Coordinate)
  13.  
  14. newtype Runway =
  15. Runway
  16. String
  17.  
  18. data WaypointArrivalType =
  19. FullStop (Maybe Runway)
  20. | TouchAndGo (Maybe Runway)
  21. | StopAndGo (Maybe Runway)
  22. | GoAround (Maybe Runway)
  23. | Overfly
  24.  
  25. data WaypointArrival =
  26. WaypointArrival
  27. Waypoint
  28. WaypointArrivalType
  29. (NonEmpty WaypointArrivalType)
  30.  
  31. newtype Route =
  32. Route
  33. [WaypointArrival]
Add Comment
Please, Sign In to add comment