ListLike: Generalized support for list-like structures

[ bsd3, bytestring, library, list, string, text, vector ] [ Propose Tags ]

Generalized support for list-like structures in Haskell.

The ListLike module provides a common interface to the various Haskell types that are list-like. Predefined interfaces include standard Haskell lists, Arrays, ByteStrings, and lazy ByteStrings. Custom types can easily be made ListLike instances as well.

ListLike also provides for String-like types, such as String and ByteString, for types that support input and output, and for types that can handle infinite lists.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0, 1.0.1, 1.0.2, 1.1.0, 2.0.0, 2.0.1, 3.0.1, 3.1.0, 3.1.1, 3.1.2, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7.1, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.4, 4.5, 4.5.1, 4.6, 4.6.2, 4.6.3, 4.7, 4.7.1, 4.7.2, 4.7.3, 4.7.4, 4.7.6, 4.7.7, 4.7.8, 4.7.8.1, 4.7.8.2
Dependencies array (>=0.3 && <0.6), base (>=4.7 && <5), bytestring (>=0.9.1 && <0.10.12), containers (>=0.5.6 && <0.7), deepseq, dlist (>=0.7 && <0.9), fmlist (>=0.8 && <0.10), semigroups (>=0.16 && <0.20), text (>=0.11 && <1.3), utf8-string (>=0.3.1 && <1.0.2), vector (>=0.5 && <0.13) [details]
License BSD-3-Clause
Copyright Copyright (c) 2007-2008 John Goerzen
Author John Goerzen
Maintainer David Fox <dsf@seereason.com>
Revised Revision 2 made by AndreasAbel at 2022-07-26T15:30:24Z
Category list, string, text, bytestring, vector
Home page http://github.com/ddssff/listlike
Source repo head: git clone git://github.com/ddssff/listlike.git
Uploaded by DavidFox at 2020-07-03T16:22:04Z
Distributions Arch:4.7.8.2, Debian:4.7.1, LTSHaskell:4.7.8.2, NixOS:4.7.8.2, Stackage:4.7.8.2
Reverse Dependencies 52 direct, 1088 indirect [details]
Downloads 77855 total (270 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-07-03 [all 1 reports]

Readme for ListLike-4.7.1

[back to package description]

Build Status

ListLike

The ListLike package provides typeclasses and instances to allow polymorphism over many common datatypes.

CHANGES

Version 4.7

  • Make GHC.Exts.IsList a superclass of ListLike and use its fromList and toList methods
  • make Data.String.IsString a superclass of Stringlike and use its fromString method
  • Add methods to StringLike: show, fromText, fromLazyText
  • Add a class ListOps, alternative to ListLike, that uses the GHC.Exts.Item instead of the item type parameter.
  • Supply instance IsString Seq for old versions of container