Skip to content

Make Fake type synonym partially applied#45

Merged
psibi merged 2 commits intofakedata-haskell:masterfrom
ivanbakel:fix/partially-apply-fake-type-synonym
Mar 6, 2022
Merged

Make Fake type synonym partially applied#45
psibi merged 2 commits intofakedata-haskell:masterfrom
ivanbakel:fix/partially-apply-fake-type-synonym

Conversation

@ivanbakel
Copy link
Copy Markdown
Contributor

Small QoL issue I noticed when using Fake.

Since GHC forces type synonyms to have all their arguments everywhere by
default, `Fake` having an unnecessary argument made it harder to use -
for example, `ReaderT r Fake a` was not valid code, because `Fake` was
missing its argument, despite that being a valid and useful monad stack.

This makes the synonym partially applied so GHC won't complain that it's
missing arguments.
@psibi
Copy link
Copy Markdown
Member

psibi commented Mar 2, 2022

Thanks, can you update the changelog too (with a new heading 1.0.3 (Unreleased)) ?

@ivanbakel
Copy link
Copy Markdown
Contributor Author

Should I bump the package version as well?

@psibi
Copy link
Copy Markdown
Member

psibi commented Mar 2, 2022 via email

@psibi psibi merged commit 1da4d13 into fakedata-haskell:master Mar 6, 2022
@psibi
Copy link
Copy Markdown
Member

psibi commented Mar 6, 2022

Thank you!

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.

2 participants