Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Graph g where
- type Vertex g
- data Edge g
- src, target :: Edge g -> Vertex g
- ... so on
- then you instance it like this
- instance Graph Friends where
- type Vertex Friends = Friend
- data Edge Friends = LOL (Vertex Friends) (Vertex Friends)
- src = defined
- ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement