Repository : ssh://darcs.haskell.org//srv/darcs/testsuite On branch : master
http://hackage.haskell.org/trac/ghc/changeset/12a8a4c09128401394112d6562874ce639feab34 >--------------------------------------------------------------- commit 12a8a4c09128401394112d6562874ce639feab34 Author: Ian Lynagh <[email protected]> Date: Sat Oct 1 13:33:23 2011 +0100 Accept type error message changes I think ideally we should give the info from both the old and new messages; i.e. "You wrote X, which I reduced to Y, which isn't valid". That way if Y is an abstract newtype then it will be clearer why the type wasn't valid. We used to only give X, and now we only give Y. Finding X is now a little messier, especially in cases like ccfail005. >--------------------------------------------------------------- tests/ffi/should_fail/T3066.stderr | 2 +- tests/safeHaskell/safeLanguage/SafeLang08.stderr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ffi/should_fail/T3066.stderr b/tests/ffi/should_fail/T3066.stderr index ac0a07d..2bbaf62 100644 --- a/tests/ffi/should_fail/T3066.stderr +++ b/tests/ffi/should_fail/T3066.stderr @@ -1,6 +1,6 @@ T3066.hs:6:1: - Unacceptable argument type in foreign declaration: forall u. X u + Unacceptable argument type in foreign declaration: forall u. Ptr () When checking declaration: foreign import ccall safe "static bla" bla :: (forall u. X u) -> IO () diff --git a/tests/safeHaskell/safeLanguage/SafeLang08.stderr b/tests/safeHaskell/safeLanguage/SafeLang08.stderr index fc7c7fa..7785b24 100644 --- a/tests/safeHaskell/safeLanguage/SafeLang08.stderr +++ b/tests/safeHaskell/safeLanguage/SafeLang08.stderr @@ -1,6 +1,6 @@ SafeLang08.hs:9:1: - Unacceptable result type in foreign declaration: CDouble + Unacceptable result type in foreign declaration: Double Safe Haskell is on, all FFI imports must be in the IO monad When checking declaration: foreign import ccall safe "static SafeLang08_A" c_sin _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
