Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
No documentation available.
class
Form (form :: Type -> Type -> Type) (val :: Type -> Type) | form -> valhyperbole Web.Hyperbole A Form is a Higher Kinded record listing each Field. ContactForm Identity behaves like a normal record, while ContactForm Maybe would be maybe values for each field From Example.Page.FormSimple
#EMBED ExamplePageFormSimple.hs data ContactForm #EMBED ExamplePageFormSimple.hs instance Form ContactForm
data
FormField (v :: k -> Type) (a :: k)hyperbole Web.Hyperbole No documentation available.
module Web.Hyperbole.View.
Forms No documentation available.
class
Form (form :: Type -> Type -> Type) (val :: Type -> Type) | form -> valhyperbole Web.Hyperbole.View.Forms A Form is a Higher Kinded record listing each Field. ContactForm Identity behaves like a normal record, while ContactForm Maybe would be maybe values for each field From Example.Page.FormSimple
#EMBED ExamplePageFormSimple.hs data ContactForm #EMBED ExamplePageFormSimple.hs instance Form ContactForm
data
FormField (v :: k -> Type) (a :: k)hyperbole Web.Hyperbole.View.Forms No documentation available.
FormField :: FieldName a -> v a -> FormField (v :: k -> Type) (a :: k)hyperbole Web.Hyperbole.View.Forms No documentation available.
-
hyperbole Web.Hyperbole.View.Forms The only time we can use Fields is inside a form
FormFields :: id -> FormFields idhyperbole Web.Hyperbole.View.Forms No documentation available.
-
hyperbole Web.Hyperbole.View.Forms Generic-based deriving options for ToForm and FromForm. A common use case for non-default FormOptions is to strip a prefix off of field labels:
data Project = Project { projectName :: String , projectSize :: Int } deriving (Generic, Show) myOptions :: FormOptions myOptions = FormOptions { fieldLabelModifier = map toLower . drop (length "project") } instance ToForm Project where toForm = genericToForm myOptions instance FromForm Project where fromForm = genericFromForm myOptions>>> urlEncodeAsFormStable Project { projectName = "http-api-data", projectSize = 172 } "name=http-api-data&size=172" >>> urlDecodeAsForm "name=http-api-data&size=172" :: Either Text Project Right (Project {projectName = "http-api-data", projectSize = 172})