ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
753 stars 137 forks source link

Not finding instances for `(->)` #191

Open Synthetica9 opened 8 years ago

Synthetica9 commented 8 years ago

Examples:

Same for Arrow instances.

ndmitchell commented 7 years ago

Instances for -> are pretty tricky - I'm not sure they will ever work, but good to record it.

treeowl commented 2 years ago

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.....