aeson-2.0.2.0: Fast JSON parsing and encoding
Safe Haskell None
Language Haskell2010

Data.Aeson.Key

Synopsis

Documentation

data Key Source #

Instances

Instances details
Eq Key Source #
Instance details

Defined in Data.Aeson.Key

Data Key Source #
Instance details

Defined in Data.Aeson.Key

Methods

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

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

toConstr :: Key -> Constr Source #

dataTypeOf :: Key -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Ord Key Source #
Instance details

Defined in Data.Aeson.Key

Read Key Source #
Instance details

Defined in Data.Aeson.Key

Show Key Source #
Instance details

Defined in Data.Aeson.Key

IsString Key Source #
Instance details

Defined in Data.Aeson.Key

Semigroup Key Source #
Instance details

Defined in Data.Aeson.Key

Monoid Key Source #
Instance details

Defined in Data.Aeson.Key

NFData Key Source #
Instance details

Defined in Data.Aeson.Key

Methods

rnf :: Key -> () Source #

Hashable Key Source #
Instance details

Defined in Data.Aeson.Key

FromJSONKey Key Source #
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSON Key Source #
Instance details

Defined in Data.Aeson.Types.FromJSON

ToJSONKey Key Source #
Instance details

Defined in Data.Aeson.Types.ToJSON

KeyValue Pair Source #
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSON Key Source #
Instance details

Defined in Data.Aeson.Types.ToJSON

Lift Key Source #
Instance details

Defined in Data.Aeson.Key

FunctorWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

Methods

imap :: ( Key -> a -> b) -> KeyMap a -> KeyMap b Source #

FoldableWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

Methods

ifoldMap :: Monoid m => ( Key -> a -> m) -> KeyMap a -> m Source #

ifoldMap' :: Monoid m => ( Key -> a -> m) -> KeyMap a -> m Source #

ifoldr :: ( Key -> a -> b -> b) -> b -> KeyMap a -> b Source #

ifoldl :: ( Key -> b -> a -> b) -> b -> KeyMap a -> b Source #

ifoldr' :: ( Key -> a -> b -> b) -> b -> KeyMap a -> b Source #

ifoldl' :: ( Key -> b -> a -> b) -> b -> KeyMap a -> b Source #

TraversableWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

Methods

itraverse :: Applicative f => ( Key -> a -> f b) -> KeyMap a -> f ( KeyMap b) Source #

SemialignWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

ZipWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

Methods

izipWith :: ( Key -> a -> b -> c) -> KeyMap a -> KeyMap b -> KeyMap c Source #

FilterableWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

WitherableWithIndex Key KeyMap Source #
Instance details

Defined in Data.Aeson.KeyMap

coercionToText :: Maybe ( Coercion Key Text ) Source #

'coercing r1 r2' will evaluate to r1 if Key is Coercible to Text , and to r2 otherwise.

Using coercing we can make more efficient implementations when Key is backed up by Text without exposing internals.