Skip to content

Void functions produce a "defined but not used" warning for the result #47

Closed
@ian-ross

Description

@ian-ross

Bug imported from C2HS Trac

Trac ticket created: 2012-07-04T15:17:44-0700


Declaring a {# fun ... #} with return type `()' leads to the following warning from GHC:

Warning: Defined but not used: `res'

Please consider either using res or declaring it as _ in this case, to prevent the warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions