Idris2-boot/tests/idris2/basic006/PMLet.idr
Michael Morgan e6121e0935 Remove trailing whitespace from Idris sources.
This is the result of running the command:

$ find . -name '*.idr' -type f -exec sed -i -E 's/\s+$//' {} +

I confirmed before running it that this would not affect any markdown
formatting in documentation comments.
2019-10-25 14:24:25 -07:00

13 lines
275 B
Idris

import Stuff
foo : Int -> Maybe Int
foo 0 = Nothing
foo x = Just (prim__mul_Int x 2)
testLet : Int -> Int
testLet x = let y = prim__mul_Int x 2
Just ans = foo y
| Nothing => 99
z = prim__mul_Int ans 2
in z