Skip to content

Generated code for toNullable Nothing produces undefined? #4

@Javran

Description

@Javran

It works fine from psci, but when I try to use it from js side, I find toNullable Nothing produces undefined instead of null.

To reproduce:

$ psc --version
0.7.1.0
$ pulp init && pulp dep install purescript-nullable && pulp build
$ psc-bundle output/**/*.js -m Data.Nullable >test.js
$ echo "module.exports = PS;" >> test.js
$ node 
> var PS = require("./test");
undefined
> PS["Data.Nullable"].toNullable( PS["Data.Maybe"].Nothing.value );
undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions