{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE StrictData #-}
module Data.Tuple.Strict.T10
( T10 (..),
)
where
import Control.DeepSeq (NFData, rnf)
import Data.Biapplicative
import Data.Bifoldable
import Data.Bitraversable
import Data.Hashable (Hashable, hash, hashWithSalt)
import Data.Hashable.Lifted
( Hashable1,
Hashable2,
defaultLiftHashWithSalt,
hashWithSalt1,
liftHashWithSalt,
liftHashWithSalt2,
)
import Data.Semigroup
import GHC.Generics (Generic)
data T10 a b c d e f g h i j
= T10 a b c d e f g h i j
deriving stock (T10 a b c d e f g h i j
T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> Bounded (T10 a b c d e f g h i j)
forall a. a -> a -> Bounded a
forall a b c d e f g h i j.
(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f,
Bounded g, Bounded h, Bounded i, Bounded j) =>
T10 a b c d e f g h i j
maxBound :: T10 a b c d e f g h i j
$cmaxBound :: forall a b c d e f g h i j.
(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f,
Bounded g, Bounded h, Bounded i, Bounded j) =>
T10 a b c d e f g h i j
minBound :: T10 a b c d e f g h i j
$cminBound :: forall a b c d e f g h i j.
(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f,
Bounded g, Bounded h, Bounded i, Bounded j) =>
T10 a b c d e f g h i j
Bounded, T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
(T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool)
-> (T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool)
-> Eq (T10 a b c d e f g h i j)
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
forall a b c d e f g h i j.
(Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
/= :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
$c/= :: forall a b c d e f g h i j.
(Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
== :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
$c== :: forall a b c d e f g h i j.
(Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
Eq, Eq (T10 a b c d e f g h i j)
Eq (T10 a b c d e f g h i j)
-> (T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Ordering)
-> (T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool)
-> (T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool)
-> (T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool)
-> (T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool)
-> (T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j)
-> (T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j)
-> Ord (T10 a b c d e f g h i j)
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Ordering
T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
Eq (T10 a b c d e f g h i j)
forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Ordering
forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
min :: T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
$cmin :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
max :: T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
$cmax :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
>= :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
$c>= :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
> :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
$c> :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
<= :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
$c<= :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
< :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
$c< :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Bool
compare :: T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Ordering
$ccompare :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
T10 a b c d e f g h i j -> T10 a b c d e f g h i j -> Ordering
$cp1Ord :: forall a b c d e f g h i j.
(Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i,
Ord j) =>
Eq (T10 a b c d e f g h i j)
Ord, ReadPrec [T10 a b c d e f g h i j]
ReadPrec (T10 a b c d e f g h i j)
Int -> ReadS (T10 a b c d e f g h i j)
ReadS [T10 a b c d e f g h i j]
(Int -> ReadS (T10 a b c d e f g h i j))
-> ReadS [T10 a b c d e f g h i j]
-> ReadPrec (T10 a b c d e f g h i j)
-> ReadPrec [T10 a b c d e f g h i j]
-> Read (T10 a b c d e f g h i j)
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
ReadPrec [T10 a b c d e f g h i j]
forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
ReadPrec (T10 a b c d e f g h i j)
forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
Int -> ReadS (T10 a b c d e f g h i j)
forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
ReadS [T10 a b c d e f g h i j]
readListPrec :: ReadPrec [T10 a b c d e f g h i j]
$creadListPrec :: forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
ReadPrec [T10 a b c d e f g h i j]
readPrec :: ReadPrec (T10 a b c d e f g h i j)
$creadPrec :: forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
ReadPrec (T10 a b c d e f g h i j)
readList :: ReadS [T10 a b c d e f g h i j]
$creadList :: forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
ReadS [T10 a b c d e f g h i j]
readsPrec :: Int -> ReadS (T10 a b c d e f g h i j)
$creadsPrec :: forall a b c d e f g h i j.
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h,
Read i, Read j) =>
Int -> ReadS (T10 a b c d e f g h i j)
Read, Int -> T10 a b c d e f g h i j -> ShowS
[T10 a b c d e f g h i j] -> ShowS
T10 a b c d e f g h i j -> String
(Int -> T10 a b c d e f g h i j -> ShowS)
-> (T10 a b c d e f g h i j -> String)
-> ([T10 a b c d e f g h i j] -> ShowS)
-> Show (T10 a b c d e f g h i j)
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
forall a b c d e f g h i j.
(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h,
Show i, Show j) =>
Int -> T10 a b c d e f g h i j -> ShowS
forall a b c d e f g h i j.
(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h,
Show i, Show j) =>
[T10 a b c d e f g h i j] -> ShowS
forall a b c d e f g h i j.
(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h,
Show i, Show j) =>
T10 a b c d e f g h i j -> String
showList :: [T10 a b c d e f g h i j] -> ShowS
$cshowList :: forall a b c d e f g h i j.
(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h,
Show i, Show j) =>
[T10 a b c d e f g h i j] -> ShowS
show :: T10 a b c d e f g h i j -> String
$cshow :: forall a b c d e f g h i j.
(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h,
Show i, Show j) =>
T10 a b c d e f g h i j -> String
showsPrec :: Int -> T10 a b c d e f g h i j -> ShowS
$cshowsPrec :: forall a b c d e f g h i j.
(Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h,
Show i, Show j) =>
Int -> T10 a b c d e f g h i j -> ShowS
Show, (forall x.
T10 a b c d e f g h i j -> Rep (T10 a b c d e f g h i j) x)
-> (forall x.
Rep (T10 a b c d e f g h i j) x -> T10 a b c d e f g h i j)
-> Generic (T10 a b c d e f g h i j)
forall x.
Rep (T10 a b c d e f g h i j) x -> T10 a b c d e f g h i j
forall x.
T10 a b c d e f g h i j -> Rep (T10 a b c d e f g h i j) x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
forall a b c d e f g h i j x.
Rep (T10 a b c d e f g h i j) x -> T10 a b c d e f g h i j
forall a b c d e f g h i j x.
T10 a b c d e f g h i j -> Rep (T10 a b c d e f g h i j) x
$cto :: forall a b c d e f g h i j x.
Rep (T10 a b c d e f g h i j) x -> T10 a b c d e f g h i j
$cfrom :: forall a b c d e f g h i j x.
T10 a b c d e f g h i j -> Rep (T10 a b c d e f g h i j) x
Generic)
deriving stock instance Foldable (T10 a b c d e f g h i)
deriving stock instance Functor (T10 a b c d e f g h i)
deriving stock instance Traversable (T10 a b c d e f g h i)
instance (Monoid a, Monoid b, Monoid c, Monoid d, Monoid e, Monoid f, Monoid g, Monoid h, Monoid i) => Applicative (T10 a b c d e f g h i) where
pure :: a -> T10 a b c d e f g h i a
pure a
j = a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> a
-> T10 a b c d e f g h i a
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 a
forall a. Monoid a => a
mempty b
forall a. Monoid a => a
mempty c
forall a. Monoid a => a
mempty d
forall a. Monoid a => a
mempty e
forall a. Monoid a => a
mempty f
forall a. Monoid a => a
mempty g
forall a. Monoid a => a
mempty h
forall a. Monoid a => a
mempty i
forall a. Monoid a => a
mempty a
j
T10 a
a b
b c
c d
d e
e f
f g
g h
h i
i a -> b
j <*> :: T10 a b c d e f g h i (a -> b)
-> T10 a b c d e f g h i a -> T10 a b c d e f g h i b
<*> T10 a
a' b
b' c
c' d
d' e
e' f
f' g
g' h
h' i
i' a
j' =
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> b
-> T10 a b c d e f g h i b
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 (a
a a -> a -> a
forall a. Semigroup a => a -> a -> a
<> a
a') (b
b b -> b -> b
forall a. Semigroup a => a -> a -> a
<> b
b') (c
c c -> c -> c
forall a. Semigroup a => a -> a -> a
<> c
c') (d
d d -> d -> d
forall a. Semigroup a => a -> a -> a
<> d
d') (e
e e -> e -> e
forall a. Semigroup a => a -> a -> a
<> e
e') (f
f f -> f -> f
forall a. Semigroup a => a -> a -> a
<> f
f') (g
g g -> g -> g
forall a. Semigroup a => a -> a -> a
<> g
g') (h
h h -> h -> h
forall a. Semigroup a => a -> a -> a
<> h
h') (i
i i -> i -> i
forall a. Semigroup a => a -> a -> a
<> i
i') (a -> b
j a
j')
instance (Monoid a, Monoid b, Monoid c, Monoid d, Monoid e, Monoid f, Monoid g, Monoid h, Monoid i) => Monad (T10 a b c d e f g h i) where
return :: a -> T10 a b c d e f g h i a
return = a -> T10 a b c d e f g h i a
forall (f :: * -> *) a. Applicative f => a -> f a
pure
T10 a
a b
b c
c d
d e
e f
f g
g h
h i
i a
j >>= :: T10 a b c d e f g h i a
-> (a -> T10 a b c d e f g h i b) -> T10 a b c d e f g h i b
>>= a -> T10 a b c d e f g h i b
k = case a -> T10 a b c d e f g h i b
k a
j of
T10 a
a' b
b' c
c' d
d' e
e' f
f' g
g' h
h' i
i' b
j' ->
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> b
-> T10 a b c d e f g h i b
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 (a
a a -> a -> a
forall a. Semigroup a => a -> a -> a
<> a
a') (b
b b -> b -> b
forall a. Semigroup a => a -> a -> a
<> b
b') (c
c c -> c -> c
forall a. Semigroup a => a -> a -> a
<> c
c') (d
d d -> d -> d
forall a. Semigroup a => a -> a -> a
<> d
d') (e
e e -> e -> e
forall a. Semigroup a => a -> a -> a
<> e
e') (f
f f -> f -> f
forall a. Semigroup a => a -> a -> a
<> f
f') (g
g g -> g -> g
forall a. Semigroup a => a -> a -> a
<> g
g') (h
h h -> h -> h
forall a. Semigroup a => a -> a -> a
<> h
h') (i
i i -> i -> i
forall a. Semigroup a => a -> a -> a
<> i
i') b
j'
instance (Hashable a, Hashable b, Hashable c, Hashable d, Hashable e, Hashable f, Hashable g, Hashable h, Hashable i, Hashable j) => Hashable (T10 a b c d e f g h i j) where
hash :: T10 a b c d e f g h i j -> Int
hash (T10 a
a b
b c
c d
d e
e f
f g
g h
h i
i j
j) = a -> Int
forall a. Hashable a => a -> Int
hash a
a Int -> b -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` b
b Int -> c -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` c
c Int -> d -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` d
d Int -> e -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` e
e Int -> f -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` f
f Int -> g -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` g
g Int -> h -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` h
h Int -> i -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` i
i Int -> j -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` j
j
hashWithSalt :: Int -> T10 a b c d e f g h i j -> Int
hashWithSalt = Int -> T10 a b c d e f g h i j -> Int
forall (f :: * -> *) a.
(Hashable1 f, Hashable a) =>
Int -> f a -> Int
hashWithSalt1
instance (Hashable a, Hashable b, Hashable c, Hashable d, Hashable e, Hashable f, Hashable g, Hashable h, Hashable i) => Hashable1 (T10 a b c d e f g h i) where
liftHashWithSalt :: (Int -> a -> Int) -> Int -> T10 a b c d e f g h i a -> Int
liftHashWithSalt = (Int -> a -> Int) -> Int -> T10 a b c d e f g h i a -> Int
forall (f :: * -> * -> *) a b.
(Hashable2 f, Hashable a) =>
(Int -> b -> Int) -> Int -> f a b -> Int
defaultLiftHashWithSalt
instance (Hashable a, Hashable b, Hashable c, Hashable d, Hashable e, Hashable f, Hashable g, Hashable h) => Hashable2 (T10 a b c d e f g h) where
liftHashWithSalt2 :: (Int -> a -> Int)
-> (Int -> b -> Int) -> Int -> T10 a b c d e f g h a b -> Int
liftHashWithSalt2 Int -> a -> Int
h1 Int -> b -> Int
h2 Int
slt (T10 a
a b
b c
c d
d e
e f
f g
g h
h a
i b
j) =
(Int
slt Int -> a -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` a
a Int -> b -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` b
b Int -> c -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` c
c Int -> d -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` d
d Int -> e -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` e
e Int -> f -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` f
f Int -> g -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` g
g Int -> h -> Int
forall a. Hashable a => Int -> a -> Int
`hashWithSalt` h
h) Int -> a -> Int
`h1` a
i Int -> b -> Int
`h2` b
j
instance (Monoid a, Monoid b, Monoid c, Monoid d, Monoid e, Monoid f, Monoid g, Monoid h, Monoid i, Monoid j) => Monoid (T10 a b c d e f g h i j) where
mempty :: T10 a b c d e f g h i j
mempty = a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 a
forall a. Monoid a => a
mempty b
forall a. Monoid a => a
mempty c
forall a. Monoid a => a
mempty d
forall a. Monoid a => a
mempty e
forall a. Monoid a => a
mempty f
forall a. Monoid a => a
mempty g
forall a. Monoid a => a
mempty h
forall a. Monoid a => a
mempty i
forall a. Monoid a => a
mempty j
forall a. Monoid a => a
mempty
instance (NFData a, NFData b, NFData c, NFData d, NFData e, NFData f, NFData g, NFData h, NFData i, NFData j) => NFData (T10 a b c d e f g h i j) where
rnf :: T10 a b c d e f g h i j -> ()
rnf (T10 a
a b
b c
c d
d e
e f
f g
g h
h i
i j
j) = a -> ()
forall a. NFData a => a -> ()
rnf a
a () -> () -> ()
`seq` b -> ()
forall a. NFData a => a -> ()
rnf b
b () -> () -> ()
`seq` c -> ()
forall a. NFData a => a -> ()
rnf c
c () -> () -> ()
`seq` d -> ()
forall a. NFData a => a -> ()
rnf d
d () -> () -> ()
`seq` e -> ()
forall a. NFData a => a -> ()
rnf e
e () -> () -> ()
`seq` f -> ()
forall a. NFData a => a -> ()
rnf f
f () -> () -> ()
`seq` g -> ()
forall a. NFData a => a -> ()
rnf g
g () -> () -> ()
`seq` h -> ()
forall a. NFData a => a -> ()
rnf h
h () -> () -> ()
`seq` i -> ()
forall a. NFData a => a -> ()
rnf i
i () -> () -> ()
`seq` j -> ()
forall a. NFData a => a -> ()
rnf j
j
instance (Semigroup a, Semigroup b, Semigroup c, Semigroup d, Semigroup e, Semigroup f, Semigroup g, Semigroup h, Semigroup i, Semigroup j) => Semigroup (T10 a b c d e f g h i j) where
T10 a
a1 b
b1 c
c1 d
d1 e
e1 f
f1 g
g1 h
h1 i
i1 j
j1 <> :: T10 a b c d e f g h i j
-> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
<> T10 a
a2 b
b2 c
c2 d
d2 e
e2 f
f2 g
g2 h
h2 i
i2 j
j2 = a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 (a
a1 a -> a -> a
forall a. Semigroup a => a -> a -> a
<> a
a2) (b
b1 b -> b -> b
forall a. Semigroup a => a -> a -> a
<> b
b2) (c
c1 c -> c -> c
forall a. Semigroup a => a -> a -> a
<> c
c2) (d
d1 d -> d -> d
forall a. Semigroup a => a -> a -> a
<> d
d2) (e
e1 e -> e -> e
forall a. Semigroup a => a -> a -> a
<> e
e2) (f
f1 f -> f -> f
forall a. Semigroup a => a -> a -> a
<> f
f2) (g
g1 g -> g -> g
forall a. Semigroup a => a -> a -> a
<> g
g2) (h
h1 h -> h -> h
forall a. Semigroup a => a -> a -> a
<> h
h2) (i
i1 i -> i -> i
forall a. Semigroup a => a -> a -> a
<> i
i2) (j
j1 j -> j -> j
forall a. Semigroup a => a -> a -> a
<> j
j2)
stimes :: b -> T10 a b c d e f g h i j -> T10 a b c d e f g h i j
stimes b
ii (T10 a
a b
b c
c d
d e
e f
f g
g h
h i
i j
j) = a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 (b -> a -> a
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii a
a) (b -> b -> b
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii b
b) (b -> c -> c
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii c
c) (b -> d -> d
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii d
d) (b -> e -> e
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii e
e) (b -> f -> f
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii f
f) (b -> g -> g
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii g
g) (b -> h -> h
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii h
h) (b -> i -> i
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii i
i) (b -> j -> j
forall a b. (Semigroup a, Integral b) => b -> a -> a
stimes b
ii j
j)
instance Bifunctor (T10 x y z w t u v p) where
bimap :: (a -> b)
-> (c -> d) -> T10 x y z w t u v p a c -> T10 x y z w t u v p b d
bimap a -> b
f c -> d
g (T10 x
x y
y z
z w
w t
t u
u v
v p
p a
a c
b) = x
-> y
-> z
-> w
-> t
-> u
-> v
-> p
-> b
-> d
-> T10 x y z w t u v p b d
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 x
x y
y z
z w
w t
t u
u v
v p
p (a -> b
f a
a) (c -> d
g c
b)
instance Bifoldable (T10 x y z w t u v p) where
bifoldMap :: (a -> m) -> (b -> m) -> T10 x y z w t u v p a b -> m
bifoldMap a -> m
f b -> m
g (T10 x
_ y
_ z
_ w
_ t
_ u
_ v
_ p
_ a
a b
b) = a -> m
f a
a m -> m -> m
forall a. Semigroup a => a -> a -> a
<> b -> m
g b
b
instance Bitraversable (T10 x y z w t u v p) where
bitraverse :: (a -> f c)
-> (b -> f d)
-> T10 x y z w t u v p a b
-> f (T10 x y z w t u v p c d)
bitraverse a -> f c
f b -> f d
g (T10 x
x y
y z
z w
w t
t u
u v
v p
p a
a b
b) = x
-> y
-> z
-> w
-> t
-> u
-> v
-> p
-> c
-> d
-> T10 x y z w t u v p c d
forall a b c d e f g h i j.
a
-> b
-> c
-> d
-> e
-> f
-> g
-> h
-> i
-> j
-> T10 a b c d e f g h i j
T10 x
x y
y z
z w
w t
t u
u v
v p
p (c -> d -> T10 x y z w t u v p c d)
-> f c -> f (d -> T10 x y z w t u v p c d)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> a -> f c
f a
a f (d -> T10 x y z w t u v p c d)
-> f d -> f (T10 x y z w t u v p c d)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> b -> f d
g b
b