| Copyright | (c) 2024-2025 Taimoor Zaeem |
|---|---|
| License | MIT |
| Maintainer | Taimoor Zaeem <mtaimoorzaeem@gmail.com> |
| Stability | Experimental |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Aeson.JSONPath.Types
Description
This module contains all the data structures related to JSONPath
Documentation
Constructors
| Query | |
Fields
| |
data QueryState Source #
Constructors
| QueryState | |
Fields
| |
Constructors
| Bracketed [Selector a] | |
| Dotted Text | |
| WildcardSegment |
data QuerySegment a Source #
Constructors
| QuerySegment | |
Fields
| |
Instances
| Lift a => Lift (QuerySegment a :: Type) Source # | |
Defined in Data.Aeson.JSONPath.Types.Segment Methods lift :: Quote m => QuerySegment a -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => QuerySegment a -> Code m (QuerySegment a) Source # | |
| Show a => Show (QuerySegment a) Source # | |
Defined in Data.Aeson.JSONPath.Types.Segment | |
| Eq a => Eq (QuerySegment a) Source # | |
Defined in Data.Aeson.JSONPath.Types.Segment Methods (==) :: QuerySegment a -> QuerySegment a -> Bool Source # (/=) :: QuerySegment a -> QuerySegment a -> Bool Source # | |
data SegmentType Source #
Constructors
| Child | |
| Descendant |
Instances
| Show SegmentType Source # | |
Defined in Data.Aeson.JSONPath.Types.Segment | |
| Eq SegmentType Source # | |
Defined in Data.Aeson.JSONPath.Types.Segment Methods (==) :: SegmentType -> SegmentType -> Bool Source # (/=) :: SegmentType -> SegmentType -> Bool Source # | |
| Lift SegmentType Source # | |
Defined in Data.Aeson.JSONPath.Types.Segment Methods lift :: Quote m => SegmentType -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SegmentType -> Code m SegmentType Source # | |
Constructors
| Name Text | |
| Index Int | |
| ArraySlice (Maybe Int, Maybe Int, Int) | |
| Filter (LogicalOrExpr a) | |
| WildcardSelector |
Constructors
| Paren (LogicalOrExpr a) | |
| NotParen (LogicalOrExpr a) | |
| Test (TestExpr a) | |
| NotTest (TestExpr a) | |
| Comparison ComparisonExpr |
newtype LogicalOrExpr a Source #
Constructors
| LogicalOr [LogicalAndExpr a] |
Instances
| Lift a => Lift (LogicalOrExpr a :: Type) Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => LogicalOrExpr a -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => LogicalOrExpr a -> Code m (LogicalOrExpr a) Source # | |
| Show a => Show (LogicalOrExpr a) Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq a => Eq (LogicalOrExpr a) Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: LogicalOrExpr a -> LogicalOrExpr a -> Bool Source # (/=) :: LogicalOrExpr a -> LogicalOrExpr a -> Bool Source # | |
newtype LogicalAndExpr a Source #
Constructors
| LogicalAnd [BasicExpr a] |
Instances
| Lift a => Lift (LogicalAndExpr a :: Type) Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => LogicalAndExpr a -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => LogicalAndExpr a -> Code m (LogicalAndExpr a) Source # | |
| Show a => Show (LogicalAndExpr a) Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq a => Eq (LogicalAndExpr a) Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: LogicalAndExpr a -> LogicalAndExpr a -> Bool Source # (/=) :: LogicalAndExpr a -> LogicalAndExpr a -> Bool Source # | |
Constructors
| FilterQuery a |
data ComparisonExpr Source #
Constructors
| Comp Comparable ComparisonOp Comparable |
Instances
| Show ComparisonExpr Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq ComparisonExpr Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: ComparisonExpr -> ComparisonExpr -> Bool Source # (/=) :: ComparisonExpr -> ComparisonExpr -> Bool Source # | |
| Lift ComparisonExpr Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => ComparisonExpr -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => ComparisonExpr -> Code m ComparisonExpr Source # | |
data ComparisonOp Source #
Constructors
| Less | |
| LessOrEqual | |
| Greater | |
| GreaterOrEqual | |
| Equal | |
| NotEqual |
Instances
| Show ComparisonOp Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq ComparisonOp Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: ComparisonOp -> ComparisonOp -> Bool Source # (/=) :: ComparisonOp -> ComparisonOp -> Bool Source # | |
| Lift ComparisonOp Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => ComparisonOp -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => ComparisonOp -> Code m ComparisonOp Source # | |
data Comparable Source #
Constructors
| CompLit Literal | |
| CompSQ SingularQuery |
Instances
| Show Comparable Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq Comparable Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: Comparable -> Comparable -> Bool Source # (/=) :: Comparable -> Comparable -> Bool Source # | |
| Lift Comparable Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => Comparable -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Comparable -> Code m Comparable Source # | |
data SingularQueryType Source #
Instances
| Show SingularQueryType Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq SingularQueryType Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: SingularQueryType -> SingularQueryType -> Bool Source # (/=) :: SingularQueryType -> SingularQueryType -> Bool Source # | |
| Lift SingularQueryType Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => SingularQueryType -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SingularQueryType -> Code m SingularQueryType Source # | |
data SingularQuery Source #
Constructors
| SingularQuery | |
Instances
| Show SingularQuery Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq SingularQuery Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: SingularQuery -> SingularQuery -> Bool Source # (/=) :: SingularQuery -> SingularQuery -> Bool Source # | |
| Lift SingularQuery Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => SingularQuery -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SingularQuery -> Code m SingularQuery Source # | |
data SingularQuerySegment Source #
Constructors
| NameSQSeg Text | |
| IndexSQSeg Int |
Instances
| Show SingularQuerySegment Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter | |
| Eq SingularQuerySegment Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods (==) :: SingularQuerySegment -> SingularQuerySegment -> Bool Source # (/=) :: SingularQuerySegment -> SingularQuerySegment -> Bool Source # | |
| Lift SingularQuerySegment Source # | |
Defined in Data.Aeson.JSONPath.Types.Filter Methods lift :: Quote m => SingularQuerySegment -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SingularQuerySegment -> Code m SingularQuerySegment Source # | |