Skip to content

Commit

Permalink
Merge pull request #45 from ivanbakel/fix/partially-apply-fake-type-s…
Browse files Browse the repository at this point in the history
…ynonym

Make `Fake` type synonym partially applied
  • Loading branch information
psibi committed Mar 6, 2022
2 parents 013a9d2 + c0550c1 commit 1da4d13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 1da4d13

Please sign in to comment.