Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created August 5, 2016 01:33
Show Gist options
  • Save sleexyz/0c8abb240e6dfb1246fdf668f279992a to your computer and use it in GitHub Desktop.
Save sleexyz/0c8abb240e6dfb1246fdf668f279992a to your computer and use it in GitHub Desktop.
{-# 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