Improve FFI error reporting
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 2 Jun 2015 16:37:09 +0000 (17:37 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 2 Jun 2015 16:37:30 +0000 (17:37 +0100)
commit3758050f02c1de6af41c50ed122b3df012d400ff
tree791c847a57a0544f9f423388dcaff410961655a0
parente796026b45974d71233eef7ffb6feee482c6dd7e
Improve FFI error reporting

I refactored TcType FFI functions to return Validity rather than Bool,
which turned out to be an easy way to solve Trac #10461.
compiler/typecheck/TcType.hs
testsuite/tests/ffi/should_fail/T10461.hs [new file with mode: 0644]
testsuite/tests/ffi/should_fail/T10461.stderr [new file with mode: 0644]
testsuite/tests/ffi/should_fail/all.T