Skip to content

Instantly share code, notes, and snippets.

View dmsnell's full-sized avatar

Dennis Snell dmsnell

View GitHub Profile
import R from 'ramda';
import S from 'sanctuary';
import { equal } from 'assert';
// The gist:
function myModule() {
const myStore = createMonadicReducer({
// Plain (a -> b) functions are wrapped so that they return a Maybe
inc: pure(R.inc),