-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Infix expression re-parsing (for HsParser library) -- -- The Haskell parser does not consider the fixity of operators when -- parsing infix applications. All infix applications are thus parsed as -- if the operators were all left associative with the same precedence. -- This module contains code for re-parsing infix applications taking -- into account the fixity of operators. The important algorithm is the -- well known operator precedence parsing algorithm. See comments in the -- code for more detailed information. @package infix @version 0.1 module Language.Haskell.Infix infixer :: InfixMap -> [HsDecl] -> [HsDecl] insertTopInfixDecls :: Module -> InfixMap -> [HsDecl] -> InfixMap type InfixMap = FiniteMap HsQName Fixity plusInfixMap :: InfixMap -> InfixMap -> InfixMap data Fixity Fixity :: HsAssoc -> Int -> Fixity fixity_assoc :: Fixity -> HsAssoc fixity_prec :: Fixity -> Int showInfixMap :: InfixMap -> String infixMapToList :: InfixMap -> [(HsQName, Fixity)] emptyInfixMap :: InfixMap instance (Show op, Show arg) => Show (InfixExp op arg) instance Show Fixity instance Monad Infix