Last active
August 13, 2017 15:44
-
-
Save deque-blog/99d711d511ccb51cd156bb40b0a9eb07 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
data Money = Money { -- Declares a Money class with: | |
amount :: Amount, -- * an amount field | |
currency :: Currency -- * a currency field | |
} deriving (Show, Eq) -- * and equality on all fields |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment