concat-examples-0.3.0.0: Some examples of compiling to categories
Copyright(c) 2015 Conal Elliott and David Banas
LicenseBSD3
Maintainerconal@conal.net
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConCat.Complex

Description

Simplified Complex type

Synopsis

Documentation

data Complex a Source #

Constructors

a :+ a infixl 1 

Instances

Instances details
Functor Complex Source # 
Instance details

Defined in ConCat.Complex

Methods

fmap :: (a -> b) -> Complex a -> Complex b Source #

(<$) :: a -> Complex b -> Complex a Source #

Arbitrary a => Arbitrary (Complex a) Source # 
Instance details

Defined in ConCat.Complex

CoArbitrary a => CoArbitrary (Complex a) Source # 
Instance details

Defined in ConCat.Complex

Methods

coarbitrary :: Complex a -> Gen b -> Gen b Source #

Data a => Data (Complex a) Source # 
Instance details

Defined in ConCat.Complex

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Complex a -> c (Complex a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Complex a) Source #

toConstr :: Complex a -> Constr Source #

dataTypeOf :: Complex a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Complex a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Complex a)) Source #

gmapT :: (forall b. Data b => b -> b) -> Complex a -> Complex a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Complex a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Complex a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Complex a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Complex a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Complex a -> m (Complex a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Complex a -> m (Complex a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Complex a -> m (Complex a) Source #

RealFloat a => Floating (Complex a) Source # 
Instance details

Defined in ConCat.Complex

RealFloat a => Num (Complex a) Source # 
Instance details

Defined in ConCat.Complex

RealFloat a => Fractional (Complex a) Source # 
Instance details

Defined in ConCat.Complex

Show a => Show (Complex a) Source # 
Instance details

Defined in ConCat.Complex

Eq a => Eq (Complex a) Source # 
Instance details

Defined in ConCat.Complex

Methods

(==) :: Complex a -> Complex a -> Bool Source #

(/=) :: Complex a -> Complex a -> Bool Source #

Ord a => Ord (Complex a) Source # 
Instance details

Defined in ConCat.Complex

cis :: RealFloat a => a -> Complex a Source #

Complex Identity Scaler Returns a point on the unit circle, such that the angle between the vector to that point and the positive x-axis is equal to the function argument, given in radians.