Created
October 10, 2017 19:53
-
-
Save msmorgan/384a7306fce7f714263c9793b6caf5be 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 InfixrBooleanOps | |
| %default total | |
| factorial : Nat -> Integer | |
| factorial Z = 1 | |
| factorial (S n) = (cast (S n)) * factorial n | |
| infixr 4 &&>, ||> | |
| (&&>) : Bool -> Lazy Bool -> Bool | |
| (&&>) = (&&) | |
| (||>) : Bool -> Lazy Bool -> Bool | |
| (||>) = (||) | |
| test1 : Bool | |
| test1 = True ||> factorial 10000 < 100 ||> factorial 100000 > 25 | |
| test2 : Bool | |
| test2 = False ||> factorial 10000 < 100 ||> factorial 100000 > 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment