ghcide-2.4.0.0: The core of an IDE

Safe Haskell | Safe-Inferred
Language | Haskell2010

Development.IDE.GHC.Compat.Parser

Contents

- API Annotations

Description

Parser compatibility module.

Synopsis

- initParserOpts :: DynFlags -> ParserOpts
- initParserState :: ParserOpts -> StringBuffer -> RealSrcLoc -> PState
- type ApiAnns = ()
- data PsSpan = PsSpan {
  - psRealSpan :: !RealSrcSpan
  - psBufSpan :: !BufSpan
  }
- pattern HsParsedModule :: Located (HsModule GhcPs) -> [FilePath] -> ApiAnns -> HsParsedModule
- data HsParsedModule
- hpm_module :: HsParsedModule -> Located (HsModule GhcPs)
- hpm_src_files :: HsParsedModule -> [FilePath]
- hpm_annotations :: HsParsedModule -> ApiAnns
- pattern ParsedModule :: ModSummary -> ParsedSource -> [FilePath] -> ApiAnns -> ParsedModule
- pm_parsed_source :: ParsedModule -> ParsedSource
- data ParsedModule
- pm_mod_summary :: ParsedModule -> ModSummary
- pm_extra_src_files :: ParsedModule -> [FilePath]
- pm_annotations :: ParsedModule -> ApiAnns
- mkApiAnns :: PState -> ApiAnns
- data AnnKeywordId
  - = AnnAnyclass
  - | AnnAs
  - | AnnBang
  - | AnnBackquote
  - | AnnBy
  - | AnnCase
  - | AnnCases
  - | AnnClass
  - | AnnClose
  - | AnnCloseB
  - | AnnCloseBU
  - | AnnCloseC
  - | AnnCloseQ
  - | AnnCloseQU
  - | AnnCloseP
  - | AnnClosePH
  - | AnnCloseS
  - | AnnColon
  - | AnnComma
  - | AnnCommaTuple
  - | AnnDarrow
  - | AnnDarrowU
  - | AnnData
  - | AnnDcolon
  - | AnnDcolonU
  - | AnnDefault
  - | AnnDeriving
  - | AnnDo
  - | AnnDot
  - | AnnDotdot
  - | AnnElse
  - | AnnEqual
  - | AnnExport
  - | AnnFamily
  - | AnnForall
  - | AnnForallU
  - | AnnForeign
  - | AnnFunId
  - | AnnGroup
  - | AnnHeader
  - | AnnHiding
  - | AnnIf
  - | AnnImport
  - | AnnIn
  - | AnnInfix
  - | AnnInstance
  - | AnnLam
  - | AnnLarrow
  - | AnnLarrowU
  - | AnnLet
  - | AnnLollyU
  - | AnnMdo
  - | AnnMinus
  - | AnnModule
  - | AnnNewtype
  - | AnnName
  - | AnnOf
  - | AnnOpen
  - | AnnOpenB
  - | AnnOpenBU
  - | AnnOpenC
  - | AnnOpenE
  - | AnnOpenEQ
  - | AnnOpenEQU
  - | AnnOpenP
  - | AnnOpenS
  - | AnnOpenPH
  - | AnnDollar
  - | AnnDollarDollar
  - | AnnPackageName
  - | AnnPattern
  - | AnnPercent
  - | AnnPercentOne
  - | AnnProc
  - | AnnQualified
  - | AnnRarrow
  - | AnnRarrowU
  - | AnnRec
  - | AnnRole
  - | AnnSafe
  - | AnnSemi
  - | AnnSimpleQuote
  - | AnnSignature
  - | AnnStatic
  - | AnnStock
  - | AnnThen
  - | AnnThTyQuote
  - | AnnTilde
  - | AnnType
  - | AnnUnit
  - | AnnUsing
  - | AnnVal
  - | AnnValStr
  - | AnnVbar
  - | AnnVia
  - | AnnWhere
  - | Annlarrowtail
  - | AnnlarrowtailU
  - | Annrarrowtail
  - | AnnrarrowtailU
  - | AnnLarrowtail
  - | AnnLarrowtailU
  - | AnnRarrowtail
  - | AnnRarrowtailU
- pattern EpaLineComment :: String -> EpaCommentTok
- pattern EpaBlockComment :: String -> EpaCommentTok

# Documentation

initParserOpts :: DynFlags -> ParserOpts #

initParserState :: ParserOpts -> StringBuffer -> RealSrcLoc -> PState #

type ApiAnns = () #

data PsSpan #

Constructors

PsSpan |
Fields psRealSpan :: !RealSrcSpan psBufSpan :: !BufSpan

#### Instances

Instances details

Data PsSpan |
Instance details Defined in GHC.Types.SrcLoc Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PsSpan -> c PsSpan gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PsSpan toConstr :: PsSpan -> Constr dataTypeOf :: PsSpan -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PsSpan) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PsSpan) gmapT :: (forall b. Data b => b -> b) -> PsSpan -> PsSpan gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PsSpan -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PsSpan -> r gmapQ :: (forall d. Data d => d -> u) -> PsSpan -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> PsSpan -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> PsSpan -> m PsSpan gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PsSpan -> m PsSpan gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PsSpan -> m PsSpan
Show PsSpan |
Instance details Defined in GHC.Types.SrcLoc Methods showsPrec :: Int -> PsSpan -> ShowS # show :: PsSpan -> String # showList :: [PsSpan] -> ShowS #
Eq PsSpan |
Instance details Defined in GHC.Types.SrcLoc Methods (==) :: PsSpan -> PsSpan -> Bool # (/=) :: PsSpan -> PsSpan -> Bool #
Ord PsSpan |
Instance details Defined in GHC.Types.SrcLoc Methods compare :: PsSpan -> PsSpan -> Ordering (<) :: PsSpan -> PsSpan -> Bool (<=) :: PsSpan -> PsSpan -> Bool (>) :: PsSpan -> PsSpan -> Bool (>=) :: PsSpan -> PsSpan -> Bool max :: PsSpan -> PsSpan -> PsSpan min :: PsSpan -> PsSpan -> PsSpan

pattern HsParsedModule :: Located (HsModule GhcPs) -> [FilePath] -> ApiAnns -> HsParsedModule #

data HsParsedModule #

hpm_module :: HsParsedModule -> Located (HsModule GhcPs) #

hpm_src_files :: HsParsedModule -> [FilePath] #

hpm_annotations :: HsParsedModule -> ApiAnns #

pattern ParsedModule :: ModSummary -> ParsedSource -> [FilePath] -> ApiAnns -> ParsedModule #

pm_parsed_source :: ParsedModule -> ParsedSource #

data ParsedModule #

#### Instances

Instances details

Show ParsedModule # |
Instance details Defined in Development.IDE.GHC.Orphans Methods showsPrec :: Int -> ParsedModule -> ShowS # show :: ParsedModule -> String # showList :: [ParsedModule] -> ShowS #
NFData ParsedModule # |
Instance details Defined in Development.IDE.GHC.Orphans Methods rnf :: ParsedModule -> () #
ParsedMod ParsedModule |
Instance details Defined in GHC Methods modSummary :: ParsedModule -> ModSummary parsedSource :: ParsedModule -> ParsedSource

pm_mod_summary :: ParsedModule -> ModSummary #

pm_extra_src_files :: ParsedModule -> [FilePath] #

pm_annotations :: ParsedModule -> ApiAnns #

mkApiAnns :: PState -> ApiAnns #

# API Annotations

data AnnKeywordId #

Constructors

AnnAnyclass |
AnnAs |
AnnBang |
AnnBackquote |
AnnBy |
AnnCase |
AnnCases |
AnnClass |
AnnClose |
AnnCloseB |
AnnCloseBU |
AnnCloseC |
AnnCloseQ |
AnnCloseQU |
AnnCloseP |
AnnClosePH |
AnnCloseS |
AnnColon |
AnnComma |
AnnCommaTuple |
AnnDarrow |
AnnDarrowU |
AnnData |
AnnDcolon |
AnnDcolonU |
AnnDefault |
AnnDeriving |
AnnDo |
AnnDot |
AnnDotdot |
AnnElse |
AnnEqual |
AnnExport |
AnnFamily |
AnnForall |
AnnForallU |
AnnForeign |
AnnFunId |
AnnGroup |
AnnHeader |
AnnHiding |
AnnIf |
AnnImport |
AnnIn |
AnnInfix |
AnnInstance |
AnnLam |
AnnLarrow |
AnnLarrowU |
AnnLet |
AnnLollyU |
AnnMdo |
AnnMinus |
AnnModule |
AnnNewtype |
AnnName |
AnnOf |
AnnOpen |
AnnOpenB |
AnnOpenBU |
AnnOpenC |
AnnOpenE |
AnnOpenEQ |
AnnOpenEQU |
AnnOpenP |
AnnOpenS |
AnnOpenPH |
AnnDollar |
AnnDollarDollar |
AnnPackageName |
AnnPattern |
AnnPercent |
AnnPercentOne |
AnnProc |
AnnQualified |
AnnRarrow |
AnnRarrowU |
AnnRec |
AnnRole |
AnnSafe |
AnnSemi |
AnnSimpleQuote |
AnnSignature |
AnnStatic |
AnnStock |
AnnThen |
AnnThTyQuote |
AnnTilde |
AnnType |
AnnUnit |
AnnUsing |
AnnVal |
AnnValStr |
AnnVbar |
AnnVia |
AnnWhere |
Annlarrowtail |
AnnlarrowtailU |
Annrarrowtail |
AnnrarrowtailU |
AnnLarrowtail |
AnnLarrowtailU |
AnnRarrowtail |
AnnRarrowtailU |

#### Instances

Instances details

Data AnnKeywordId |
Instance details Defined in GHC.Parser.Annotation Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AnnKeywordId -> c AnnKeywordId gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AnnKeywordId toConstr :: AnnKeywordId -> Constr dataTypeOf :: AnnKeywordId -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AnnKeywordId) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AnnKeywordId) gmapT :: (forall b. Data b => b -> b) -> AnnKeywordId -> AnnKeywordId gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AnnKeywordId -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AnnKeywordId -> r gmapQ :: (forall d. Data d => d -> u) -> AnnKeywordId -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> AnnKeywordId -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> AnnKeywordId -> m AnnKeywordId gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AnnKeywordId -> m AnnKeywordId gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AnnKeywordId -> m AnnKeywordId
Show AnnKeywordId |
Instance details Defined in GHC.Parser.Annotation Methods showsPrec :: Int -> AnnKeywordId -> ShowS # show :: AnnKeywordId -> String # showList :: [AnnKeywordId] -> ShowS #
Outputable AnnKeywordId |
Instance details Defined in GHC.Parser.Annotation Methods ppr :: AnnKeywordId -> SDoc #
Eq AnnKeywordId |
Instance details Defined in GHC.Parser.Annotation Methods (==) :: AnnKeywordId -> AnnKeywordId -> Bool # (/=) :: AnnKeywordId -> AnnKeywordId -> Bool #
Ord AnnKeywordId |
Instance details Defined in GHC.Parser.Annotation Methods compare :: AnnKeywordId -> AnnKeywordId -> Ordering (<) :: AnnKeywordId -> AnnKeywordId -> Bool (<=) :: AnnKeywordId -> AnnKeywordId -> Bool (>) :: AnnKeywordId -> AnnKeywordId -> Bool (>=) :: AnnKeywordId -> AnnKeywordId -> Bool max :: AnnKeywordId -> AnnKeywordId -> AnnKeywordId min :: AnnKeywordId -> AnnKeywordId -> AnnKeywordId

pattern EpaLineComment :: String -> EpaCommentTok #

pattern EpaBlockComment :: String -> EpaCommentTok #