Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created August 14, 2017 17:01
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 deque-blog/4f6e896d7df795c86205f58e5fb583a2 to your computer and use it in GitHub Desktop.
Save deque-blog/4f6e896d7df795c86205f58e5fb583a2 to your computer and use it in GitHub Desktop.
sameCurrency : -- Predicate function
(m1, m2 : Money) -- * Taking two instances of Money
-> Dec (SameCurrency m1 m2) -- Returning a proof or a contradiction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment