Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Messages.hs is slow #6

Open
HairyDude opened this issue Feb 6, 2016 · 1 comment
Open

Compiling Messages.hs is slow #6

HairyDude opened this issue Feb 6, 2016 · 1 comment
Labels

Comments

@HairyDude
Copy link
Owner

Loading Messages.hs in GHCi is quick enough, but compiling it is very slow, even with optimizations off. With -O2 my computer runs out of memory. This is probably a consequence of these GHC bugs:

In particular the second, since ScriptMessage is a record type with many constructors (one for each message, of which there are currently >300), and the ToMessage(?) instance is just a function with a huge number of patterns.

@HairyDude HairyDude added the bug label Feb 6, 2016
@HairyDude
Copy link
Owner Author

The untemplate branch works around this issue by replacing the mkMessage splice in Messages.hs with its expansion. It's much easier to add messages using mkMessage so I'd like to go back to doing that, but that will have to wait till these GHC bugs are fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant