Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. concat :: [ByteString] -> ByteString
  2.  
  3. {-# LANGUAGE ExistentialQuantification #-}
  4.  
  5. data Showable = forall a. Show a => Pack a
  6. instance Show Showable where
  7. show (Pack a)=show a
  8.  
  9. showableList :: [Showable]
  10. showableList = [Pack 1, Pack "Yolo", Pack 5.2, Pack (3, 4), Pack ["A", "B", "C"], Pack 'c']
  11.  
  12. main=print showableList
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement