haskell-src-exts-simple-1.23.1.0: A simplified view on the haskell-src-exts AST
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Haskell.Exts.Simple.Fixity

Description

This module partially reexports Language.Haskell.Exts.Fixity, adapting applyFixityies.

Synopsis

Documentation

applyFixities :: (AppFixity ast, Functor ast, MonadFail m) => [Fixity] -> ast () -> m (ast ()) Source #

data Fixity #

Operator fixities are represented by their associativity (left, right or none) and their precedence (0-9).

Constructors

Fixity (Assoc ()) Int (QName ()) 

Instances

Instances details
Data Fixity 
Instance details

Defined in Language.Haskell.Exts.Fixity

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Fixity -> c Fixity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Fixity #

toConstr :: Fixity -> Constr #

dataTypeOf :: Fixity -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Fixity) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Fixity) #

gmapT :: (forall b. Data b => b -> b) -> Fixity -> Fixity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Fixity -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Fixity -> r #

gmapQ :: (forall d. Data d => d -> u) -> Fixity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Fixity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Fixity -> m Fixity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Fixity -> m Fixity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Fixity -> m Fixity #

Show Fixity 
Instance details

Defined in Language.Haskell.Exts.Fixity

Eq Fixity 
Instance details

Defined in Language.Haskell.Exts.Fixity

Methods

(==) :: Fixity -> Fixity -> Bool #

(/=) :: Fixity -> Fixity -> Bool #

Ord Fixity 
Instance details

Defined in Language.Haskell.Exts.Fixity

class AppFixity (ast :: Type -> Type) #

All AST elements that may include expressions which in turn may need fixity tweaking will be instances of this class.

Minimal complete definition

applyFixities

Instances

Instances details
AppFixity Alt 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Annotation 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Binds 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Bracket 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity ClassDecl 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Decl 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Exp 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity FieldUpdate 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity GuardedRhs 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity IPBind 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity InstDecl 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Match 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Module 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity PXAttr 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Pat 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity PatField 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity PatternSynDirection 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity QualStmt 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity RPat 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Rhs 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Splice 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity Stmt 
Instance details

Defined in Language.Haskell.Exts.Fixity

AppFixity XAttr 
Instance details

Defined in Language.Haskell.Exts.Fixity

preludeFixities :: [Fixity] #

All fixities defined in the Prelude.

baseFixities :: [Fixity] #

All fixities defined in the base package.

Note that the +++ operator appears in both Control.Arrows and Text.ParserCombinators.ReadP. The listed precedence for +++ in this list is that of Control.Arrows.

infixr_ :: Int -> [String] -> [Fixity] #

infixl_ :: Int -> [String] -> [Fixity] #

infix_ :: Int -> [String] -> [Fixity] #