twitter-conduit-0.0.2.1: Twitter API package with conduit interface and Streaming API support.

Safe HaskellNone

Web.Twitter.Conduit.Parameters.Internal

Synopsis

Documentation

class Parameters a whereSource

Instances

Parameters (APIRequest apiName responseType) 

readShow :: (Read a, Show a) => Prism' ByteString aSource

This Prism convert from a ByteString to some value based on Read and Show

>>> readShow # 2
"2"
>>> "1024" ^? readShow :: Maybe Integer
Just 1024

booleanQuery :: Prism' ByteString BoolSource

This Prism convert from a ByteString to Bool value.

>>> booleanQuery # True
"true"
>>> booleanQuery # False
"false"
>>> "true" ^? booleanQuery
Just True
>>> "1" ^? booleanQuery
Just True
>>> "t" ^? booleanQuery
Just True
>>> "test" ^? booleanQuery
Just False