Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data JSONPointer
- run :: Monoid m => JSONPointer -> (Maybe Int -> Text -> m) -> m
- atIndexOrKey :: Maybe Int -> Text -> JSONPointer
Documentation
data JSONPointer Source #
A model of JSONPointer represented in terms of a monoid.
Instances
Show JSONPointer Source # | |
Defined in JSONPointer.Model showsPrec :: Int -> JSONPointer -> ShowS # show :: JSONPointer -> String # showList :: [JSONPointer] -> ShowS # | |
Semigroup JSONPointer Source # | |
Defined in JSONPointer.Model (<>) :: JSONPointer -> JSONPointer -> JSONPointer # sconcat :: NonEmpty JSONPointer -> JSONPointer # stimes :: Integral b => b -> JSONPointer -> JSONPointer # | |
Monoid JSONPointer Source # | |
Defined in JSONPointer.Model mempty :: JSONPointer # mappend :: JSONPointer -> JSONPointer -> JSONPointer # mconcat :: [JSONPointer] -> JSONPointer # |
run :: Monoid m => JSONPointer -> (Maybe Int -> Text -> m) -> m Source #
Given a JSON Pointer specification and a function, which interprets a possible index or a textual key into a monoid, results in such a monoid.
atIndexOrKey :: Maybe Int -> Text -> JSONPointer Source #
Constructs JSON Pointer from a possible array index and a textual key.