-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | JSON Pointer parsing and interpretation utilities -- -- This library provides a parser and a model, which is supposed to be -- later interpreted by the client libraries. @package json-pointer @version 0.1.2.2 module JSONPointer.Model -- | A model of JSONPointer represented in terms of a monoid. data JSONPointer -- | 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. run :: Monoid m => JSONPointer -> (Maybe Int -> Text -> m) -> m -- | Constructs JSON Pointer from a possible array index and a textual key. atIndexOrKey :: Maybe Int -> Text -> JSONPointer instance GHC.Base.Semigroup JSONPointer.Model.JSONPointer instance GHC.Base.Monoid JSONPointer.Model.JSONPointer instance GHC.Show.Show JSONPointer.Model.JSONPointer -- | Attoparsec parser. module JSONPointer.Parser type Parser = Parser Text -- | Uses the parser to parse the input text in whole. run :: Parser a -> Text -> Either Text a -- | JSON Pointer parser. jsonPointer :: Parser JSONPointer