Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type family MConcat mappend mempty xs where ...
- newtype Tensored t i xs = Tensored {
- getTensored :: MConcat t i xs
- type family xs ++ ys where ...
- class AppendTensored xs where
Type Families
type family MConcat mappend mempty xs where ... Source #
Examples:
>>>
:{
let foo :: Tensored (,) () '[Bool, Int] foo = Tensored (True, (8, ())) :}
>>>
:{
let bar :: Tensored Either Void '[Bool, Int] bar = Tensored $ Right $ Left 8 :}
>>>
:{
let baz :: Tensored These Void '[Bool, Int] baz = Tensored $ These True $ This 8 :}
newtype Tensored t i xs Source #
Tensored | |
|
Instances
Show (MConcat t i xs) => Show (Tensored t i xs) Source # | |
Eq (MConcat t i xs) => Eq (Tensored t i xs) Source # | |
Ord (MConcat t i xs) => Ord (Tensored t i xs) Source # | |
Defined in Control.Category.Tensor.Expr compare :: Tensored t i xs -> Tensored t i xs -> Ordering # (<) :: Tensored t i xs -> Tensored t i xs -> Bool # (<=) :: Tensored t i xs -> Tensored t i xs -> Bool # (>) :: Tensored t i xs -> Tensored t i xs -> Bool # (>=) :: Tensored t i xs -> Tensored t i xs -> Bool # max :: Tensored t i xs -> Tensored t i xs -> Tensored t i xs # min :: Tensored t i xs -> Tensored t i xs -> Tensored t i xs # |
AppendTensored
class AppendTensored xs where Source #
appendTensored :: Tensor (->) t i => (Tensored t i xs `t` Tensored t i ys) -> Tensored t i (xs ++ ys) Source #
Instances
AppendTensored ('[] :: [Type]) Source # | |
Defined in Control.Category.Tensor.Expr | |
AppendTensored xs => AppendTensored (x ': xs) Source # | |
Defined in Control.Category.Tensor.Expr |