/string-like

A uniform interface for String-like objects in Haskell

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

string-like

Build Status of the package by GitHub actions Build Status of the package by Hackage Hackage version badge

This package is based on the Text.StringLike module of the tagsoup package.

The package defines a typeclass that can be implemented to provide a uniform interface for String-like objects.

The typeclass itself has default implementations that convert the StringLike item first to a lazy Text, then performs the operation, and converts results back to its StringLike object. This is usually /not/ as efficient as an operation for that specific type. Therefore it is advisable to implement the other functions as well.

One can however decide to only implement fromText and toText; or toString.

Contribute

You can contribute by making a pull request on the GitHub repository.

You can contact the package maintainer by sending a mail to hapytexeu+gh@gmail.com.