Commit a40f26b2 authored by Ian Lynagh's avatar Ian Lynagh

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.
parent a374bf93
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 ()
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment