pointfree-fantasy
Version:
Point free wrappers for fantasy land js.
27 lines (19 loc) • 669 B
JavaScript
require('../pointfree').expose(global)
var assert = require("assert")
, quickCheckLaws = require('./helper').quickCheckLaws
, curry = require('lodash.curry')
, claire = require('claire')
, _ = claire.data
, asGenerator = claire.asGenerator
, forAll = claire.forAll
, Identity = require('../instances/identity').Identity
;
var IdentityGen = claire.transform(Identity, _.Str);
describe('Identity', function(){
quickCheckLaws({ 'Semigroup': IdentityGen
, 'Monoid': IdentityGen
, 'Functor': IdentityGen
, 'Applicative': IdentityGen
, 'Monad': IdentityGen
});
});