Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setCacheField :: HashMap CacheFieldKey (Vector Text) -> FakerSettings -> IO ()fakedata Faker No documentation available.
setCacheFile :: HashMap CacheFileKey Value -> FakerSettings -> IO ()fakedata Faker No documentation available.
setDeterministic :: FakerSettings -> FakerSettingsfakedata Faker Set the output of fakedata to be deterministic. With this you will get the same ouput for the functions every time.
λ> import qualified Faker.Name as FN λ> :t FN.name FN.name :: Fake Text λ> generateWithSettings (setDeterministic defaultFakerSettings) FN.name "Antony Langosh" λ> generateWithSettings (setDeterministic defaultFakerSettings) FN.name "Antony Langosh"
setLocale :: Text -> FakerSettings -> FakerSettingsfakedata Faker Sets the locale. Note that for any other locale apart from "en", you need to make sure that the data is acutally present. In case no data is found, NoDataFound exception will be thrown. You can check the presence of the data in a particular locale by inspecting the yml file of the corresponding locale. The file would be bundled along with the particular Hackage release.
setNonDeterministic :: FakerSettings -> FakerSettingsfakedata Faker Set the output of fakedata to be non deterministic. With this you will get different ouput for the fake functions.
λ> generateWithSettings (setNonDeterministic defaultFakerSettings) FN.name "Macy Shanahan" λ> generateWithSettings (setNonDeterministic defaultFakerSettings) FN.name "Rudy Dickinson II"
setNonDeterministicSeed :: NonDeterministicSeed -> FakerSettings -> FakerSettingsfakedata Faker Sets the NonDeterministicSeed
setRandomGen :: StdGen -> FakerSettings -> FakerSettingsfakedata Faker Sets the initial gen for random generator
setCur :: Ptr Word8 -> BuildM ()fast-builder Data.ByteString.FastBuilder.Internal Set the current pointer.
setEnd :: Ptr Word8 -> BuildM ()fast-builder Data.ByteString.FastBuilder.Internal Set the end-of-buffer pointer.
setAnnotationAnchor :: ExactPrint a => a -> Anchor -> [TrailingAnn] -> EpAnnComments -> aghc-exactprint Language.Haskell.GHC.ExactPrint No documentation available.