| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.JSONPath.ExecutionResult
Documentation
data ExecutionResult a Source #
Constructors
| ResultList [a] | |
| ResultValue a | |
| ResultError String |
Instances
| Monad ExecutionResult Source # | |
Defined in Data.JSONPath.ExecutionResult Methods (>>=) :: ExecutionResult a -> (a -> ExecutionResult b) -> ExecutionResult b # (>>) :: ExecutionResult a -> ExecutionResult b -> ExecutionResult b # return :: a -> ExecutionResult a # fail :: String -> ExecutionResult a # | |
| Functor ExecutionResult Source # | |
Defined in Data.JSONPath.ExecutionResult Methods fmap :: (a -> b) -> ExecutionResult a -> ExecutionResult b # (<$) :: a -> ExecutionResult b -> ExecutionResult a # | |
| Applicative ExecutionResult Source # | |
Defined in Data.JSONPath.ExecutionResult Methods pure :: a -> ExecutionResult a # (<*>) :: ExecutionResult (a -> b) -> ExecutionResult a -> ExecutionResult b # liftA2 :: (a -> b -> c) -> ExecutionResult a -> ExecutionResult b -> ExecutionResult c # (*>) :: ExecutionResult a -> ExecutionResult b -> ExecutionResult b # (<*) :: ExecutionResult a -> ExecutionResult b -> ExecutionResult a # | |
concatResults :: [ExecutionResult a] -> ExecutionResult a Source #
appendResults :: ExecutionResult a -> ExecutionResult a -> ExecutionResult a Source #
maybeToResult :: String -> Maybe a -> ExecutionResult a Source #
resultToEither :: ExecutionResult a -> Either String [a] Source #
excludeErrors :: [ExecutionResult a] -> [a] Source #