Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. class Form (form :: Type -> Type -> Type) (val :: Type -> Type) | form -> val

    hyperbole 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
    

  2. data FormField (v :: k -> Type) (a :: k)

    hyperbole Web.Hyperbole.View.Forms

    No documentation available.

  3. FormField :: FieldName a -> v a -> FormField (v :: k -> Type) (a :: k)

    hyperbole Web.Hyperbole.View.Forms

    No documentation available.

  4. data FormFields id

    hyperbole Web.Hyperbole.View.Forms

    The only time we can use Fields is inside a form

  5. FormFields :: id -> FormFields id

    hyperbole Web.Hyperbole.View.Forms

    No documentation available.

  6. data FormOptions

    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})
    

  7. FormOptions :: (String -> String) -> FormOptions

    hyperbole Web.Hyperbole.View.Forms

    No documentation available.

  8. module Database.InfluxDB.Format

    No documentation available.

  9. data Format a r

    influxdb Database.InfluxDB.Format

    A typed format string. Format a r means that a is the type of formatted string, and r is the type of the formatter.

    >>> :t F.formatQuery
    F.formatQuery :: F.Format Query r -> r
    
    >>> :t F.key
    F.key :: F.Format r (Key -> r)
    
    >>> :t "SELECT * FROM "%F.key
    "SELECT * FROM "%F.key :: F.Format a (Key -> a)
    
    >>> :t F.formatQuery ("SELECT * FROM "%F.key)
    F.formatQuery ("SELECT * FROM "%F.key) :: Key -> Query
    
    >>> F.formatQuery ("SELECT * FROM "%F.key) "series"
    "SELECT * FROM \"series\""
    

  10. ForInStat :: Bool -> Ident -> JExpr -> JStat -> JStat

    jmacro Language.Javascript.JMacro

    No documentation available.

Page 303 of many | Previous | Next