Sanctuary ADT Matrix
Usage:
$ npx sanctuary-adt-matrix
Type Class | Pair | Maybe | Either | Future |
---|
Setoid | ✅ | ✅ | ✅ | ❌ |
Ord | ✅ | ✅ | ✅ | ❌ |
Semigroupoid | ✅ | ❌ | ❌ | ❌ |
Category | ❌ | ❌ | ❌ | ❌ |
Semigroup | ✅ | ✅ | ✅ | ❌ |
Monoid | ❌ | ✅ | ❌ | ❌ |
Group | ❌ | ❌ | ❌ | ❌ |
Filterable | ❌ | ✅ | ❌ | ❌ |
Functor | ✅ | ✅ | ✅ | ✅ |
Bifunctor | ✅ | ❌ | ✅ | ✅ |
Profunctor | ❌ | ❌ | ❌ | ❌ |
Apply | ✅ | ✅ | ✅ | ✅ |
Applicative | ❌ | ✅ | ✅ | ✅ |
Chain | ✅ | ✅ | ✅ | ✅ |
ChainRec | ❌ | ✅ | ✅ | ✅ |
Monad | ❌ | ✅ | ✅ | ✅ |
Alt | ❌ | ✅ | ✅ | ✅ |
Plus | ❌ | ✅ | ❌ | ❌ |
Alternative | ❌ | ✅ | ❌ | ❌ |
Foldable | ✅ | ✅ | ✅ | ❌ |
Traversable | ✅ | ✅ | ✅ | ❌ |
Extend | ✅ | ✅ | ✅ | ❌ |
Comonad | ✅ | ❌ | ❌ | ❌ |
Contravariant | ❌ | ❌ | ❌ | ❌ |
Using the matrix API
Test Sanctuary ADT's for Type Class support.
const { adts, typeClassTests } = require ('sanctuary-adt-matrix');
[
['Pair' , Adt],
['Maybe' , Adt],
['Either', Adt],
['Future', Adt]
]
typeClassTests [0] (adts)