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

Compile times with large sums #165

Open
andrewthad opened this issue Oct 31, 2016 · 2 comments
Open

Compile times with large sums #165

andrewthad opened this issue Oct 31, 2016 · 2 comments

Comments

@andrewthad
Copy link

I have a data type with around 80 data constructors and derived instances for Eq,Ord,Bounded, and Enum. With ghc-7.10 and singletons-2.1, this compiled in somewhere near 15 seconds. With GHC8 and singletons-2.2, it takes closer to 100 seconds. I'm not sure if this is more likely to be a singletons issue or a more general issue with GHC compile times, but I figured I would bring it up anyway. I've created a gist with a minimal example: https://gist.github.com/andrewthad/b3cb6aca69000ac342d4eee24c4e6eb1

Also, I'm a little surprised that it's able to compile without TypeInType being enabled explicitly, but I guess none of the generated code needs it.

@jstolarek
Copy link
Collaborator

Yes, this looks like GHC's fault. See #8095. There are many related tickets, e.g. #12506, #11598

@goldfirere
Copy link
Owner

I just tested GHC 8 with singletons-2.1, and it's slow. So I'm with @jstolarek on this one. Will keep ticket open, though, so that when GHC fixes its end, we can test.

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

No branches or pull requests

3 participants