Skip to content
This repository was archived by the owner on May 23, 2019. It is now read-only.
This repository was archived by the owner on May 23, 2019. It is now read-only.

avoid ad-hoc typeclasses #3

Open
@gregwebs

Description

@gregwebs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions