Data.Aeson.Key
data Key Source #
Defined in Data.Aeson.Key
Methods
(==) :: Key -> Key -> Bool #
(/=) :: Key -> Key -> Bool #
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Key -> c Key #
gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Key #
toConstr :: Key -> Constr #
dataTypeOf :: Key -> DataType #
dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Key) #
dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Key) #
gmapT :: (forall b. Data b => b -> b) -> Key -> Key #
gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Key -> r #
gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Key -> r #
gmapQ :: (forall d. Data d => d -> u) -> Key -> [u] #
gmapQi :: Int -> (forall d. Data d => d -> u) -> Key -> u #
gmapM :: Monad m => (forall d. Data d => d -> m d) -> Key -> m Key #
gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Key -> m Key #
gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Key -> m Key #
compare :: Key -> Key -> Ordering #
(<) :: Key -> Key -> Bool #
(<=) :: Key -> Key -> Bool #
(>) :: Key -> Key -> Bool #
(>=) :: Key -> Key -> Bool #
max :: Key -> Key -> Key #
min :: Key -> Key -> Key #
readsPrec :: Int -> ReadS Key #
readList :: ReadS [Key] #
readPrec :: ReadPrec Key #
readListPrec :: ReadPrec [Key] #
showsPrec :: Int -> Key -> ShowS #
show :: Key -> String #
showList :: [Key] -> ShowS #
fromString :: String -> Key #
(<>) :: Key -> Key -> Key #
sconcat :: NonEmpty Key -> Key #
stimes :: Integral b => b -> Key -> Key #
mempty :: Key #
mappend :: Key -> Key -> Key #
mconcat :: [Key] -> Key #
rnf :: Key -> () #
hashWithSalt :: Int -> Key -> Int #
hash :: Key -> Int #
Defined in Data.Aeson.Types.FromJSON
fromJSONKey :: FromJSONKeyFunction Key Source #
fromJSONKeyList :: FromJSONKeyFunction [Key] Source #
parseJSON :: Value -> Parser Key Source #
parseJSONList :: Value -> Parser [Key] Source #
Defined in Data.Aeson.Types.ToJSON
toJSONKey :: ToJSONKeyFunction Key Source #
toJSONKeyList :: ToJSONKeyFunction [Key] Source #
(.=) :: ToJSON v => Key -> v -> Pair Source #
toJSON :: Key -> Value Source #
toEncoding :: Key -> Encoding Source #
toJSONList :: [Key] -> Value Source #
toEncodingList :: [Key] -> Encoding Source #
lift :: Key -> Q Exp #
liftTyped :: Key -> Q (TExp Key) #
Defined in Data.Aeson.KeyMap
imap :: (Key -> a -> b) -> KeyMap a -> KeyMap b #
ifoldMap :: Monoid m => (Key -> a -> m) -> KeyMap a -> m #
ifoldMap' :: Monoid m => (Key -> a -> m) -> KeyMap a -> m #
ifoldr :: (Key -> a -> b -> b) -> b -> KeyMap a -> b #
ifoldl :: (Key -> b -> a -> b) -> b -> KeyMap a -> b #
ifoldr' :: (Key -> a -> b -> b) -> b -> KeyMap a -> b #
ifoldl' :: (Key -> b -> a -> b) -> b -> KeyMap a -> b #
itraverse :: Applicative f => (Key -> a -> f b) -> KeyMap a -> f (KeyMap b) #
ialignWith :: (Key -> These a b -> c) -> KeyMap a -> KeyMap b -> KeyMap c #
izipWith :: (Key -> a -> b -> c) -> KeyMap a -> KeyMap b -> KeyMap c #
imapMaybe :: (Key -> a -> Maybe b) -> KeyMap a -> KeyMap b #
ifilter :: (Key -> a -> Bool) -> KeyMap a -> KeyMap a #
iwither :: Applicative f => (Key -> a -> f (Maybe b)) -> KeyMap a -> f (KeyMap b) #
iwitherM :: Monad m => (Key -> a -> m (Maybe b)) -> KeyMap a -> m (KeyMap b) #
ifilterA :: Applicative f => (Key -> a -> f Bool) -> KeyMap a -> f (KeyMap a) #
fromString :: String -> Key Source #
toString :: Key -> String Source #
toText :: Key -> Text Source #
fromText :: Text -> Key Source #
coercionToText :: Maybe (Coercion Key Text) Source #
'coercing r1 r2' will evaluate to r1 if Key is Coercible to Text, and to r2 otherwise.
'coercing r1 r2'
r1
Key
Coercible
Text
r2
Using coercing we can make more efficient implementations when Key is backed up by Text without exposing internals.
coercing