Skip to content

Figure out better JS -> Haskell parsing strategy than FromJSVal / fromJSValUnchecked #1

@Dridus

Description

@Dridus

right now the "error reporting" of FromJSVal is Maybe and to avoid the Maybe I use a bunch of fromJSValUnchecked which tosses exceptions. Tossing exceptions inside of JS callbacks (at least the promise returned by stripe.createToken) seems to get eaten rather than reported and makes finding issues with that conversion process tedious

it'd be better to have some kind of real parsing with error locations and all that.

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