Address issues with unify's case tree in idris

Clean up some stuff in prelude
Add parser for where
This commit is contained in:
2024-11-19 20:50:52 -08:00
parent 9b19c569c9
commit c665310653
10 changed files with 81 additions and 58 deletions

View File

@@ -366,6 +366,10 @@ parseDef = do
pats <- many patAtom
keyword "="
body <- typeExpr
w <- optional $ do
keyword "where"
startBlock $ manySame $ (parseSig <|> parseDef)
-- these get collected later
pure $ Def fc nm [(t, body)] -- [MkClause fc [] t body]