We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1e4073 commit b4b9cd7Copy full SHA for b4b9cd7
src/Data/Profunctor/Kleisli/Linear.hs
@@ -56,8 +56,5 @@ newtype CoKleisli w a b = CoKleisli { runCoKleisli :: w a #-> b }
56
instance Data.Functor f => Profunctor (CoKleisli f) where
57
dimap f g (CoKleisli h) = CoKleisli (g . h . Data.fmap f)
58
59
--- instance of a more general idea, but this will do for now
60
instance Strong Either Void (CoKleisli (Data.Const x)) where
61
- first (CoKleisli f) = CoKleisli (\(Data.Const x) -> (Left :: a #-> Either a b) (f (Data.Const x)))
62
--- XXX: the above type signature is necessary for certain older versions of
63
--- the compiler, and as such is temporary
+ first (CoKleisli f) = CoKleisli (\(Data.Const x) -> Left (f (Data.Const x)))
0 commit comments