Fix pattern types
This commit is contained in:
parent
fd418faa5f
commit
fc306d5f25
1 changed files with 3 additions and 3 deletions
|
|
@ -37,11 +37,11 @@ newtype Ident = Ident String
|
|||
deriving (C.Eq, C.Ord, C.Show, C.Read, IsString)
|
||||
|
||||
data Pattern' t
|
||||
= PVar (Id' t) -- TODO should be Ident
|
||||
| PLit (Lit, t) -- TODO should be Lit
|
||||
= PVar Ident
|
||||
| PLit Lit
|
||||
| PCatch
|
||||
| PEnum Ident
|
||||
| PInj Ident [Pattern' t] -- TODO should be (Pattern' t, t)
|
||||
| PInj Ident [(Pattern' t, t)]
|
||||
deriving (C.Eq, C.Ord, C.Show, C.Read, Functor)
|
||||
|
||||
data Exp' t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue