GitXplorerGitXplorer
v

matchable

public
7 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
5d6b642da0dbc144a5ddd743bdc2357b705b8959

Documentations on TH

vviercc committed a month ago
Unverified
e83328688830bb68b289ca05a8a93d1a82d13599

Version bump

vviercc committed a month ago
Unverified
25d91b68bb2bb77be7fffc82434ae80cc558049d

Write changelog

vviercc committed a month ago
Unverified
1870852b2e368df69786fd7dbe15b2ec877adaaf

Use `deriving via Generically1` in the test

vviercc committed a month ago
Unverified
56b3c405904849cf38460c541d6cd246859739ba

missing import of Data.Orphans

vviercc committed a month ago
Unverified
b25a43b3638bde23d9637c2c4cd7931d2d795c9b

Updates for GHC-9.12

vviercc committed a month ago

README

The README file for this repository.

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.