rc #13

Merged
crumbtoo merged 196 commits from dev into main 2024-02-13 13:22:23 -07:00
Showing only changes of commit 6130a91668 - Show all commits

View File

@@ -71,7 +71,8 @@ funD = FunD <$> varid <*> many pat1 <*> (symbol "=" *> fmap Const partialExpr)
partialExpr :: Parser PartialExpr'
partialExpr = choice
[ fmap Y $ U <$> varid' <*> lexeme infixOp <*> varid'
[ try $ fmap Y $ U <$> varid' <*> lexeme infixOp <*> fmap unY partialExpr
, fmap Y $ varid'
]
where varid' = E . VarEF <$> varid
@@ -128,6 +129,9 @@ type PartialDecl' = Decl (Const PartialExpr') Name
newtype Y f = Y (f (Y f))
unY :: Y f -> f (Y f)
unY (Y f) = f
instance (Show (f (Y f))) => Show (Y f) where
showsPrec p (Y f) = showsPrec p f