Created
April 19, 2014 01:00
-
-
Save mwotton/11070163 to your computer and use it in GitHub Desktop.
This file contains 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
markdev ➜ ~ cat andy.hs | |
data Foo = FooCon { bar :: String, baz :: Int, quux :: [Foo]} | |
deriving (Show,Eq) | |
main = do | |
let FooCon { baz=b2, bar=b1, quux=b3 } = FooCon "abc" 1 [] | |
print b1 | |
print b2 | |
print b3 | |
markdev ➜ ~ runhaskell andy.hs | |
"abc" | |
1 | |
[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment