| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Aeson.Key
Description
Strong type for JSON keys.
Since: 2.0.0.0
Synopsis
- data Key
- fromString :: String -> Key
- toString :: Key -> String
- toText :: Key -> Text
- fromText :: Text -> Key
- coercionToText :: Maybe (Coercion Key Text)
- toShortText :: Key -> ShortText
- fromShortText :: ShortText -> Key
Documentation
Instances
| Arbitrary Key Source # | Since: 2.0.3.0 |
| CoArbitrary Key Source # | Since: 2.0.3.0 |
Defined in Data.Aeson.Key Methods coarbitrary :: Key -> Gen b -> Gen b | |
| Function Key Source # | Since: 2.0.3.0 |
Defined in Data.Aeson.Key | |
| FromJSON Key Source # | |
| FromJSONKey Key Source # | |
Defined in Data.Aeson.Types.FromJSON Methods | |
| ToJSON Key Source # | |
| ToJSONKey Key Source # | |
Defined in Data.Aeson.Types.ToJSON | |
| NFData Key Source # | |
Defined in Data.Aeson.Key | |
| Monoid Key Source # | |
| Semigroup Key Source # | |
| Data Key Source # | |
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 gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Key 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 | |
| IsString Key Source # | |
Defined in Data.Aeson.Key Methods fromString :: String -> Key | |
| Read Key Source # | |
Defined in Data.Aeson.Key | |
| Show Key Source # | |
| Eq Key Source # | |
| Ord Key Source # | |
| Hashable Key Source # | |
Defined in Data.Aeson.Key | |
| Lift Key Source # | |
| FoldableWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| FunctorWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| TraversableWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| SemialignWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap Methods ialignWith :: (Key -> These a b -> c) -> KeyMap a -> KeyMap b -> KeyMap c | |
| ZipWithIndex Key KeyMap | |
| FilterableWithIndex Key KeyMap | |
| WitherableWithIndex Key KeyMap | |
fromString :: String -> Key Source #
coercionToText :: Maybe (Coercion Key Text) Source #
toShortText :: Key -> ShortText Source #
Since: 2.0.2.0
fromShortText :: ShortText -> Key Source #
Since: 2.0.2.0