export default (Promise=Promise) => f =>
  (...args) =>
    new Promise((resolve, reject) =>
      f(...args, (err, val) => err ? reject(err) : resolve(val))
    )

export default (PromiseArg=Promise) => f =>
  (...args) =>
    new PromiseArg((resolve, reject) =>
      f(...args, (err, val) => err ? reject(err) : resolve(val))
    )

Fix global 'Promise' as default argument
Fix global 'Promise' as default argument

Because of hoisting, the default 'Promise' argument was 'undefined'.
Changing the argument name fixes this.

Closes #1
