Skip to content

Instantly share code, notes, and snippets.

@zerobias
Created October 26, 2016 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerobias/f42247222ffbbabbe8591df807bc0a12 to your computer and use it in GitHub Desktop.
Save zerobias/f42247222ffbbabbe8591df807bc0a12 to your computer and use it in GitHub Desktop.
Import sanctuary monad functional library without runtime typecheck
const {create, env} = require('sanctuary')
const checkTypes = false
//or enable it only in developement
//const checkTypes = process.env.NODE_ENV !== 'production'
const S = create({checkTypes: checkTypes, env: env})
module.exports = S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment