string-like: A package that aims to provide a uniform interface to string-like types.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.0, 0.1.0.1
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), bytestring (>=0.10), text (>=0.8) [details]
License BSD-3-Clause
Copyright 2020 Willem Van Onsem
Author Willem Van Onsem
Maintainer hapytexeu+gh@gmail.com
Category utils
Home page https://github.com/hapytex/string-like#readme
Source repo head: git clone https://github.com/hapytex/string-like
Uploaded by wvanonsem90 at 2020-04-12T12:15:53Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for string-like-0.1.0.0

[back to package description]

string-like

Build Status of the package by Travis Build Status of the package by Hackage Hackage version badge

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.