| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sun, 18 Jan 2026 00:28:49 GMT
X-Served-By: cache-dfw-kdal2120064-DFW, cache-bom-vanm7210078-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768696129.017443,VS0,VE298
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
matchable: A type class for Matchable Functors.
[Skip to Readme]
matchable: A type class for Matchable Functors.
This package defines a type class Matchable, providing
zipMatch operation for zipping two values of any container-like
functor type.
[Skip to Readme]
Downloads
- matchable-0.2.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.1.1, 0.1.2, 0.1.2.1, 0.2 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.10 && <5), base-orphans (>=0.9.3 && <1), containers (>=0.5.10.2 && <0.9), generically (>=0.1), hashable (>=1.0.1.1 && <1.6), tagged (>=0.8 && <0.9), unordered-containers (>=0.2.6 && <0.3), vector (>=0.10.9.0 && <0.14) [details] |
| Tested with | ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6.6, ghc ==9.8.2, ghc ==9.10.1 |
| License | BSD-3-Clause |
| Author | Koji Miyazato |
| Maintainer | viercc@gmail.com |
| Uploaded | by viercc at 2024-12-21T08:21:01Z |
| Revised | Revision 1 made by viercc at 2025-03-04T14:49:29Z |
| Category | Functors |
| Source repo | head: git clone https://github.com/viercc/matchable -b master |
| Distributions | LTSHaskell:0.2, NixOS:0.2, Stackage:0.2 |
| Reverse Dependencies | 2 direct, 2 indirect [details] |
| Downloads | 1861 total (21 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2024-12-21 [all 1 reports] |
Readme for matchable-0.2
[back to package description]matchable
This package defines a type class Matchable,
which provides zipMatch operation for zipping two values of a
container type.
The zipMatch operation can fail. It returns the zipped value wrapped
in Maybe. Specifically, zipMatch returns zipped value if and only if two arguments
have the exactly same shape.
Example
>>> zipMatch [1,2] ['a','b']
Just [(1,'a'), (2,'b')]
>>> zipMatch [1,2,3] ['a','b']
Nothing
See examples also.