infix decl

This commit is contained in:
crumbtoo
2024-01-09 11:39:26 -07:00
parent 97ce9b48ae
commit 84c1122995
4 changed files with 84 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ module Rlp.Syntax
, RlpExprF(..)
, RlpExprF'
, Decl(..)
, Decl'
, Assoc(..)
, VarId(..)
, Pat(..)
@@ -50,6 +51,8 @@ data Decl e b = FunD VarId [Pat b] (e b)
| InfixD Assoc Int Name
deriving Show
type Decl' e = Decl e Name
data Assoc = InfixL
| InfixR
| Infix