ghc-lib-parser-ex-9.12.0.0: Programming with GHC parse trees

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhclibParserEx.Fixity

Synopsis

- applyFixities :: Data a => [(String, Fixity)] -> a -> a
- fixitiesFromModule :: Located (HsModule GhcPs) -> [(String, Fixity)]
- preludeFixities :: [(String, Fixity)]
- baseFixities :: [(String, Fixity)]
- infixr_ :: Int -> [String] -> [(String, Fixity)]
- infixl_ :: Int -> [String] -> [(String, Fixity)]
- infix_ :: Int -> [String] -> [(String, Fixity)]
- fixity :: FixityDirection -> Int -> [String] -> [(String, Fixity)]

# Documentation

applyFixities :: Data a => [(String, Fixity)] -> a -> a Source #

Rearrange a parse tree to account for fixities.

fixitiesFromModule :: Located (HsModule GhcPs) -> [(String, Fixity)] Source #

preludeFixities :: [(String, Fixity)] Source #

baseFixities :: [(String, Fixity)] Source #

infixr_ :: Int -> [String] -> [(String, Fixity)] Source #

infixl_ :: Int -> [String] -> [(String, Fixity)] Source #

infix_ :: Int -> [String] -> [(String, Fixity)] Source #

fixity :: FixityDirection -> Int -> [String] -> [(String, Fixity)] Source #