Open Synthetica9 opened 8 years ago
Instances for ->
are pretty tricky - I'm not sure they will ever work, but good to record it.
Relatedly(?), I tried searching for
(a -> b) -> (b -> c) -> a -> c
and
cat a b -> cat b c -> cat a c
but neither turned up Control.Category.>>>
. To get it, I had to go all the way to
Category cat => cat a b -> cat b c -> cat a c
which doesn't seem very helpful for discovering the function.
Similarly, I tried
[a] -> [a]
and
[String] -> [String]
and neither turned up Data.List.sort
. Hmm.....
Examples:
liftA2 :: (b -> c -> d) -> (a -> b) -> (a -> c) -> (a -> d)
, No results foundliftA3 :: (b -> c -> d -> e) -> (a -> b) -> (a -> c) -> (a -> d) -> (a -> e)
, No results found(<*>) :: (a -> b -> c) -> (a -> b) -> (a -> c)
, Wrong results foundjoin :: (a -> a -> b) -> (a -> b)
, wrong results foundSame for
Arrow
instances.