Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Functor t => Functor (AList t) Source # | |
Annotated (AList t) Source # | |
(Eq (t a), Eq a) => Eq (AList t a) Source # | |
(Data (t a), Data a, Typeable (* -> *) t) => Data (AList t a) Source # | |
(Show (t a), Show 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 # | |
FirstParameter (AList t a) a Source # | |
SecondParameter (AList t a) SrcSpan Source # | |
type Rep (AList t a) Source # | |
fromReverseList :: Spanned (t ()) => [t ()] -> AList t () Source #
Functor TypeSpec Source # | |
Annotated TypeSpec Source # | |
Eq a => Eq (TypeSpec a) Source # | |
Data a => Data (TypeSpec a) Source # | |
Show a => Show (TypeSpec a) Source # | |
Generic (TypeSpec a) Source # | |
Out a => Out (TypeSpec a) Source # | |
Spanned (TypeSpec a) Source # | |
Pretty (TypeSpec a) Source # | |
FirstParameter (TypeSpec a) a Source # | |
SecondParameter (TypeSpec a) SrcSpan Source # | |
type Rep (TypeSpec a) Source # | |
Selector a SrcSpan (Maybe (Expression a)) (Maybe (Expression a)) |
Functor Selector Source # | |
Annotated Selector Source # | |
Eq a => Eq (Selector a) Source # | |
Data a => Data (Selector a) Source # | |
Show a => Show (Selector a) Source # | |
Generic (Selector a) Source # | |
Out a => Out (Selector a) Source # | |
Spanned (Selector a) Source # | |
Pretty (Selector a) Source # | |
FirstParameter (Selector a) a Source # | |
SecondParameter (Selector a) SrcSpan Source # | |
type Rep (Selector a) Source # | |
data ProgramFile a Source #
Functor ProgramFile Source # | |
Eq a => Eq (ProgramFile a) Source # | |
Data a => Data (ProgramFile a) Source # | |
Show a => Show (ProgramFile a) Source # | |
Generic (ProgramFile a) Source # | |
Out a => Out (ProgramFile a) Source # | |
Spanned (ProgramFile a) Source # | |
IndentablePretty (ProgramFile a) Source # | |
type Rep (ProgramFile a) Source # | |
pfSetFilename :: String -> ProgramFile a -> ProgramFile a Source #
pfGetFilename :: ProgramFile a -> String Source #
data ProgramUnit a Source #
PUMain a SrcSpan (Maybe Name) [Block a] (Maybe [ProgramUnit a]) | |
PUModule a SrcSpan Name [Block a] (Maybe [ProgramUnit a]) | |
PUSubroutine a SrcSpan (PUFunctionOpt a) Name (Maybe (AList Expression a)) [Block a] (Maybe [ProgramUnit a]) | |
PUFunction a SrcSpan (Maybe (TypeSpec a)) (PUFunctionOpt 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) |
Functor ProgramUnit Source # | |
Annotated ProgramUnit Source # | |
Eq a => Eq (ProgramUnit a) Source # | |
Data a => Data (ProgramUnit a) Source # | |
Show a => Show (ProgramUnit a) Source # | |
Generic (ProgramUnit a) Source # | |
Out a => Out (ProgramUnit a) Source # | |
Spanned (ProgramUnit a) Source # | |
Named (ProgramUnit a) Source # | |
IndentablePretty [ProgramUnit a] Source # | |
IndentablePretty (ProgramUnit a) Source # | |
FirstParameter (ProgramUnit a) a Source # | |
SecondParameter (ProgramUnit a) SrcSpan Source # | |
type Rep (ProgramUnit a) Source # | |
type IsRecursive = Bool Source #
data PUFunctionOpt a Source #
Functor PUFunctionOpt Source # | |
Eq a => Eq (PUFunctionOpt a) Source # | |
Data a => Data (PUFunctionOpt a) Source # | |
Show a => Show (PUFunctionOpt a) Source # | |
Generic (PUFunctionOpt a) Source # | |
Out a => Out (PUFunctionOpt a) Source # | |
Spanned (PUFunctionOpt a) Source # | |
FirstParameter (PUFunctionOpt a) a Source # | |
SecondParameter (PUFunctionOpt a) SrcSpan Source # | |
type Rep (PUFunctionOpt a) Source # | |
buildPUFunctionOpt :: PUFunctionOpt () -> PUFunctionOpt () -> Either String (PUFunctionOpt ()) Source #
buildPUFunctionOpts :: [PUFunctionOpt ()] -> Either String (PUFunctionOpt ()) Source #
functionIsRecursive :: PUFunctionOpt a -> Bool Source #
programUnitBody :: ProgramUnit a -> [Block a] Source #
updateProgramUnitBody :: ProgramUnit a -> [Block a] -> ProgramUnit a Source #
programUnitSubprograms :: ProgramUnit a -> Maybe [ProgramUnit a] Source #
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)) [ProgramUnit a] [Block a] | |
BlComment a SrcSpan (Comment a) |
Functor Block Source # | |
Conditioned Block Source # | |
Labeled Block Source # | |
Annotated Block Source # | |
Eq a => Eq (Block a) Source # | |
Data a => Data (Block a) Source # | |
Show a => Show (Block a) Source # | |
Generic (Block a) Source # | |
Out a => Out (Block a) Source # | |
Spanned (Block a) Source # | |
IndentablePretty [Block a] Source # | |
IndentablePretty (Block a) Source # | |
FirstParameter (Block a) a Source # | |
SecondParameter (Block a) SrcSpan Source # | |
type Rep (Block a) Source # | |
Functor Statement Source # | |
Conditioned Statement Source # | |
Annotated Statement Source # | |
Eq a => Eq (Statement a) Source # | |
Data a => Data (Statement a) Source # | |
Show a => Show (Statement a) Source # | |
Generic (Statement a) Source # | |
Out a => Out (Statement a) Source # | |
Spanned (Statement a) Source # | |
Pretty (Statement a) Source # | |
FirstParameter (Statement a) a Source # | |
SecondParameter (Statement a) SrcSpan Source # | |
type Rep (Statement a) Source # | |
data ForallHeader a Source #
ForallHeader [(Name, Expression a, Expression a, Maybe (Expression a))] (Maybe (Expression a)) |
Functor ForallHeader Source # | |
Eq a => Eq (ForallHeader a) Source # | |
Data a => Data (ForallHeader a) Source # | |
Show a => Show (ForallHeader a) Source # | |
Generic (ForallHeader a) Source # | |
Out a => Out (ForallHeader a) Source # | |
type Rep (ForallHeader a) Source # | |
UseRename a SrcSpan (Expression a) (Expression a) | |
UseID a SrcSpan (Expression a) |
Functor Use Source # | |
Annotated Use Source # | |
Eq a => Eq (Use a) Source # | |
Data a => Data (Use a) Source # | |
Show a => Show (Use a) Source # | |
Generic (Use a) Source # | |
Out a => Out (Use a) Source # | |
Spanned (Use a) Source # | |
Pretty (Use a) Source # | |
FirstParameter (Use a) a Source # | |
SecondParameter (Use a) SrcSpan Source # | |
type Rep (Use a) Source # | |
Argument a SrcSpan (Maybe String) (Expression a) |
Functor Argument Source # | |
Annotated Argument Source # | |
Eq a => Eq (Argument a) Source # | |
Data a => Data (Argument a) Source # | |
Show a => Show (Argument a) Source # | |
Generic (Argument a) Source # | |
Out a => Out (Argument a) Source # | |
Spanned (Argument a) Source # | |
Pretty (Argument a) Source # | |
FirstParameter (Argument a) a Source # | |
SecondParameter (Argument a) SrcSpan Source # | |
type Rep (Argument a) Source # | |
Functor Attribute Source # | |
Annotated Attribute Source # | |
Eq a => Eq (Attribute a) Source # | |
Data a => Data (Attribute a) Source # | |
Show a => Show (Attribute a) Source # | |
Generic (Attribute a) Source # | |
Out a => Out (Attribute a) Source # | |
Spanned (Attribute a) Source # | |
Pretty (Attribute a) Source # | |
FirstParameter (Attribute a) a Source # | |
SecondParameter (Attribute a) SrcSpan Source # | |
type Rep (Attribute a) Source # | |
data ControlPair a Source #
ControlPair a SrcSpan (Maybe String) (Expression a) |
Functor ControlPair Source # | |
Annotated ControlPair Source # | |
Eq a => Eq (ControlPair a) Source # | |
Data a => Data (ControlPair a) Source # | |
Show a => Show (ControlPair a) Source # | |
Generic (ControlPair a) Source # | |
Out a => Out (ControlPair a) Source # | |
Spanned (ControlPair a) Source # | |
Pretty (ControlPair a) Source # | |
FirstParameter (ControlPair a) a Source # | |
SecondParameter (ControlPair a) SrcSpan Source # | |
type Rep (ControlPair a) Source # | |
ImpList a SrcSpan (TypeSpec a) (AList ImpElement a) |
Functor ImpList Source # | |
Annotated ImpList Source # | |
Eq a => Eq (ImpList a) Source # | |
Data a => Data (ImpList a) Source # | |
Show a => Show (ImpList a) Source # | |
Generic (ImpList a) Source # | |
Out a => Out (ImpList a) Source # | |
Spanned (ImpList a) Source # | |
Pretty (ImpList a) Source # | |
FirstParameter (ImpList a) a Source # | |
SecondParameter (ImpList a) SrcSpan Source # | |
type Rep (ImpList a) Source # | |
data ImpElement a Source #
Functor ImpElement Source # | |
Annotated ImpElement Source # | |
Eq a => Eq (ImpElement a) Source # | |
Data a => Data (ImpElement a) Source # | |
Show a => Show (ImpElement a) Source # | |
Generic (ImpElement a) Source # | |
Out a => Out (ImpElement a) Source # | |
Spanned (ImpElement a) Source # | |
Pretty (ImpElement a) Source # | |
FirstParameter (ImpElement a) a Source # | |
SecondParameter (ImpElement a) SrcSpan Source # | |
type Rep (ImpElement a) Source # | |
data CommonGroup a Source #
CommonGroup a SrcSpan (Maybe (Expression a)) (AList Expression a) |
Functor CommonGroup Source # | |
Annotated CommonGroup Source # | |
Eq a => Eq (CommonGroup a) Source # | |
Data a => Data (CommonGroup a) Source # | |
Show a => Show (CommonGroup a) Source # | |
Generic (CommonGroup a) Source # | |
Out a => Out (CommonGroup a) Source # | |
Spanned (CommonGroup a) Source # | |
Pretty (CommonGroup a) Source # | |
FirstParameter (CommonGroup a) a Source # | |
SecondParameter (CommonGroup a) SrcSpan Source # | |
type Rep (CommonGroup a) Source # | |
Namelist a SrcSpan (Expression a) (AList Expression a) |
Functor Namelist Source # | |
Annotated Namelist Source # | |
Eq a => Eq (Namelist a) Source # | |
Data a => Data (Namelist a) Source # | |
Show a => Show (Namelist a) Source # | |
Generic (Namelist a) Source # | |
Out a => Out (Namelist a) Source # | |
Spanned (Namelist a) Source # | |
Pretty (Namelist a) Source # | |
FirstParameter (Namelist a) a Source # | |
SecondParameter (Namelist a) SrcSpan Source # | |
type Rep (Namelist a) Source # | |
DataGroup a SrcSpan (AList Expression a) (AList Expression a) |
Functor DataGroup Source # | |
Annotated DataGroup Source # | |
Eq a => Eq (DataGroup a) Source # | |
Data a => Data (DataGroup a) Source # | |
Show a => Show (DataGroup a) Source # | |
Generic (DataGroup a) Source # | |
Out a => Out (DataGroup a) Source # | |
Spanned (DataGroup a) Source # | |
Pretty (DataGroup a) Source # | |
FirstParameter (DataGroup a) a Source # | |
SecondParameter (DataGroup a) SrcSpan Source # | |
type Rep (DataGroup a) Source # | |
data StructureItem a Source #
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) |
Functor StructureItem Source # | |
Annotated StructureItem Source # | |
Eq a => Eq (StructureItem a) Source # | |
Data a => Data (StructureItem a) Source # | |
Show a => Show (StructureItem a) Source # | |
Generic (StructureItem a) Source # | |
Out a => Out (StructureItem a) Source # | |
Spanned (StructureItem a) Source # | |
IndentablePretty (StructureItem a) Source # | |
FirstParameter (StructureItem a) a Source # | |
SecondParameter (StructureItem a) SrcSpan Source # | |
type Rep (StructureItem a) Source # | |
UnionMap a SrcSpan (AList StructureItem a) |
Functor UnionMap Source # | |
Annotated UnionMap Source # | |
Eq a => Eq (UnionMap a) Source # | |
Data a => Data (UnionMap a) Source # | |
Show a => Show (UnionMap a) Source # | |
Generic (UnionMap a) Source # | |
Out a => Out (UnionMap a) Source # | |
Spanned (UnionMap a) Source # | |
IndentablePretty (UnionMap a) Source # | |
FirstParameter (UnionMap a) a Source # | |
SecondParameter (UnionMap a) SrcSpan Source # | |
type Rep (UnionMap a) Source # | |
data FormatItem a Source #
Functor FormatItem Source # | |
Annotated FormatItem Source # | |
Eq a => Eq (FormatItem a) Source # | |
Data a => Data (FormatItem a) Source # | |
Show a => Show (FormatItem a) Source # | |
Generic (FormatItem a) Source # | |
Out a => Out (FormatItem a) Source # | |
Spanned (FormatItem a) Source # | |
Pretty (FormatItem a) Source # | |
FirstParameter (FormatItem a) a Source # | |
SecondParameter (FormatItem a) SrcSpan Source # | |
type Rep (FormatItem a) Source # | |
data DoSpecification a Source #
DoSpecification a SrcSpan (Statement a) (Expression a) (Maybe (Expression a)) |
Functor DoSpecification Source # | |
Annotated DoSpecification Source # | |
Eq a => Eq (DoSpecification a) Source # | |
Data a => Data (DoSpecification a) Source # | |
Show a => Show (DoSpecification a) Source # | |
Generic (DoSpecification a) Source # | |
Out a => Out (DoSpecification a) Source # | |
Spanned (DoSpecification a) Source # | |
Pretty (DoSpecification a) Source # | |
FirstParameter (DoSpecification a) a Source # | |
SecondParameter (DoSpecification a) SrcSpan Source # | |
type Rep (DoSpecification a) Source # | |
data Expression a Source #
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 |
Functor Expression Source # | |
Annotated Expression Source # | |
Eq a => Eq (Expression a) Source # | |
Data a => Data (Expression a) Source # | |
Show a => Show (Expression a) Source # | |
Generic (Expression a) Source # | |
Out a => Out (Expression a) Source # | |
Spanned (Expression a) Source # | |
Pretty (Expression a) Source # | |
FirstParameter (Expression a) a Source # | |
SecondParameter (Expression a) SrcSpan Source # | |
type Rep (Expression a) Source # | |
IxSingle a SrcSpan (Maybe String) (Expression a) | |
IxRange a SrcSpan (Maybe (Expression a)) (Maybe (Expression a)) (Maybe (Expression a)) |
Functor Index Source # | |
Annotated Index Source # | |
Eq a => Eq (Index a) Source # | |
Data a => Data (Index a) Source # | |
Show a => Show (Index a) Source # | |
Generic (Index a) Source # | |
Out a => Out (Index a) Source # | |
Spanned (Index a) Source # | |
Pretty (Index a) Source # | |
FirstParameter (Index a) a Source # | |
SecondParameter (Index a) SrcSpan Source # | |
type Rep (Index a) Source # | |
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 |
data Declarator a Source #
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)) |
Functor Declarator Source # | |
Annotated Declarator Source # | |
Eq a => Eq (Declarator a) Source # | |
Data a => Data (Declarator a) Source # | |
Show a => Show (Declarator a) Source # | |
Generic (Declarator a) Source # | |
Out a => Out (Declarator a) Source # | |
Spanned (Declarator a) Source # | |
Pretty (Declarator a) Source # | |
FirstParameter (Declarator a) a Source # | |
SecondParameter (Declarator a) SrcSpan Source # | |
type Rep (Declarator a) Source # | |
setInitialisation :: Declarator a -> Expression a -> Declarator a Source #
data DimensionDeclarator a Source #
DimensionDeclarator a SrcSpan (Maybe (Expression a)) (Maybe (Expression a)) |
Functor DimensionDeclarator Source # | |
Annotated DimensionDeclarator Source # | |
Eq a => Eq (DimensionDeclarator a) Source # | |
Data a => Data (DimensionDeclarator a) Source # | |
Show a => Show (DimensionDeclarator a) Source # | |
Generic (DimensionDeclarator a) Source # | |
Out a => Out (DimensionDeclarator a) Source # | |
Spanned (DimensionDeclarator a) Source # | |
Pretty (DimensionDeclarator a) Source # | |
FirstParameter (DimensionDeclarator a) a Source # | |
SecondParameter (DimensionDeclarator a) SrcSpan Source # | |
type Rep (DimensionDeclarator a) Source # | |
class Annotated f where Source #
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 #
class (Spanned a, Spanned b) => SpannedPair a b where Source #
getTransSpan :: a -> b -> SrcSpan Source #
(Spanned a, Spanned b) => SpannedPair a b Source # | |
(Spanned a, Spanned b) => SpannedPair a [[b]] Source # | |
(Spanned a, Spanned b) => SpannedPair a [b] Source # | |
class Labeled f where Source #
getLabel :: f a -> Maybe (Expression a) Source #
getLastLabel :: f a -> Maybe (Expression a) Source #
setLabel :: f a -> Expression a -> f a Source #
class Conditioned f where Source #
getCondition :: f a -> Maybe (Expression a) Source #
data ProgramUnitName Source #
getName :: a -> ProgramUnitName Source #
setName :: ProgramUnitName -> a -> a Source #
Named (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 # | |
Spanned a => Spanned [a] 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 # | |