How do I hoogle for ordered/sorted data structures?

Viewed 64

I'm looking for data structures that require their members to be instances of Ord, and I'm having trouble finding any on Hackage. I've searched on Hoogle and Stackage for the expression Ord a => [a] -> f a, because I would expect something like fromList. Why am I not finding anything?

Here is an example of the type of function/data structure I'd like to find.

1 Answers

There is a strong naming convention in the Haskell world, so I would recommend Hoogling for singleton and fromList. Results won't be restricted to things that require Ord, but from a cursory glance it does look like those results achieve pretty good coverage.

It doesn't look like Hoogle has a convenient way to ask for more results, but you can click on the - sign next to package names on the left to filter out packages you've already triaged as being unrelated to your interests, and results from other packages will fill in at the bottom.

Related