ormolu-0.7.1.0: A formatter for Haskell source code
Safe HaskellSafe-Inferred
LanguageGHC2021

Ormolu.Parser

Description

Parser for Haskell source code.

Synopsis

Documentation

parseModule Source #

Arguments

:: MonadIO m 
=> Config RegionDeltas

Ormolu configuration

-> PackageFixityMap

Package fixity map

-> FilePath

File name (only for source location annotations)

-> Text

Input for parser

-> m ([Warn], Either (SrcSpan, String) [SourceSnippet]) 

Parse a complete module from Text.

manualExts :: [Extension] Source #

Extensions that are not enabled automatically and should be activated by user.