Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- getFixityOverridesForSourceFile :: MonadIO m => CabalInfo -> m FixityMap
- parseFixityDeclarationStr :: String -> Either String [(OpName, FixityInfo)]
Documentation
getFixityOverridesForSourceFile Source #
Attempt to locate and parse an .ormolu
file. If it does not exist,
empty fixity map is returned. This function maintains a cache of fixity
overrides where cabal file paths act as keys.
parseFixityDeclarationStr Source #
:: String | Input to parse |
-> Either String [(OpName, FixityInfo)] | Parse result |
A wrapper around parseFixityDeclaration
for parsing individual fixity
definitions.