Socket
Book a DemoInstallSign in
Socket

sanctuary-adt-matrix

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanctuary-adt-matrix

Matrix that shows which Sanctuary ADT's implements which Type Classes

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Sanctuary ADT Matrix

npm

Usage:

$ npx sanctuary-adt-matrix
Type ClassPairMaybeEitherFuture
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's Algebraic Data Types (ADT) for Type Class support.

The API is unstable and will probably change between minor versions.

const { adts, typeClassTests } = require ('sanctuary-adt-matrix');

// adts :: Array (Array (String Adt))
[
  ['Pair'  , Adt],
  ['Maybe' , Adt],
  ['Either', Adt],
  ['Future', Adt]
]

// typeClassTests :: Array (Array (String Adt) -> Array (String))
typeClassTests [0] (adts) // -> [ 'Setoid', '✅', '✅', '✅', '❌' ]

FAQs

Package last updated on 16 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.