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

Fix #167 #168

Merged
merged 1 commit into from
Nov 2, 2016
Merged

Fix #167 #168

merged 1 commit into from
Nov 2, 2016

Conversation

RyanGlScott
Copy link
Collaborator

My attempt to fix #167. I noticed that in the code for singling instance declarations (singInstD in Data.Singletons.Single), there's a case in which singletons fails to look up a singled function name and instead resorts to calling dsReify again. But after this call to dsReify, it uses the reified function type signature without expanding through type synonyms! Adding a call to expand afterwards seems to do the trick.

@goldfirere
Copy link
Owner

Looks reasonable to me. Thanks for submitting the patch, and for including the test case! Will merge if Travis approves (but may not be until morning, as I'm stopping work for the night now).

@goldfirere goldfirere merged commit 25d6134 into goldfirere:master Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using type synonyms causes singletonization to fail
2 participants