Skip to content

Wingman generates bool backwards #1504

@isovector

Description

@isovector

Wingman gives the following solution for bool:

bool :: a -> a -> Bool -> a
bool _ a1 False = a1
bool a _ True = a

A more natural solution is to swap the True and False, so that the as are used in the same order as the data constructors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions