hyperbole-0.4.2: Interactive HTML apps using type-safe serverside Haskell
Safe HaskellNone
LanguageGHC2021

Web.Hyperbole.Effect.QueryData

Synopsis

Documentation

class ToQueryData a where Source #

Reimplement ToHttpApiData based on Show

Minimal complete definition

Nothing

Methods

toQueryData :: a -> Text Source #

default toQueryData :: Show a => a -> Text Source #

Instances

Instances details
ToQueryData Word16 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Word32 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Word64 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Word8 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Text Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData UTCTime Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Integer Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Bool Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Char Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Double Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Float Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData Int Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

Methods

toQueryData :: Int -> Text Source #

ToQueryData Word Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

ToQueryData a => ToQueryData (Maybe a) Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

Methods

toQueryData :: Maybe a -> Text Source #

Show a => ToQueryData [a] Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

Methods

toQueryData :: [a] -> Text Source #

(ToQueryData a, ToQueryData b) => ToQueryData (Either a b) Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

Methods

toQueryData :: Either a b -> Text Source #

class FromQueryData a where Source #

Reimplement FromHttpApiData based on Read

Minimal complete definition

Nothing

Instances

Instances details
FromQueryData Word16 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Word32 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Word64 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Word8 Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Text Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData UTCTime Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Integer Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Bool Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Char Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Double Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Float Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Int Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

FromQueryData Word Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

Read a => FromQueryData (Maybe a) Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

Read a => FromQueryData [a] Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

(FromQueryData a, FromQueryData b) => FromQueryData (Either a b) Source # 
Instance details

Defined in Web.Hyperbole.Effect.QueryData

showQueryParam :: Show a => a -> Text Source #

Encode a Show as a query param

readQueryParam :: Read a => Text -> Either Text a Source #

Decode a Read as a query param