Skip to content

FR: Warn when name starts with prop_ but is not a Property #22

@danr

Description

@danr

Being accustomed to Arbitrary instances I thought a function with type signature like

prop_test :: List Int -> Property

would trigger from jackMain, but the continue statement with comment not an object, so not a property test is triggered. It would be nice if this was logged as a warning and not just silently ignoring this prop_.

Expected output:

Warning: prop_test starts with prop_ but is not of type Property

Actual output:
(nothing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions