Advertisement
Guest User

Untitled

a guest
May 14th, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- polimophicField is one of: Car, Bike, Horse
  2. data CustomType = { field :: String, polimorphicField :: ??}
  3.  
  4. -- this one requires to change for (CustomType a) everywhere
  5. data CustomType a = { field :: String, polimorphicField :: a}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement