Created
August 4, 2018 10:29
-
-
Save dramforever/be6e944c06442f17b6f2c55e7b445f06 to your computer and use it in GitHub Desktop.
total test
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
Idris> :l total.idr | |
Type checking ./total.idr | |
total.idr:3:1-5:35: | |
| | |
3 | totalTest x with (decEq x 'a') | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... | |
Main.totalTest is possibly not total due to: with block in Main.totalTest |
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
total | |
totalTest : (x : Char) -> Bool | |
totalTest x with (decEq x 'a') | |
totalTest 'a' | (Yes Refl) = True | |
totalTest x | (No contra) = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment