Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
A type for result of parsing.
Synopsis
- data SourceSnippet
- = RawSnippet Text
- | ParsedSnippet ParseResult
- data ParseResult = ParseResult {
- prParsedSource :: HsModule GhcPs
- prSourceType :: SourceType
- prStackHeader :: Maybe LComment
- prPragmas :: [([LComment], Pragma)]
- prCommentStream :: CommentStream
- prExtensions :: EnumSet Extension
- prModuleFixityMap :: ModuleFixityMap
- prIndent :: Int
Documentation
data SourceSnippet Source #
Either a ParseResult
, or a raw snippet.
data ParseResult Source #
A collection of data that represents a parsed module in Ormolu.
ParseResult | |
|