fortran-src-0.2.0.0: Parser and anlyses for Fortran standards 66, 77, 90.

Safe HaskellSafe
LanguageHaskell2010

Language.Fortran.Util.FirstParameter

Documentation

class FirstParameter a e | a -> e where Source #

Methods

getFirstParameter :: a -> e Source #

setFirstParameter :: e -> a -> a Source #

getFirstParameter :: (Generic a, GFirstParameter (Rep a) e) => a -> e Source #

setFirstParameter :: (Generic a, GFirstParameter (Rep a) e) => e -> a -> a Source #

Instances

FirstParameter Token SrcSpan Source # 
FirstParameter Token SrcSpan Source # 
FirstParameter (DimensionDeclarator a) a Source # 
FirstParameter (Declarator a) a Source # 
FirstParameter (Index a) a Source # 
FirstParameter (Expression a) a Source # 
FirstParameter (DoSpecification a) a Source # 
FirstParameter (FormatItem a) a Source # 
FirstParameter (DataGroup a) a Source # 
FirstParameter (Namelist a) a Source # 
FirstParameter (CommonGroup a) a Source # 
FirstParameter (ImpElement a) a Source # 
FirstParameter (ImpList a) a Source # 
FirstParameter (ControlPair a) a Source # 
FirstParameter (Attribute a) a Source # 
FirstParameter (Argument a) a Source # 
FirstParameter (Use a) a Source # 

Methods

getFirstParameter :: Use a -> a Source #

setFirstParameter :: a -> Use a -> Use a Source #

FirstParameter (Statement a) a Source # 
FirstParameter (Block a) a Source # 
FirstParameter (ProgramUnit a) a Source # 
FirstParameter (Selector a) a Source # 
FirstParameter (TypeSpec a) a Source # 
FirstParameter (AList t a) a Source # 

Methods

getFirstParameter :: AList t a -> a Source #

setFirstParameter :: a -> AList t a -> AList t a Source #

class GFirstParameter f e where Source #

Minimal complete definition

getFirstParameter', setFirstParameter'

Methods

getFirstParameter' :: f a -> e Source #

setFirstParameter' :: e -> f a -> f a Source #

Instances

GFirstParameter U1 String Source # 
GFirstParameter (K1 i a) e Source # 

Methods

getFirstParameter' :: K1 i a a -> e Source #

setFirstParameter' :: e -> K1 i a a -> K1 i a a Source #

GFirstParameter (K1 i e) e Source # 

Methods

getFirstParameter' :: K1 i e a -> e Source #

setFirstParameter' :: e -> K1 i e a -> K1 i e a Source #

(GFirstParameter a e, GFirstParameter b e) => GFirstParameter ((:+:) a b) e Source # 

Methods

getFirstParameter' :: (a :+: b) a -> e Source #

setFirstParameter' :: e -> (a :+: b) a -> (a :+: b) a Source #

(GFirstParameter a e, GFirstParameter b e) => GFirstParameter ((:*:) a b) e Source # 

Methods

getFirstParameter' :: (a :*: b) a -> e Source #

setFirstParameter' :: e -> (a :*: b) a -> (a :*: b) a Source #

GFirstParameter a e => GFirstParameter (M1 i c a) e Source # 

Methods

getFirstParameter' :: M1 i c a a -> e Source #

setFirstParameter' :: e -> M1 i c a a -> M1 i c a a Source #