Created
April 5, 2017 22:20
-
-
Save missingfaktor/29dca7151c925ab64a2af115905e414c 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
| module OpenSums | |
| data FancySum a = Bar Integer | |
| | Baz | |
| | More a | |
| FancySumFlat : Type | |
| FancySumFlat = FancySum Void | |
| baz : FancySumFlat | |
| baz = the FancySumFlat Baz | |
| total | |
| gaz : Integer | |
| gaz = case baz of | |
| Bar i => i | |
| Baz => -1 | |
| data Pet = Cat | Dog | |
| FancySumPro : Type | |
| FancySumPro = FancySum Pet | |
| bazPro : FancySumPro | |
| bazPro = the FancySumPro Baz | |
| total | |
| gazPro : Integer | |
| gazPro = case bazPro of | |
| Bar i => i | |
| Baz => -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment