BSD-3-Clause licensed by Koji Miyazato
Maintained by [email protected]
This version can be pinned in stack with:matchable-0.1.2.1@sha256:0453c3593032d2affeadceaec4e91aa97f49510fb65ff9dcd9f82ccbca505c3d,1632

Module documentation for 0.1.2.1

Used by 1 package in nightly-2024-11-25(full list with versions):

Haskell CI

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.

Changes

0.1.2.1

  • No changes to the library itself. The package description (.cabal file) changed to the standard.

0.1.2

  • Add Data.Bimatchable

0.1.1.1

  • Initial release.