module Language.Fortran.Repr.Type where
import Language.Fortran.Repr.Type.Scalar
import Language.Fortran.Repr.Type.Array
import GHC.Generics ( Generic )
import Data.Data ( Data )
data FType = MkFScalarType FScalarType | MkFArrayType FArrayType
deriving stock ((forall x. FType -> Rep FType x)
-> (forall x. Rep FType x -> FType) -> Generic FType
forall x. Rep FType x -> FType
forall x. FType -> Rep FType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. FType -> Rep FType x
from :: forall x. FType -> Rep FType x
$cto :: forall x. Rep FType x -> FType
to :: forall x. Rep FType x -> FType
Generic, FType -> FType -> Bool
(FType -> FType -> Bool) -> (FType -> FType -> Bool) -> Eq FType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FType -> FType -> Bool
== :: FType -> FType -> Bool
$c/= :: FType -> FType -> Bool
/= :: FType -> FType -> Bool
Eq, Int -> FType -> ShowS
[FType] -> ShowS
FType -> String
(Int -> FType -> ShowS)
-> (FType -> String) -> ([FType] -> ShowS) -> Show FType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FType -> ShowS
showsPrec :: Int -> FType -> ShowS
$cshow :: FType -> String
show :: FType -> String
$cshowList :: [FType] -> ShowS
showList :: [FType] -> ShowS
Show, Typeable FType
Typeable FType =>
(forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> FType -> c FType)
-> (forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c FType)
-> (FType -> Constr)
-> (FType -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c FType))
-> (forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FType))
-> ((forall b. Data b => b -> b) -> FType -> FType)
-> (forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r)
-> (forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r)
-> (forall u. (forall d. Data d => d -> u) -> FType -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> FType -> u)
-> (forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> FType -> m FType)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType)
-> Data FType
FType -> Constr
FType -> DataType
(forall b. Data b => b -> b) -> FType -> FType
forall a.
Typeable a =>
(forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> FType -> u
forall u. (forall d. Data d => d -> u) -> FType -> [u]
forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r
forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> FType -> m FType
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c FType
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> FType -> c FType
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c FType)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FType)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> FType -> c FType
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> FType -> c FType
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c FType
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c FType
$ctoConstr :: FType -> Constr
toConstr :: FType -> Constr
$cdataTypeOf :: FType -> DataType
dataTypeOf :: FType -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c FType)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c FType)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FType)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FType)
$cgmapT :: (forall b. Data b => b -> b) -> FType -> FType
gmapT :: (forall b. Data b => b -> b) -> FType -> FType
$cgmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r
gmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r
$cgmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r
gmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FType -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> FType -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> FType -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> FType -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> FType -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> FType -> m FType
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> FType -> m FType
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> FType -> m FType
Data)