Skip to content

toActionInput evaluates undefined #194

@kschweppe

Description

@kschweppe

Consider the following example:

instance HyperView TestView es where
    data Action TestView = Test Int Int

view :: View TestView ()
view = dropdown (\x -> Test x 1) 0 none

In this case, toActionInput will evaluate undefined in toAction (act undefined), which only seems to work if the supplied argument is the last one for the given action, i.e., \x -> Test 1 x works but \x -> Test x 1 does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions