Created
April 13, 2015 02:24
-
-
Save lotz84/9a8c97dbe0a9b73ebca8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE ExistentialQuantification #-} | |
data ShowBox = forall s. Show s => SB s | |
instance Show ShowBox where | |
show (SB s) = show s | |
heteroList :: [ShowBox] | |
heteroList = [SB (), SB 5, SB True] | |
main = print heteroList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment