| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ormolu.Utils.Fixity
Synopsis
- getFixityOverridesForSourceFile :: MonadIO m => CabalInfo -> m FixityMap
- parseFixityDeclarationStr :: String -> Either String [(String, FixityInfo)]
Documentation
getFixityOverridesForSourceFile Source #
Attempt to locate and parse a .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 #
Arguments
| :: String | Input to parse |
| -> Either String [(String, FixityInfo)] | Parse result |
A wrapper around parseFixityDeclaration for parsing individual fixity
definitions.