Skip to content

Pattern matches are sometimes wrongly eta-reduced in output #67

@justinlubin

Description

@justinlubin

For example, with the following input:

main : (Int -> Int) -> Maybe (Maybe Int) -> Int
main f mma =
 case mma of
   Nothing -> 0
   Just ma ->
     case ma of
       Nothing -> 1
       Just a -> f a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions