avoid ad-hoc typeclasses #3
Description
Antemodulum.Text introduces ad-hoc type-classes. This is essentially what classy-prelude used to do and decided was a bad idea because the type inference was bad, error messages were poor, and it was not that easy to reason about the code. In part this was due to generality. Antemodulum.Text will probably work fine because it only works on Text. But we would like generality without much downside by building on foundational type classes.
In the case of Text there is an EqSequence and Textual typeclass that should be able to handle our needs.
http://hackage.haskell.org/package/mono-traversable-0.2.0.0/docs/Data-Sequences.html#t:EqSequence
With respect to FilePath that seems ok since we don't have another option. But instance IsFilePath Text
is not a generally safe conversion so I am not sure how I feel about that, particularly if this is open source for more than just docmunch.