| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
IHP.InputValue
Synopsis
- class InputValue a where
- inputValue :: a -> Text
Documentation
class InputValue a where Source #
Provides a way to convert a Haskell value to a Text representation
for use in HTML <input value="..."/> attributes.
This is used by IHP's form helpers to populate form field values.
Example:
>>>inputValue True"on"
>>>inputValue (1 :: Int)"1"
Methods
inputValue :: a -> Text Source #