Skip to content

Instantly share code, notes, and snippets.

@onosendi
Created July 31, 2022 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onosendi/fa35bc76d43e57369cf2d6ba7041d76d to your computer and use it in GitHub Desktop.
Save onosendi/fa35bc76d43e57369cf2d6ba7041d76d to your computer and use it in GitHub Desktop.
data Person = Person
{ name :: String,
age :: Int
}
greet :: Person -> [Char]
greet person = "Hi " ++ name person
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment