Created
August 5, 2016 01:33
-
-
Save sleexyz/0c8abb240e6dfb1246fdf668f279992a 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 RecordWildCards #-} | |
data Person = Person {name :: String, address :: String} | |
me = Person {name = "Sean", address = "315 Seigel St"} | |
foo :: String | |
foo = | |
let Person{..} = me | |
in | |
name ++ " lives in " ++ address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment