preprocessor-tools-1.0.1: A framework for extending Haskell's syntax via quick-and-dirty preprocessors

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Preprocessor.Ast

Documentation

data Ast #

Constructors

Single 

Fields

Block 

Fields

Empty 

Instances

Eq Ast # 

Methods

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

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

Data Ast # 

Methods

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

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

toConstr :: Ast -> Constr #

dataTypeOf :: Ast -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Ast # 

Methods

showsPrec :: Int -> Ast -> ShowS #

show :: Ast -> String #

showList :: [Ast] -> ShowS #

Locatable Ast # 

Methods

getLoc :: Ast -> Loc #

setLoc :: Ast -> Loc -> Ast #

flatten :: Ast -> [Token] -> [Token] #

flattenList :: [Ast] -> [Token] -> [Token] #

format :: Data a => a -> [Ast] -> a #

cons :: Token -> Ast -> Ast #