[commit: ghc] master: Improve FFI error reporting (3758050)

git at git.haskell.org git at git.haskell.org
Tue Jun 2 16:37:27 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3758050f02c1de6af41c50ed122b3df012d400ff/ghc

>---------------------------------------------------------------

commit 3758050f02c1de6af41c50ed122b3df012d400ff
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Jun 2 17:37:09 2015 +0100

    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.


>---------------------------------------------------------------

3758050f02c1de6af41c50ed122b3df012d400ff
 compiler/typecheck/TcType.hs                  | 113 ++++++++++++++------------
 testsuite/tests/ffi/should_fail/T10461.hs     |   6 ++
 testsuite/tests/ffi/should_fail/T10461.stderr |   7 ++
 testsuite/tests/ffi/should_fail/all.T         |   1 +
 4 files changed, 77 insertions(+), 50 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 3758050f02c1de6af41c50ed122b3df012d400ff


More information about the ghc-commits mailing list