Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data Openable A =
- OpenableInstance { -- some interface
- open :: A -> (bool,A),
- close :: A -> A,
- peek :: A -> string
- }
- data IOpenable =
- hide : forall A:Type, Openable A -> IOpenable
- ^
- existential type (hidden from the type of the IOpenable object itself)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement