Does anyone have a linter they use that spots when a PS object is passed to the FFI, either directly or as part of a Record/Array? Say for example one does:
data Foo = A | B foreign foo :: Foo -> Int z = foo A
This of course is perfectly valid PureScript, but often reflects an error where someone assumed a PureScript object would be converted to a string or, if it is a constructor, its value would be passed to the FFI (ie if it was
data MyString = MyString String that
String would go to the FFI if one passed a
MyString String). That sort of programming error is difficult to spot. If anyone has a linter that could pick up on those things, it’d be super helpful!