Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- repInput :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Input a -> a -> SharedRep m a
- repMessage :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Input a -> a -> a -> SharedRep m a
- sliderI :: (Monad m, ToHtml a, Integral a, Show a) => Maybe Text -> a -> a -> a -> a -> SharedRep m a
- slider :: Monad m => Maybe Text -> Double -> Double -> Double -> Double -> SharedRep m Double
- dropdown :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Maybe Text -> [Text] -> a -> SharedRep m a
- datalist :: Monad m => Maybe Text -> [Text] -> Text -> Text -> SharedRep m Text
- dropdownSum :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Maybe Text -> [Text] -> a -> SharedRep m a
- colorPicker :: Monad m => Maybe Text -> PixelRGB8 -> SharedRep m PixelRGB8
- textbox :: Monad m => Maybe Text -> Text -> SharedRep m Text
- textarea :: Monad m => Int -> Maybe Text -> Text -> SharedRep m Text
- checkbox :: Monad m => Maybe Text -> Bool -> SharedRep m Bool
- toggle :: Monad m => Maybe Text -> Bool -> SharedRep m Bool
- button :: Monad m => Maybe Text -> SharedRep m Bool
- chooseFile :: Monad m => Maybe Text -> Text -> SharedRep m Text
- maybeRep :: Monad m => Maybe Text -> Bool -> SharedRep m a -> SharedRep m (Maybe a)
- fiddle :: Monad m => Concerns Text -> SharedRep m (Concerns Text, Bool)
- viaFiddle :: Monad m => SharedRep m a -> SharedRep m (Bool, Concerns Text, a)
Documentation
repInput :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Input a -> a -> SharedRep m a Source #
create a sharedRep from an Input
repMessage :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Input a -> a -> a -> SharedRep m a Source #
does not put a value into the HashMap on instantiation, consumes the value when found in the HashMap, and substitutes a default on lookup failure
sliderI :: (Monad m, ToHtml a, Integral a, Show a) => Maybe Text -> a -> a -> a -> a -> SharedRep m a Source #
slider :: Monad m => Maybe Text -> Double -> Double -> Double -> Double -> SharedRep m Double Source #
dropdown :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Maybe Text -> [Text] -> a -> SharedRep m a Source #
dropdownSum :: (Monad m, ToHtml a, Show a) => Parser a -> (a -> Text) -> Maybe Text -> [Text] -> a -> SharedRep m a Source #
maybeRep :: Monad m => Maybe Text -> Bool -> SharedRep m a -> SharedRep m (Maybe a) Source #
represent a Maybe type using a checkbox hiding the underlying content on Nothing