Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- textTitle :: Text -> Text
- genParser :: Text -> Text -> Q [Dec]
- genParsers :: Text -> [Text] -> Q [Dec]
- genProviders :: Text -> [Text] -> Q [Dec]
- genProvidersSingle :: Text -> [Text] -> Q [Dec]
- genProvider :: Text -> Text -> Q [Dec]
- genParserUnresolved :: Text -> Text -> Q [Dec]
- genParserUnresolveds :: Text -> [Text] -> Q [Dec]
- genProviderUnresolveds :: Text -> [Text] -> Q [Dec]
- genProviderUnresolved :: Text -> Text -> Q [Dec]
- genAppParser :: Text -> Q [Dec]
- genAppProvider :: Text -> Q [Dec]
- genAppParserUnresolved :: Text -> Q [Dec]
- genAppProviderUnresolved :: Text -> Q [Dec]
Documentation
"beer" "name")
The above code will produce a function named parseBeerName
parseBeerName :: (FromJSON a, Monoid a) => FakerSettings -> Value -> Parser a
Note that a function named parseBeerField should be present in the scope for this to work.
"beer" "name") This will produce a function named: "beerNameProvider" Assumes the presence of parseBeerName function in the scope.
"app" "version") This will generate a function named parseAppVersionUnresolved :: (FromJSON a, Monoid a) => FakerSettings -> Value -> Parser (Unresolved a) This function assumes that parseUnresolvedAppField function is available in the scope.
"beer" "name") This will produce a function named: "beerNameProvider" Assumes the presence of parseBeerNameUnresolved function in the scope.