Safe Haskell | None |
---|---|
Language | Haskell2010 |
Location ranges of Agda code files.
Synopsis
- type Range = Range' SrcFile
- data Range' a
- = NoRange
- | Range !a (Seq IntervalWithoutFile)
- data RangeType where
- RangeData :: RangeType
- RangeDefinition :: RangeType
- RangeImport :: RangeType
- RangeImportItem :: RangeType
- RangeModule :: RangeType
- RangeModuleItem :: RangeType
- RangeOpen :: RangeType
- RangeOpenItem :: RangeType
- RangePatternSynonym :: RangeType
- RangePostulate :: RangeType
- RangeRecord :: RangeType
- RangeRecordConstructor :: RangeType
- RangeVariable :: RangeType
- data RangeInfo where
- RangeNamed :: !RangeType -> !QName -> RangeInfo
- RangeMutual :: RangeInfo
- getRange :: HasRange t => t -> Range
- rangePath :: Range -> Maybe FilePath
- rangeContains :: Range -> Range -> Bool
Definitions
A range is a file name, plus a sequence of intervals, assumed to point to the given file. The intervals should be consecutive and separated.
Note the invariant which ranges have to satisfy: rangeInvariant
.
Instances
Functor Range' | |
Foldable Range' | |
Defined in Agda.Syntax.Position fold :: Monoid m => Range' m -> m # foldMap :: Monoid m => (a -> m) -> Range' a -> m # foldMap' :: Monoid m => (a -> m) -> Range' a -> m # foldr :: (a -> b -> b) -> b -> Range' a -> b # foldr' :: (a -> b -> b) -> b -> Range' a -> b # foldl :: (b -> a -> b) -> b -> Range' a -> b # foldl' :: (b -> a -> b) -> b -> Range' a -> b # foldr1 :: (a -> a -> a) -> Range' a -> a # foldl1 :: (a -> a -> a) -> Range' a -> a # elem :: Eq a => a -> Range' a -> Bool # maximum :: Ord a => Range' a -> a # minimum :: Ord a => Range' a -> a # | |
Traversable Range' | |
FreshName Range | |
Defined in Agda.TypeChecking.Monad.Base freshName_ :: MonadFresh NameId m => Range -> m Name # | |
HasRange Range | |
Defined in Agda.Syntax.Position | |
SetRange Range | |
KillRange Range | |
Defined in Agda.Syntax.Position | |
LensClosure Range MetaVariable | |
Defined in Agda.TypeChecking.Monad.Base | |
LensClosure Range MetaInfo | |
Defined in Agda.TypeChecking.Monad.Base | |
Eq a => Eq (Range' a) | |
Data a => Data (Range' a) | |
Defined in Agda.Syntax.Position gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Range' a -> c (Range' a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Range' a) # toConstr :: Range' a -> Constr # dataTypeOf :: Range' a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Range' a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Range' a)) # gmapT :: (forall b. Data b => b -> b) -> Range' a -> Range' a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Range' a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Range' a -> r # gmapQ :: (forall d. Data d => d -> u) -> Range' a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Range' a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Range' a -> m (Range' a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Range' a -> m (Range' a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Range' a -> m (Range' a) # | |
Ord a => Ord (Range' a) | |
Defined in Agda.Syntax.Position | |
Show a => Show (Range' (Maybe a)) | |
Show a => Show (Range' (Maybe a)) | |
Generic (Range' a) | |
Pretty a => Pretty (Range' (Maybe a)) | |
Null (Range' a) | |
FreshName (Range, String) | |
Defined in Agda.TypeChecking.Monad.Base freshName_ :: MonadFresh NameId m => (Range, String) -> m Name # | |
type Rep (Range' a) | |
Defined in Agda.Syntax.Position type Rep (Range' a) = D1 ('MetaData "Range'" "Agda.Syntax.Position" "Agda-2.6.1.3-2WluKmOFu84Cr2Fuyr5biZ" 'False) (C1 ('MetaCons "NoRange" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Range" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq IntervalWithoutFile)))) |
The type of item found at a named range.
Information associated with an item found at a certain range.
RangeNamed :: !RangeType -> !QName -> RangeInfo | |
RangeMutual :: RangeInfo |