Skip to content
Snippets Groups Projects
Commit 058d3710 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-05-28 23:24:43 by panne]

Don't forget litlit alternatives when deciding if an expression should
make its way into an interface file.
*please merge*
parent 13f7bc6e
No related merge requests found
......@@ -466,7 +466,8 @@ okToUnfoldInHiFile e = opt_UnfoldCasms || go e
go (App fun arg) = go fun && go arg
go (Lam _ body) = go body
go (Let binds body) = and (map go (body :rhssOfBind binds))
go (Case scrut bndr alts) = and (map go (scrut:rhssOfAlts alts))
go (Case scrut bndr alts) = and (map go (scrut:rhssOfAlts alts)) &&
not (any isLitLitLit [ lit | (LitAlt lit, _, _) <- alts ])
go (Note _ body) = go body
go (Type _) = True
......
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