Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
runBefore :: SqlPoolHooks (m :: Type -> Type) backend -> backend -> Maybe IsolationLevel -> m ()persistent Database.Persist.SqlBackend.Internal.SqlPoolHooks Run this action immediately before the action is performed.
getRunBefore :: SqlPoolHooks m backend -> backend -> Maybe IsolationLevel -> m ()persistent Database.Persist.SqlBackend.SqlPoolHooks No documentation available.
-
persistent Database.Persist.SqlBackend.SqlPoolHooks No documentation available.
-
persistent Database.Persist.SqlBackend.SqlPoolHooks No documentation available.
PersistForeignConstraintUnmet :: Text -> PersistExceptionpersistent Database.Persist.Types No documentation available.
-
http-api-data Web.FormUrlEncoded Parse Form into a value. An example type and instance:
data Person = Person { name :: String , age :: Int } instance FromForm Person where fromForm f = Person <$> parseUnique "name" f <*> parseUnique "age" fInstead of manually writing FromForm instances you can use a default generic implementation of fromForm. To do that, simply add deriving Generic clause to your datatype and declare a FromForm instance for your datatype without giving definition for fromForm. For instance, the previous example can be simplified into this:data Person = Person { name :: String , age :: Int } deriving (Generic) instance FromForm PersonThe default implementation of fromForm is genericFromForm. It only works for records and it will use parseQueryParam for each field's value. -
http-api-data Web.FormUrlEncoded Typeclass for types that can be parsed from keys of a Form. This is the reverse of ToFormKey.
-
http-api-data Web.FormUrlEncoded Convert a value into Form. An example type and instance:
{-# LANGUAGE OverloadedLists #-} data Person = Person { name :: String , age :: Int } instance ToForm Person where toForm person = [ ("name", toQueryParam (name person)) , ("age", toQueryParam (age person)) ]Instead of manually writing ToForm instances you can use a default generic implementation of toForm. To do that, simply add deriving Generic clause to your datatype and declare a ToForm instance for your datatype without giving definition for toForm. For instance, the previous example can be simplified into this:data Person = Person { name :: String , age :: Int } deriving (Generic) instance ToForm PersonThe default implementation of toForm is genericToForm. -
http-api-data Web.FormUrlEncoded Typeclass for types that can be used as keys in a Form-like container (like Map).
defaultFormOptions :: FormOptionshttp-api-data Web.FormUrlEncoded Default encoding FormOptions.
FormOptions { fieldLabelModifier = id }