Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
Semigroup Loc Source # | |
Generic Loc Source # | |
Show Loc Source # | |
NFData Loc Source # | |
Defined in Source.Loc | |
Eq Loc Source # | |
Ord Loc Source # | |
Hashable Loc Source # | |
Defined in Source.Loc hashWithSalt :: Int -> Loc -> Int | |
HasSpan Loc Source # | |
ToJSON Loc Source # | |
Defined in Source.Loc | |
type Rep Loc Source # | |
Defined in Source.Loc type Rep Loc = D1 ('MetaData "Loc" "Source.Loc" "semantic-source-0.1.0.2-inplace" 'False) (C1 ('MetaCons "Loc" 'PrefixI 'True) (S1 ('MetaSel ('Just "byteRange") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Range) :*: S1 ('MetaSel ('Just "span") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Span))) |
byteRange_ :: Lens' Loc Range Source #
A Span of position information
Instances
Semigroup Span Source # | |
Generic Span Source # | |
Show Span Source # | |
NFData Span Source # | |
Defined in Source.Span | |
Eq Span Source # | |
Ord Span Source # | |
Hashable Span Source # | |
Defined in Source.Span hashWithSalt :: Int -> Span -> Int | |
HasSpan Span Source # | |
FromJSON Span Source # | |
Defined in Source.Span parseJSON :: Value -> Parser Span parseJSONList :: Value -> Parser [Span] | |
ToJSON Span Source # | |
Defined in Source.Span | |
type Rep Span Source # | |
Defined in Source.Span type Rep Span = D1 ('MetaData "Span" "Source.Span" "semantic-source-0.1.0.2-inplace" 'False) (C1 ('MetaCons "Span" 'PrefixI 'True) (S1 ('MetaSel ('Just "start") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Pos) :*: S1 ('MetaSel ('Just "end") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Pos))) |
A 0-indexed, half-open interval of integers, defined by start & end indices.
Range !Int !Int |
Instances
Semigroup Range Source # | |
Generic Range Source # | |
Show Range Source # | |
NFData Range Source # | |
Defined in Source.Range | |
Eq Range Source # | |
Ord Range Source # | |
Hashable Range Source # | |
Defined in Source.Range hashWithSalt :: Int -> Range -> Int | |
Lower Range Source # | |
Defined in Source.Range lowerBound :: Range | |
ToJSON Range Source # | |
Defined in Source.Range | |
type Rep Range Source # | |
Defined in Source.Range type Rep Range = D1 ('MetaData "Range" "Source.Range" "semantic-source-0.1.0.2-inplace" 'False) (C1 ('MetaCons "Range" 'PrefixI 'True) (S1 ('MetaSel ('Just "start") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "end") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int))) |