fourmolu-0.10.1.0: A formatter for Haskell source code
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ormolu.Fixity.Parser

Description

Parser for fixity maps.

Synopsis

Documentation

parseFixityMap Source #

Arguments

:: FilePath

Location of the file we are parsing (only for parse errors)

-> Text

File contents to parse

-> Either (ParseErrorBundle Text Void) FixityMap

Parse result

Parse textual representation of a FixityMap.

parseFixityDeclaration Source #

Arguments

:: Text

Expression to parse

-> Either (ParseErrorBundle Text Void) [(String, FixityInfo)]

Parse result

Parse a single self-contained fixity declaration.