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

Make Fake type synonym partially applied #45

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for fakedata

## 1.0.3 (Unreleased)

* [Make the `Fake` type synonym partially applied](https://github.com/fakedata-haskell/fakedata/pull/45)

## 1.0.2

* Make it compatible with aeson 1 and 2.
Expand Down
2 changes: 1 addition & 1 deletion src/Faker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ newtype FakeT m a = FakeT

-- | Fake data type. This is the type you will be using to produce
-- fake values.
type Fake a = FakeT IO a
type Fake = FakeT IO

pattern Fake :: (FakerSettings -> IO a) -> Fake a
pattern Fake f = FakeT f
Expand Down