We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Compose f g a b (= Biff f g dentity a b) from Edward's monad homomorphisms
Compose f g a b
Biff f g dentity a b
type COMPOSE f g = Biff f g Identity newtype Compose f g a b = COMPOSE { runCOMPOSE :: COMPOSE f g a b } deriving (Functor, Foldable, Traversable, Bifunctor, Bifoldable, Biapplicative)
The text was updated successfully, but these errors were encountered:
Also Bitraversable
Bitraversable
pattern Compose :: Bifunctor f => f (g a) b -> Compose f g a b pattern Compose{runCompose} <- (second runIdentity . runBiff . runCOMPOSE -> runCompose) where Compose = COMPOSE . Biff . second Identity instance (Bitraversable f, Traversable g) => Bitraversable (Compose f g) where bitraverse :: Applicative f => (a -> f a') -> (b -> f b') -> ((Tensor f g) a b -> f ((Tensor f g) a' b')) bitraverse f g = fmap Tensor . bitraverse (traverse f) g . runTensor
Sorry, something went wrong.
With issue #12369 this becomes an instance of Compose
#12369
Compose
data family Compose (k -> xx) -> (k' -> k) -> (k' -> xx) newtype instance Compose f g a = Compose (f (g a)) newtype instance Compose f g a b = Compose2 (f (g a) b) newtype instance Compose f g a b c = Compose3 (f (g a) b c)
No branches or pull requests
Add
Compose f g a b
(=Biff f g dentity a b
) from Edward's monad homomorphismsThe text was updated successfully, but these errors were encountered: