Copyright | (C) 2018 Ryan Scott |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Ryan Scott |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Data.Singletons.Prelude.Monad.Zip
Contents
Description
Defines the promoted and singled versions of the MonadZip
type class.
Synopsis
- class PMonad m => PMonadZip (m :: Type -> Type) where
- class SMonad m => SMonadZip (m :: Type -> Type) where
- sMzip :: forall a b (t :: m a) (t :: m b). Sing t -> Sing t -> Sing (Apply (Apply MzipSym0 t) t :: m (a, b))
- sMzipWith :: forall a b c (t :: (~>) a ((~>) b c)) (t :: m a) (t :: m b). Sing t -> Sing t -> Sing t -> Sing (Apply (Apply (Apply MzipWithSym0 t) t) t :: m c)
- sMunzip :: forall a b (t :: m (a, b)). Sing t -> Sing (Apply MunzipSym0 t :: (m a, m b))
- data MzipSym0 :: forall a6989586621681067522 b6989586621681067523 m6989586621681067521. (~>) (m6989586621681067521 a6989586621681067522) ((~>) (m6989586621681067521 b6989586621681067523) (m6989586621681067521 (a6989586621681067522, b6989586621681067523)))
- data MzipSym1 (arg6989586621681067597 :: m6989586621681067521 a6989586621681067522) :: forall b6989586621681067523. (~>) (m6989586621681067521 b6989586621681067523) (m6989586621681067521 (a6989586621681067522, b6989586621681067523))
- type MzipSym2 (arg6989586621681067597 :: m6989586621681067521 a6989586621681067522) (arg6989586621681067598 :: m6989586621681067521 b6989586621681067523) = Mzip arg6989586621681067597 arg6989586621681067598
- data MzipWithSym0 :: forall a6989586621681067524 b6989586621681067525 c6989586621681067526 m6989586621681067521. (~>) ((~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) ((~>) (m6989586621681067521 a6989586621681067524) ((~>) (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526)))
- data MzipWithSym1 (arg6989586621681067601 :: (~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) :: forall m6989586621681067521. (~>) (m6989586621681067521 a6989586621681067524) ((~>) (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526))
- data MzipWithSym2 (arg6989586621681067601 :: (~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) (arg6989586621681067602 :: m6989586621681067521 a6989586621681067524) :: (~>) (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526)
- type MzipWithSym3 (arg6989586621681067601 :: (~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) (arg6989586621681067602 :: m6989586621681067521 a6989586621681067524) (arg6989586621681067603 :: m6989586621681067521 b6989586621681067525) = MzipWith arg6989586621681067601 arg6989586621681067602 arg6989586621681067603
- data MunzipSym0 :: forall a6989586621681067527 b6989586621681067528 m6989586621681067521. (~>) (m6989586621681067521 (a6989586621681067527, b6989586621681067528)) (m6989586621681067521 a6989586621681067527, m6989586621681067521 b6989586621681067528)
- type MunzipSym1 (arg6989586621681067607 :: m6989586621681067521 (a6989586621681067527, b6989586621681067528)) = Munzip arg6989586621681067607
Documentation
class PMonad m => PMonadZip (m :: Type -> Type) Source #
Associated Types
type Mzip (arg :: m a) (arg :: m b) :: m (a, b) Source #
type MzipWith (arg :: (~>) a ((~>) b c)) (arg :: m a) (arg :: m b) :: m c Source #
class SMonad m => SMonadZip (m :: Type -> Type) where Source #
Minimal complete definition
Nothing
Methods
sMzip :: forall a b (t :: m a) (t :: m b). Sing t -> Sing t -> Sing (Apply (Apply MzipSym0 t) t :: m (a, b)) Source #
sMzipWith :: forall a b c (t :: (~>) a ((~>) b c)) (t :: m a) (t :: m b). Sing t -> Sing t -> Sing t -> Sing (Apply (Apply (Apply MzipWithSym0 t) t) t :: m c) Source #
sMunzip :: forall a b (t :: m (a, b)). Sing t -> Sing (Apply MunzipSym0 t :: (m a, m b)) Source #
sMzip :: forall a b (t :: m a) (t :: m b). (Apply (Apply MzipSym0 t) t :: m (a, b)) ~ Apply (Apply Mzip_6989586621681067621Sym0 t) t => Sing t -> Sing t -> Sing (Apply (Apply MzipSym0 t) t :: m (a, b)) Source #
sMzipWith :: forall a b c (t :: (~>) a ((~>) b c)) (t :: m a) (t :: m b). (Apply (Apply (Apply MzipWithSym0 t) t) t :: m c) ~ Apply (Apply (Apply MzipWith_6989586621681067637Sym0 t) t) t => Sing t -> Sing t -> Sing t -> Sing (Apply (Apply (Apply MzipWithSym0 t) t) t :: m c) Source #
sMunzip :: forall a b (t :: m (a, b)). (Apply MunzipSym0 t :: (m a, m b)) ~ Apply Munzip_6989586621681067646Sym0 t => Sing t -> Sing (Apply MunzipSym0 t :: (m a, m b)) Source #
Defunctionalization symbols
data MzipSym0 :: forall a6989586621681067522 b6989586621681067523 m6989586621681067521. (~>) (m6989586621681067521 a6989586621681067522) ((~>) (m6989586621681067521 b6989586621681067523) (m6989586621681067521 (a6989586621681067522, b6989586621681067523))) Source #
Instances
SMonadZip m => SingI (MzipSym0 :: TyFun (m a) (m b ~> m (a, b)) -> Type) Source # | |
SuppressUnusedWarnings (MzipSym0 :: TyFun (m6989586621681067521 a6989586621681067522) (m6989586621681067521 b6989586621681067523 ~> m6989586621681067521 (a6989586621681067522, b6989586621681067523)) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods suppressUnusedWarnings :: () Source # | |
type Apply (MzipSym0 :: TyFun (m6989586621681067521 a6989586621681067522) (m6989586621681067521 b6989586621681067523 ~> m6989586621681067521 (a6989586621681067522, b6989586621681067523)) -> Type) (arg6989586621681067597 :: m6989586621681067521 a6989586621681067522) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip type Apply (MzipSym0 :: TyFun (m6989586621681067521 a6989586621681067522) (m6989586621681067521 b6989586621681067523 ~> m6989586621681067521 (a6989586621681067522, b6989586621681067523)) -> Type) (arg6989586621681067597 :: m6989586621681067521 a6989586621681067522) = (MzipSym1 arg6989586621681067597 b6989586621681067523 :: TyFun (m6989586621681067521 b6989586621681067523) (m6989586621681067521 (a6989586621681067522, b6989586621681067523)) -> Type) |
data MzipSym1 (arg6989586621681067597 :: m6989586621681067521 a6989586621681067522) :: forall b6989586621681067523. (~>) (m6989586621681067521 b6989586621681067523) (m6989586621681067521 (a6989586621681067522, b6989586621681067523)) Source #
Instances
(SMonadZip m, SingI d) => SingI (MzipSym1 d b :: TyFun (m b) (m (a, b)) -> Type) Source # | |
SuppressUnusedWarnings (MzipSym1 arg6989586621681067597 b6989586621681067523 :: TyFun (m6989586621681067521 b6989586621681067523) (m6989586621681067521 (a6989586621681067522, b6989586621681067523)) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods suppressUnusedWarnings :: () Source # | |
type Apply (MzipSym1 arg6989586621681067597 b :: TyFun (m b) (m (a, b)) -> Type) (arg6989586621681067598 :: m b) Source # | |
type MzipSym2 (arg6989586621681067597 :: m6989586621681067521 a6989586621681067522) (arg6989586621681067598 :: m6989586621681067521 b6989586621681067523) = Mzip arg6989586621681067597 arg6989586621681067598 Source #
data MzipWithSym0 :: forall a6989586621681067524 b6989586621681067525 c6989586621681067526 m6989586621681067521. (~>) ((~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) ((~>) (m6989586621681067521 a6989586621681067524) ((~>) (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526))) Source #
Instances
SMonadZip m => SingI (MzipWithSym0 :: TyFun (a ~> (b ~> c)) (m a ~> (m b ~> m c)) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods sing :: Sing MzipWithSym0 Source # | |
SuppressUnusedWarnings (MzipWithSym0 :: TyFun (a6989586621681067524 ~> (b6989586621681067525 ~> c6989586621681067526)) (m6989586621681067521 a6989586621681067524 ~> (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526)) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods suppressUnusedWarnings :: () Source # | |
type Apply (MzipWithSym0 :: TyFun (a6989586621681067524 ~> (b6989586621681067525 ~> c6989586621681067526)) (m6989586621681067521 a6989586621681067524 ~> (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526)) -> Type) (arg6989586621681067601 :: a6989586621681067524 ~> (b6989586621681067525 ~> c6989586621681067526)) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip type Apply (MzipWithSym0 :: TyFun (a6989586621681067524 ~> (b6989586621681067525 ~> c6989586621681067526)) (m6989586621681067521 a6989586621681067524 ~> (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526)) -> Type) (arg6989586621681067601 :: a6989586621681067524 ~> (b6989586621681067525 ~> c6989586621681067526)) = (MzipWithSym1 arg6989586621681067601 m6989586621681067521 :: TyFun (m6989586621681067521 a6989586621681067524) (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526) -> Type) |
data MzipWithSym1 (arg6989586621681067601 :: (~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) :: forall m6989586621681067521. (~>) (m6989586621681067521 a6989586621681067524) ((~>) (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526)) Source #
Instances
(SMonadZip m, SingI d) => SingI (MzipWithSym1 d m :: TyFun (m a) (m b ~> m c) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods sing :: Sing (MzipWithSym1 d m) Source # | |
SuppressUnusedWarnings (MzipWithSym1 arg6989586621681067601 m6989586621681067521 :: TyFun (m6989586621681067521 a6989586621681067524) (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods suppressUnusedWarnings :: () Source # | |
type Apply (MzipWithSym1 arg6989586621681067601 m6989586621681067521 :: TyFun (m6989586621681067521 a6989586621681067524) (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526) -> Type) (arg6989586621681067602 :: m6989586621681067521 a6989586621681067524) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip type Apply (MzipWithSym1 arg6989586621681067601 m6989586621681067521 :: TyFun (m6989586621681067521 a6989586621681067524) (m6989586621681067521 b6989586621681067525 ~> m6989586621681067521 c6989586621681067526) -> Type) (arg6989586621681067602 :: m6989586621681067521 a6989586621681067524) = MzipWithSym2 arg6989586621681067601 arg6989586621681067602 |
data MzipWithSym2 (arg6989586621681067601 :: (~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) (arg6989586621681067602 :: m6989586621681067521 a6989586621681067524) :: (~>) (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526) Source #
Instances
(SMonadZip m, SingI d1, SingI d2) => SingI (MzipWithSym2 d1 d2 :: TyFun (m b) (m c) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods sing :: Sing (MzipWithSym2 d1 d2) Source # | |
SuppressUnusedWarnings (MzipWithSym2 arg6989586621681067602 arg6989586621681067601 :: TyFun (m6989586621681067521 b6989586621681067525) (m6989586621681067521 c6989586621681067526) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods suppressUnusedWarnings :: () Source # | |
type Apply (MzipWithSym2 arg6989586621681067602 arg6989586621681067601 :: TyFun (m b) (m c) -> Type) (arg6989586621681067603 :: m b) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip type Apply (MzipWithSym2 arg6989586621681067602 arg6989586621681067601 :: TyFun (m b) (m c) -> Type) (arg6989586621681067603 :: m b) = MzipWith arg6989586621681067602 arg6989586621681067601 arg6989586621681067603 |
type MzipWithSym3 (arg6989586621681067601 :: (~>) a6989586621681067524 ((~>) b6989586621681067525 c6989586621681067526)) (arg6989586621681067602 :: m6989586621681067521 a6989586621681067524) (arg6989586621681067603 :: m6989586621681067521 b6989586621681067525) = MzipWith arg6989586621681067601 arg6989586621681067602 arg6989586621681067603 Source #
data MunzipSym0 :: forall a6989586621681067527 b6989586621681067528 m6989586621681067521. (~>) (m6989586621681067521 (a6989586621681067527, b6989586621681067528)) (m6989586621681067521 a6989586621681067527, m6989586621681067521 b6989586621681067528) Source #
Instances
SMonadZip m => SingI (MunzipSym0 :: TyFun (m (a, b)) (m a, m b) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods sing :: Sing MunzipSym0 Source # | |
SuppressUnusedWarnings (MunzipSym0 :: TyFun (m6989586621681067521 (a6989586621681067527, b6989586621681067528)) (m6989586621681067521 a6989586621681067527, m6989586621681067521 b6989586621681067528) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip Methods suppressUnusedWarnings :: () Source # | |
type Apply (MunzipSym0 :: TyFun (m (a, b)) (m a, m b) -> Type) (arg6989586621681067607 :: m (a, b)) Source # | |
Defined in Data.Singletons.Prelude.Monad.Zip type Apply (MunzipSym0 :: TyFun (m (a, b)) (m a, m b) -> Type) (arg6989586621681067607 :: m (a, b)) = Munzip arg6989586621681067607 |
type MunzipSym1 (arg6989586621681067607 :: m6989586621681067521 (a6989586621681067527, b6989586621681067528)) = Munzip arg6989586621681067607 Source #