hw-json-lens-0.2.1.0: Lens for hw-json

Safe HaskellTrustworthy
LanguageHaskell2010

HaskellWorks.Data.Json.Lens

Contents

Synopsis

Documentation

_Integral :: (AsNumber t, Integral a) => Prism' t a Source #

Access Integer Values as Integrals.

data Primitive Source #

Primitives of Value

Instances
Eq Primitive Source # 
Instance details

Defined in HaskellWorks.Data.Json.Lens

Data Primitive Source # 
Instance details

Defined in HaskellWorks.Data.Json.Lens

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Primitive -> c Primitive #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Primitive #

toConstr :: Primitive -> Constr #

dataTypeOf :: Primitive -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Primitive) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Primitive) #

gmapT :: (forall b. Data b => b -> b) -> Primitive -> Primitive #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Primitive -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Primitive -> r #

gmapQ :: (forall d. Data d => d -> u) -> Primitive -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Primitive -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Primitive -> m Primitive #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Primitive -> m Primitive #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Primitive -> m Primitive #

Ord Primitive Source # 
Instance details

Defined in HaskellWorks.Data.Json.Lens

Show Primitive Source # 
Instance details

Defined in HaskellWorks.Data.Json.Lens

AsPrimitive Primitive Source # 
Instance details

Defined in HaskellWorks.Data.Json.Lens

AsNumber Primitive Source # 
Instance details

Defined in HaskellWorks.Data.Json.Lens

key :: AsValue t => String -> Traversal' t JsonPartialValue Source #

Like ix, but for Object with Text indices. This often has better inference than ix when used with OverloadedStrings.

members :: AsValue t => IndexedTraversal' String t JsonPartialValue Source #

An indexed Traversal into Object properties

nth :: AsValue t => Int -> Traversal' t JsonPartialValue Source #

Like ix, but for Arrays with Int indexes

values :: AsValue t => IndexedTraversal' Int t JsonPartialValue Source #

An indexed Traversal into Array elements

Orphan instances