Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. type OtherType = { x :: Int, y :: Int, z :: String } deriving (Show)
  2.  
  3. data SelectionType = A | B
  4.  
  5. myMapper = map foo someMyTypes
  6.  
  7. foo :: SelectionType -> MyType -> OtherType
  8. foo sel t = [ x t, y t, z t <> something ]
  9. where
  10. case SelectionType of
  11. A -> something = "a selected"
  12. B -> something = "b selected"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement