purescript-jack icon indicating copy to clipboard operation
purescript-jack copied to clipboard

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

Open danr opened this issue 8 years ago • 1 comments

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)

danr avatar Aug 18 '17 10:08 danr

Yeah that's a good idea!

jacobstanley avatar Aug 18 '17 23:08 jacobstanley