additional syntactic sugar

- allow multiple names in infix, typesig, and dcon defs
- align fixities with Idris
This commit is contained in:
2024-10-23 21:41:36 -07:00
parent 8c8cdf4f7f
commit 8fe9613c02
8 changed files with 40 additions and 45 deletions

View File

@@ -12,7 +12,7 @@ data Game : U where
-- Add, Sub, Mul, Neg
-- NB this is not lazy!
infixl 2 _&&_
infixl 5 _&&_
_&&_ : Bool -> Bool -> Bool
a && b = case a of
@@ -68,7 +68,7 @@ parseGame line =
_ => Left "No Game"
_ => Left $ "No colon in " ++ line
infixl 3 _>>_
infixl 1 _>>_
_>>_ : {A B : U} -> A -> B -> B
a >> b = b