| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Fortran.AST
Contents
Documentation
Instances
| Functor t => Functor (AList t) Source # | |
| Annotated (AList t) Source # | |
Defined in Language.Fortran.AST Methods getAnnotation :: AList t a -> a Source # setAnnotation :: a -> AList t a -> AList t a Source # modifyAnnotation :: (a -> a) -> AList t a -> AList t a Source # | |
| (Eq a, Eq (t a)) => Eq (AList t a) Source # | |
| (Typeable t, Data a, Data (t a)) => Data (AList t a) Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AList t a -> c (AList t a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (AList t a) # toConstr :: AList t a -> Constr # dataTypeOf :: AList t a -> DataType # dataCast1 :: Typeable t0 => (forall d. Data d => c (t0 d)) -> Maybe (c (AList t a)) # dataCast2 :: Typeable t0 => (forall d e. (Data d, Data e) => c (t0 d e)) -> Maybe (c (AList t a)) # gmapT :: (forall b. Data b => b -> b) -> AList t a -> AList t a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AList t a -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AList t a -> r # gmapQ :: (forall d. Data d => d -> u) -> AList t a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AList t a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AList t a -> m (AList t a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AList t a -> m (AList t a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AList t a -> m (AList t a) # | |
| (Show a, Show (t a)) => Show (AList t a) Source # | |
| Generic (AList t a) Source # | |
| (Out a, Out (t a)) => Out (AList t a) Source # | |
| Spanned (AList t a) Source # | |
| Pretty (e a) => Pretty (AList e a) Source # | |
Defined in Language.Fortran.PrettyPrint | |
| FirstParameter (AList t a) a Source # | |
Defined in Language.Fortran.AST Methods getFirstParameter :: AList t a -> a Source # setFirstParameter :: a -> AList t a -> AList t a Source # | |
| SecondParameter (AList t a) SrcSpan Source # | |
Defined in Language.Fortran.AST | |
| type Rep (AList t a) Source # | |
Defined in Language.Fortran.AST type Rep (AList t a) = D1 (MetaData "AList" "Language.Fortran.AST" "fortran-src-0.3.0-HYtHVMLWYXtCtJd9jdxIfb" False) (C1 (MetaCons "AList" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SrcSpan) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [t a])))) | |
fromReverseList :: Spanned (t ()) => [t ()] -> AList t () Source #
Constructors
| TypeInteger | |
| TypeReal | |
| TypeDoublePrecision | |
| TypeComplex | |
| TypeDoubleComplex | |
| TypeLogical | |
| TypeCharacter (Maybe CharacterLen) (Maybe String) | len and kind, if specified |
| TypeCustom String | |
| ClassStar | |
| ClassCustom String | |
| TypeByte |
Instances
data CharacterLen Source #
Constructors
| CharLenStar | specified with a * |
| CharLenColon | specified with a : (Fortran2003) FIXME, possibly, with a more robust const-exp: |
| CharLenExp | specified with a non-trivial expression |
| CharLenInt Int | specified with a constant integer |
Instances
charLenSelector :: Maybe (Selector a) -> (Maybe CharacterLen, Maybe String) Source #
Instances
Constructors
| Selector a SrcSpan (Maybe (Expression a)) (Maybe (Expression a)) |
Instances
Constructors
| MetaInfo | |
Fields | |
Instances
| Eq MetaInfo Source # | |
| Data MetaInfo Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetaInfo -> c MetaInfo # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetaInfo # toConstr :: MetaInfo -> Constr # dataTypeOf :: MetaInfo -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MetaInfo) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetaInfo) # gmapT :: (forall b. Data b => b -> b) -> MetaInfo -> MetaInfo # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetaInfo -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetaInfo -> r # gmapQ :: (forall d. Data d => d -> u) -> MetaInfo -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> MetaInfo -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetaInfo -> m MetaInfo # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaInfo -> m MetaInfo # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaInfo -> m MetaInfo # | |
| Show MetaInfo Source # | |
| Generic MetaInfo Source # | |
| Out MetaInfo Source # | |
| type Rep MetaInfo Source # | |
Defined in Language.Fortran.AST type Rep MetaInfo = D1 (MetaData "MetaInfo" "Language.Fortran.AST" "fortran-src-0.3.0-HYtHVMLWYXtCtJd9jdxIfb" False) (C1 (MetaCons "MetaInfo" PrefixI True) (S1 (MetaSel (Just "miVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FortranVersion) :*: S1 (MetaSel (Just "miFilename") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String))) | |
data ProgramFile a Source #
Constructors
| ProgramFile MetaInfo [ProgramUnit a] |
Instances
pfSetFilename :: String -> ProgramFile a -> ProgramFile a Source #
pfGetFilename :: ProgramFile a -> String Source #
data ProgramUnit a Source #
Constructors
| PUMain a SrcSpan (Maybe Name) [Block a] (Maybe [ProgramUnit a]) | |
| PUModule a SrcSpan Name [Block a] (Maybe [ProgramUnit a]) | |
| PUSubroutine a SrcSpan (PrefixSuffix a) Name (Maybe (AList Expression a)) [Block a] (Maybe [ProgramUnit a]) | |
| PUFunction a SrcSpan (Maybe (TypeSpec a)) (PrefixSuffix a) Name (Maybe (AList Expression a)) (Maybe (Expression a)) [Block a] (Maybe [ProgramUnit a]) | |
| PUBlockData a SrcSpan (Maybe Name) [Block a] | |
| PUComment a SrcSpan (Comment a) |
Instances
type PrefixSuffix a = (Prefixes a, Suffixes a) Source #
emptyPrefixes :: Prefixes a Source #
emptySuffixes :: Suffixes a Source #
Constructors
| PfxRecursive a SrcSpan | |
| PfxElemental a SrcSpan | |
| PfxPure a SrcSpan |
Instances
validPrefixSuffix :: PrefixSuffix a -> Bool Source #
Constructors
| SfxBind a SrcSpan (Maybe (Expression a)) |
Instances
| Functor Suffix Source # | |
| Eq a => Eq (Suffix a) Source # | |
| Data a => Data (Suffix a) Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Suffix a -> c (Suffix a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Suffix a) # toConstr :: Suffix a -> Constr # dataTypeOf :: Suffix a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Suffix a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Suffix a)) # gmapT :: (forall b. Data b => b -> b) -> Suffix a -> Suffix a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Suffix a -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Suffix a -> r # gmapQ :: (forall d. Data d => d -> u) -> Suffix a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Suffix a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Suffix a -> m (Suffix a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Suffix a -> m (Suffix a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Suffix a -> m (Suffix a) # | |
| Show a => Show (Suffix a) Source # | |
| Generic (Suffix a) Source # | |
| Out a => Out (Suffix a) Source # | |
| Spanned (Suffix a) Source # | |
| Pretty (Suffix a) Source # | |
Defined in Language.Fortran.PrettyPrint | |
| FirstParameter (Suffix a) a Source # | |
Defined in Language.Fortran.AST Methods getFirstParameter :: Suffix a -> a Source # setFirstParameter :: a -> Suffix a -> Suffix a Source # | |
| SecondParameter (Suffix a) SrcSpan Source # | |
Defined in Language.Fortran.AST | |
| type Rep (Suffix a) Source # | |
Defined in Language.Fortran.AST type Rep (Suffix a) = D1 (MetaData "Suffix" "Language.Fortran.AST" "fortran-src-0.3.0-HYtHVMLWYXtCtJd9jdxIfb" False) (C1 (MetaCons "SfxBind" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SrcSpan) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Expression a)))))) | |
programUnitBody :: ProgramUnit a -> [Block a] Source #
updateProgramUnitBody :: ProgramUnit a -> [Block a] -> ProgramUnit a Source #
programUnitSubprograms :: ProgramUnit a -> Maybe [ProgramUnit a] Source #
Instances
| Functor Comment Source # | |
| Eq (Comment a) Source # | |
| Data a => Data (Comment a) Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Comment a -> c (Comment a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Comment a) # toConstr :: Comment a -> Constr # dataTypeOf :: Comment a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Comment a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Comment a)) # gmapT :: (forall b. Data b => b -> b) -> Comment a -> Comment a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Comment a -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Comment a -> r # gmapQ :: (forall d. Data d => d -> u) -> Comment a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Comment a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Comment a -> m (Comment a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Comment a -> m (Comment a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Comment a -> m (Comment a) # | |
| Show (Comment a) Source # | |
| Generic (Comment a) Source # | |
| Out a => Out (Comment a) Source # | |
| type Rep (Comment a) Source # | |
Defined in Language.Fortran.AST | |
Constructors
| BlStatement a SrcSpan (Maybe (Expression a)) (Statement a) | |
| BlForall a SrcSpan (Maybe (Expression a)) (Maybe String) (ForallHeader a) [Block a] (Maybe (Expression a)) | |
| BlIf a SrcSpan (Maybe (Expression a)) (Maybe String) [Maybe (Expression a)] [[Block a]] (Maybe (Expression a)) | |
| BlCase a SrcSpan (Maybe (Expression a)) (Maybe String) (Expression a) [Maybe (AList Index a)] [[Block a]] (Maybe (Expression a)) | |
| BlDo a SrcSpan (Maybe (Expression a)) (Maybe String) (Maybe (Expression a)) (Maybe (DoSpecification a)) [Block a] (Maybe (Expression a)) | |
| BlDoWhile a SrcSpan (Maybe (Expression a)) (Maybe String) (Maybe (Expression a)) (Expression a) [Block a] (Maybe (Expression a)) | |
| BlInterface a SrcSpan (Maybe (Expression a)) Bool [ProgramUnit a] [Block a] | |
| BlComment a SrcSpan (Comment a) |
Instances
Constructors
Instances
Constructors
| ProcDecl a SrcSpan (Expression a) (Maybe (Expression a)) |
Instances
data ProcInterface a Source #
Constructors
| ProcInterfaceName a SrcSpan (Expression a) | |
| ProcInterfaceType a SrcSpan (TypeSpec a) |
Instances
data ForallHeader a Source #
Constructors
| ForallHeader [(Name, Expression a, Expression a, Maybe (Expression a))] (Maybe (Expression a)) |
Instances
Constructors
| Exclusive | |
| Permissive |
Instances
| Eq Only Source # | |
| Data Only Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Only -> c Only # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Only # dataTypeOf :: Only -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Only) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Only) # gmapT :: (forall b. Data b => b -> b) -> Only -> Only # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Only -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Only -> r # gmapQ :: (forall d. Data d => d -> u) -> Only -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Only -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Only -> m Only # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Only -> m Only # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Only -> m Only # | |
| Show Only Source # | |
| Generic Only Source # | |
| Out Only Source # | |
| Pretty Only Source # | |
Defined in Language.Fortran.PrettyPrint | |
| type Rep Only Source # | |
data ModuleNature Source #
Constructors
| ModIntrinsic | |
| ModNonIntrinsic |
Instances
| Eq ModuleNature Source # | |
Defined in Language.Fortran.AST | |
| Data ModuleNature Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModuleNature -> c ModuleNature # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModuleNature # toConstr :: ModuleNature -> Constr # dataTypeOf :: ModuleNature -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ModuleNature) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModuleNature) # gmapT :: (forall b. Data b => b -> b) -> ModuleNature -> ModuleNature # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModuleNature -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModuleNature -> r # gmapQ :: (forall d. Data d => d -> u) -> ModuleNature -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ModuleNature -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModuleNature -> m ModuleNature # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModuleNature -> m ModuleNature # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModuleNature -> m ModuleNature # | |
| Show ModuleNature Source # | |
Defined in Language.Fortran.AST Methods showsPrec :: Int -> ModuleNature -> ShowS # show :: ModuleNature -> String # showList :: [ModuleNature] -> ShowS # | |
| Generic ModuleNature Source # | |
Defined in Language.Fortran.AST Associated Types type Rep ModuleNature :: Type -> Type # | |
| Out ModuleNature Source # | |
Defined in Language.Fortran.AST Methods docPrec :: Int -> ModuleNature -> Doc # doc :: ModuleNature -> Doc # docList :: [ModuleNature] -> Doc # | |
| type Rep ModuleNature Source # | |
Constructors
| UseRename a SrcSpan (Expression a) (Expression a) | |
| UseID a SrcSpan (Expression a) |
Instances
Constructors
| Argument a SrcSpan (Maybe String) (Expression a) |
Instances
Constructors
Instances
Instances
| Eq Intent Source # | |
| Data Intent Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Intent -> c Intent # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Intent # toConstr :: Intent -> Constr # dataTypeOf :: Intent -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Intent) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Intent) # gmapT :: (forall b. Data b => b -> b) -> Intent -> Intent # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Intent -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Intent -> r # gmapQ :: (forall d. Data d => d -> u) -> Intent -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Intent -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Intent -> m Intent # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Intent -> m Intent # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Intent -> m Intent # | |
| Show Intent Source # | |
| Generic Intent Source # | |
| Out Intent Source # | |
| Pretty Intent Source # | |
Defined in Language.Fortran.PrettyPrint | |
| type Rep Intent Source # | |
Defined in Language.Fortran.AST | |
data ControlPair a Source #
Constructors
| ControlPair a SrcSpan (Maybe String) (Expression a) |
Instances
Constructors
| AOStat a SrcSpan (Expression a) | |
| AOErrMsg a SrcSpan (Expression a) | |
| AOSource a SrcSpan (Expression a) |
Instances
Constructors
| ImpList a SrcSpan (TypeSpec a) (AList ImpElement a) |
Instances
data ImpElement a Source #
Instances
data CommonGroup a Source #
Constructors
| CommonGroup a SrcSpan (Maybe (Expression a)) (AList Expression a) |
Instances
Constructors
| Namelist a SrcSpan (Expression a) (AList Expression a) |
Instances
Constructors
| DataGroup a SrcSpan (AList Expression a) (AList Expression a) |
Instances
data StructureItem a Source #
Constructors
| StructFields a SrcSpan (TypeSpec a) (Maybe (AList Attribute a)) (AList Declarator a) | |
| StructUnion a SrcSpan (AList UnionMap a) | |
| StructStructure a SrcSpan (Maybe String) (AList StructureItem a) |
Instances
Constructors
| UnionMap a SrcSpan (AList StructureItem a) |
Instances
data FormatItem a Source #
Constructors
Instances
Constructors
| FSUnit a SrcSpan (Expression a) | |
| FSIOStat a SrcSpan (Expression a) | |
| FSIOMsg a SrcSpan (Expression a) | |
| FSErr a SrcSpan (Expression a) |
Instances
data DoSpecification a Source #
Constructors
| DoSpecification a SrcSpan (Statement a) (Expression a) (Maybe (Expression a)) |
Instances
data Expression a Source #
Constructors
| ExpValue a SrcSpan (Value a) | Use a value as an expression. |
| ExpBinary a SrcSpan BinaryOp (Expression a) (Expression a) | A binary operator applied to two expressions. |
| ExpUnary a SrcSpan UnaryOp (Expression a) | A unary operator applied to two expressions. |
| ExpSubscript a SrcSpan (Expression a) (AList Index a) | Array indexing |
| ExpDataRef a SrcSpan (Expression a) (Expression a) |
|
| ExpFunctionCall a SrcSpan (Expression a) (Maybe (AList Argument a)) | A function expression applied to a list of arguments. |
| ExpImpliedDo a SrcSpan (AList Expression a) (DoSpecification a) | Implied do (i.e. one-liner do loops) |
| ExpInitialisation a SrcSpan (AList Expression a) | Array initialisation |
| ExpReturnSpec a SrcSpan (Expression a) | Function return value specification |
Instances
Constructors
| IxSingle a SrcSpan (Maybe String) (Expression a) | |
| IxRange a SrcSpan (Maybe (Expression a)) (Maybe (Expression a)) (Maybe (Expression a)) |
Instances
Constructors
| ValInteger String | The string representation of an integer literal |
| ValReal String | The string representation of a real literal |
| ValComplex (Expression a) (Expression a) | The real and imaginary parts of a complex value |
| ValString String | A string literal |
| ValHollerith String | A Hollerith literal |
| ValVariable Name | The name of a variable |
| ValIntrinsic Name | The name of a built-in function |
| ValLogical String | A boolean value |
| ValOperator String | User-defined operators in interfaces |
| ValAssignment | Overloaded assignment in interfaces |
| ValType String | |
| ValStar | |
| ValColon |
Instances
data Declarator a Source #
Constructors
| DeclVariable a SrcSpan (Expression a) (Maybe (Expression a)) (Maybe (Expression a)) | |
| DeclArray a SrcSpan (Expression a) (AList DimensionDeclarator a) (Maybe (Expression a)) (Maybe (Expression a)) |
Instances
setInitialisation :: Declarator a -> Expression a -> Declarator a Source #
data DimensionDeclarator a Source #
Constructors
| DimensionDeclarator a SrcSpan (Maybe (Expression a)) (Maybe (Expression a)) |
Instances
Instances
| Eq UnaryOp Source # | |
| Data UnaryOp Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UnaryOp -> c UnaryOp # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UnaryOp # toConstr :: UnaryOp -> Constr # dataTypeOf :: UnaryOp -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UnaryOp) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UnaryOp) # gmapT :: (forall b. Data b => b -> b) -> UnaryOp -> UnaryOp # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UnaryOp -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UnaryOp -> r # gmapQ :: (forall d. Data d => d -> u) -> UnaryOp -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> UnaryOp -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UnaryOp -> m UnaryOp # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UnaryOp -> m UnaryOp # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UnaryOp -> m UnaryOp # | |
| Ord UnaryOp Source # | |
Defined in Language.Fortran.AST | |
| Show UnaryOp Source # | |
| Generic UnaryOp Source # | |
| Out UnaryOp Source # | |
| Binary UnaryOp Source # | |
| Pretty UnaryOp Source # | |
Defined in Language.Fortran.PrettyPrint | |
| type Rep UnaryOp Source # | |
Defined in Language.Fortran.AST type Rep UnaryOp = D1 (MetaData "UnaryOp" "Language.Fortran.AST" "fortran-src-0.3.0-HYtHVMLWYXtCtJd9jdxIfb" False) ((C1 (MetaCons "Plus" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Minus" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Not" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "UnCustom" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))) | |
Constructors
| Addition | |
| Subtraction | |
| Multiplication | |
| Division | |
| Exponentiation | |
| Concatenation | |
| GT | |
| GTE | |
| LT | |
| LTE | |
| EQ | |
| NE | |
| Or | |
| XOr | |
| And | |
| Equivalent | |
| NotEquivalent | |
| BinCustom String |
Instances
| Eq BinaryOp Source # | |
| Data BinaryOp Source # | |
Defined in Language.Fortran.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BinaryOp -> c BinaryOp # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BinaryOp # toConstr :: BinaryOp -> Constr # dataTypeOf :: BinaryOp -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BinaryOp) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BinaryOp) # gmapT :: (forall b. Data b => b -> b) -> BinaryOp -> BinaryOp # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BinaryOp -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BinaryOp -> r # gmapQ :: (forall d. Data d => d -> u) -> BinaryOp -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BinaryOp -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BinaryOp -> m BinaryOp # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BinaryOp -> m BinaryOp # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BinaryOp -> m BinaryOp # | |
| Ord BinaryOp Source # | |
Defined in Language.Fortran.AST | |
| Show BinaryOp Source # | |
| Generic BinaryOp Source # | |
| Out BinaryOp Source # | |
| Binary BinaryOp Source # | |
| Pretty BinaryOp Source # | |
Defined in Language.Fortran.PrettyPrint | |
| type Rep BinaryOp Source # | |
Defined in Language.Fortran.AST type Rep BinaryOp = D1 (MetaData "BinaryOp" "Language.Fortran.AST" "fortran-src-0.3.0-HYtHVMLWYXtCtJd9jdxIfb" False) ((((C1 (MetaCons "Addition" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Subtraction" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Multiplication" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Division" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Exponentiation" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Concatenation" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "GT" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "GTE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "LT" PrefixI False) (U1 :: Type -> Type))))) :+: (((C1 (MetaCons "LTE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "EQ" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "NE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Or" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "XOr" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "And" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Equivalent" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "NotEquivalent" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "BinCustom" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String))))))) | |
class Annotated f where Source #
Minimal complete definition
Nothing
Methods
getAnnotation :: f a -> a Source #
setAnnotation :: a -> f a -> f a Source #
modifyAnnotation :: (a -> a) -> f a -> f a Source #
getAnnotation :: FirstParameter (f a) a => f a -> a Source #
setAnnotation :: FirstParameter (f a) a => a -> f a -> f a Source #
Instances
class (Spanned a, Spanned b) => SpannedPair a b where Source #
Methods
getTransSpan :: a -> b -> SrcSpan Source #
Instances
| (Spanned a, Spanned b) => SpannedPair a b Source # | |
Defined in Language.Fortran.AST Methods getTransSpan :: a -> b -> SrcSpan Source # | |
| (Spanned a, Spanned b) => SpannedPair a [[b]] Source # | |
Defined in Language.Fortran.AST Methods getTransSpan :: a -> [[b]] -> SrcSpan Source # | |
| (Spanned a, Spanned b) => SpannedPair a [b] Source # | |
Defined in Language.Fortran.AST Methods getTransSpan :: a -> [b] -> SrcSpan Source # | |
class Labeled f where Source #
Methods
getLabel :: f a -> Maybe (Expression a) Source #
getLastLabel :: f a -> Maybe (Expression a) Source #
setLabel :: f a -> Expression a -> f a Source #
Instances
| Labeled Block Source # | |
Defined in Language.Fortran.AST Methods getLabel :: Block a -> Maybe (Expression a) Source # getLastLabel :: Block a -> Maybe (Expression a) Source # | |
class Conditioned f where Source #
Methods
getCondition :: f a -> Maybe (Expression a) Source #
Instances
| Conditioned Statement Source # | |
Defined in Language.Fortran.AST Methods getCondition :: Statement a -> Maybe (Expression a) Source # | |
| Conditioned Block Source # | |
Defined in Language.Fortran.AST Methods getCondition :: Block a -> Maybe (Expression a) Source # | |
data ProgramUnitName Source #
Constructors
| Named String | |
| NamelessBlockData | |
| NamelessComment | |
| NamelessMain |
Instances
Instances
| Named (ProgramUnit a) Source # | |
Defined in Language.Fortran.AST Methods getName :: ProgramUnit a -> ProgramUnitName Source # setName :: ProgramUnitName -> ProgramUnit a -> ProgramUnit a Source # | |
nonExecutableStatement :: FortranVersion -> Statement a -> Bool Source #
executableStatement :: FortranVersion -> Statement a -> Bool Source #
executableStatementBlock :: FortranVersion -> Block a -> Bool Source #
nonExecutableStatementBlock :: FortranVersion -> Block a -> Bool Source #
Orphan instances
| Out FortranVersion Source # | |
Methods docPrec :: Int -> FortranVersion -> Doc # doc :: FortranVersion -> Doc # docList :: [FortranVersion] -> Doc # | |
| Spanned a => Spanned [a] Source # | |
| (Spanned a, Spanned b) => Spanned (Either a b) Source # | |
| (Spanned a, Spanned b) => Spanned (Maybe a, b) Source # | |
| (Spanned a, Spanned b) => Spanned (a, b) Source # | |
| (Spanned a, Spanned b) => Spanned (a, Maybe b) Source # | |
| (Spanned a, Spanned b, Spanned c) => Spanned (Maybe a, b, c) Source # | |
| (Spanned a, Spanned b, Spanned c) => Spanned (Maybe a, Maybe b, Maybe c) Source # | |
| (Spanned a, Spanned b, Spanned c) => Spanned (a, b, c) Source # | |
| (Spanned a, Spanned b, Spanned c) => Spanned (a, Maybe b, Maybe c) Source # | |