Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Some simple usage examples to get started with the library.
The most important example is repExamples
which forms the basis of the app example.
Synopsis
- page1 :: Page
- page2 :: Page
- cfg2 :: PageConfig
- data RepExamples = RepExamples {
- repTextbox :: ByteString
- repTextarea :: ByteString
- repSliderI :: Int
- repSlider :: Double
- repSliderVI :: Int
- repSliderV :: Double
- repCheckbox :: Bool
- repToggle :: Bool
- repDropdown :: Int
- repDropdownMultiple :: [Int]
- repShape :: Shape
- repColor :: ByteString
- repExamples :: Monad m => SharedRep m RepExamples
- data Shape
- fromShape :: Shape -> ByteString
- toShape :: ByteString -> Shape
Documentation
cfg2 :: PageConfig Source #
Page with separated css and js.
data RepExamples Source #
One of each sharedrep input instances.
RepExamples | |
|
Instances
repExamples :: Monad m => SharedRep m RepExamples Source #
one of each input SharedReps
For a typed dropdown example.
fromShape :: Shape -> ByteString Source #
shape printer
toShape :: ByteString -> Shape Source #
shape parser