@@ -938,7 +938,7 @@ WExpr ::= '|' Expr';
939wExpr :: SyntaxInfo -> IdrisParser PTerm
939wExpr :: SyntaxInfo -> IdrisParser PTerm
940wExpr syn = do lchar '|'
940wExpr syn = do lchar '|'
941− expr' syn
941+ expr' (syn { inPattern = True })
942 <?> "with pattern"
942 <?> "with pattern"
944{- | Parses a where block
944{- | Parses a where block