Skip to content

Commit

Permalink
Bump version to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Jun 25, 2022
1 parent 7f2a401 commit def919d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog for fakedata

## 1.0.3 (Unreleased)
## 1.0.3

* [Make the `Fake` type synonym partially applied](https://github.com/fakedata-haskell/fakedata/pull/45)
* Implement deterministic output with fixed seed.
Expand Down
2 changes: 1 addition & 1 deletion fakedata.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: fakedata
version: 1.0.2
version: 1.0.3
synopsis: Library for producing fake data
description: Please see the README on GitHub at <https://github.com/psibi/fakedata#readme>
category: Random, Fake, FakeData
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: fakedata
version: 1.0.2
version: 1.0.3
github: "psibi/fakedata"
license: BSD3
author: "Sibi Prabakaran"
Expand Down
14 changes: 8 additions & 6 deletions src/Faker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Faker
FakeT (.., Fake),
FakerSettings,
FakerException (..),
NonDeterministicSeed,
NonDeterministicSeed (..),
defaultFakerSettings,

-- * Setters
Expand Down Expand Up @@ -272,7 +272,8 @@ instance (Monoid a, Monad m) => Monoid (FakeT m a) where
mempty = pure mempty
mappend mx my = mappend <$> mx <*> my

-- | Generate fake value with 'defaultFakerSettings'
-- | Generate fake value with 'defaultFakerSettings'. This produces
-- deterministic output by default.
--
-- @
-- λ> import qualified Faker.Name as FN
Expand Down Expand Up @@ -320,12 +321,13 @@ generateWithSettings settings (FakeT f) = do
cacheFile <- liftIO $ newIORef HM.empty
f $ newSettings {fsCacheField = cacheField, fsCacheFile = cacheFile}

-- | Geneerate fake value with 'NonDeterministicSeed' as
-- | Generate fake value with 'NonDeterministicSeed' as
-- 'FixedSeed'. The difference between 'generateNonDeterministic' and
-- this function is that this uses a fixed seed set via `setRandomGen`
-- as it's initial seed value.
--
-- Execute this function multiple times will result in same values.
-- Executing this function multiple times will result in generation of
-- same values.
--
-- @since 1.0.3
-- @
Expand All @@ -343,8 +345,8 @@ generateNonDeterministicWithFixedSeed =
}
)

-- | NonDeterministicSeed type which controls the behavior of how it's
-- non deterministic nature.
-- | NonDeterministicSeed type which controls if a fixed seed is going
-- to be used or if a new seed will be generated each time.
--
-- @since 1.0.3
data NonDeterministicSeed
Expand Down

0 comments on commit def919d

Please sign in to comment.