Safe Haskell | None |
---|---|
Language | Haskell2010 |
Source position information
Synopsis
- type SourceAnn = (SourceSpan, [Comment])
- data SourcePos = SourcePos {}
- displaySourcePos :: SourcePos -> Text
- displaySourcePosShort :: SourcePos -> Text
- data SourceSpan = SourceSpan {}
- displayStartEndPos :: SourceSpan -> Text
- displayStartEndPosShort :: SourceSpan -> Text
- displaySourceSpan :: FilePath -> SourceSpan -> Text
- internalModuleSourceSpan :: String -> SourceSpan
- nullSourceSpan :: SourceSpan
- nullSourceAnn :: SourceAnn
- pattern NullSourceSpan :: SourceSpan
- pattern NullSourceAnn :: SourceAnn
- nonEmptySpan :: SourceAnn -> Maybe SourceSpan
- widenSourceSpan :: SourceSpan -> SourceSpan -> SourceSpan
- widenSourceAnn :: SourceAnn -> SourceAnn -> SourceAnn
Documentation
type SourceAnn = (SourceSpan, [Comment]) Source #
Source annotation - position information and comments.
Source position information
SourcePos | |
|
Instances
Eq SourcePos Source # | |
Ord SourcePos Source # | |
Defined in Language.PureScript.AST.SourcePos | |
Show SourcePos Source # | |
Generic SourcePos Source # | |
NFData SourcePos Source # | |
Defined in Language.PureScript.AST.SourcePos | |
ToJSON SourcePos Source # | |
Defined in Language.PureScript.AST.SourcePos | |
FromJSON SourcePos Source # | |
type Rep SourcePos Source # | |
Defined in Language.PureScript.AST.SourcePos type Rep SourcePos = D1 (MetaData "SourcePos" "Language.PureScript.AST.SourcePos" "purescript-0.13.0-1whdl2565Nb1wvlLK7uK18" False) (C1 (MetaCons "SourcePos" PrefixI True) (S1 (MetaSel (Just "sourcePosLine") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "sourcePosColumn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) |
displaySourcePos :: SourcePos -> Text Source #
data SourceSpan Source #
Instances
displayStartEndPos :: SourceSpan -> Text Source #
displaySourceSpan :: FilePath -> SourceSpan -> Text Source #
pattern NullSourceSpan :: SourceSpan Source #
pattern NullSourceAnn :: SourceAnn Source #
nonEmptySpan :: SourceAnn -> Maybe SourceSpan Source #
widenSourceSpan :: SourceSpan -> SourceSpan -> SourceSpan Source #