Skip to content
Snippets Groups Projects
Commit 753c0464 authored by sof's avatar sof
Browse files

[project @ 1997-08-02 21:28:33 by sof]

Added reader handling of let expressions in pattern guards
parent 50175239
No related merge requests found
......@@ -374,6 +374,15 @@ wlkQuals cquals
binds = cvBinds sf cvValSig bs
in
returnUgn (LetStmt binds)
U_let letvdefs letvexpr ->
wlkBinding letvdefs `thenUgn` \ binding ->
wlkExpr letvexpr `thenUgn` \ expr ->
getSrcLocUgn `thenUgn` \ loc ->
getSrcFileUgn `thenUgn` \ sf ->
let
binds = cvBinds sf cvValSig binding
in
returnUgn (GuardStmt (HsLet binds expr) loc)
\end{code}
Patterns: just bear in mind that lists of patterns are represented as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment