#3008: Strange behavior when using newtyped version of IO monad in FFI import
declarations
-------------------------------+--------------------------------------------
Reporter: waern | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone: 7.4.1
Component: Compiler (FFI) | Version: 6.10.1
Keywords: FFI | Testcase:
Blockedby: | Difficulty: Unknown
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: None/Unknown
-------------------------------+--------------------------------------------
Comment(by igloo@…):
commit 5b988961338f73af5790bfd365ca79c858249cea
{{{
Author: Ian Lynagh <[email protected]>
Date: Fri Sep 30 21:57:53 2011 +0100
Handle newtypes and type functions correctly in FFI types; fixes #3008
You can now use type functions in FFI types.
Newtypes are now only looked through if the constructor is in scope.
compiler/deSugar/DsCCall.lhs | 4 +-
compiler/deSugar/DsForeign.lhs | 82 +++++++++++---------
compiler/deSugar/DsMeta.hs | 2 +-
compiler/hsSyn/Convert.lhs | 4 +-
compiler/hsSyn/HsDecls.lhs | 32 +++++++-
compiler/hsSyn/HsUtils.lhs | 2 +-
compiler/parser/RdrHsSyn.lhs | 6 +-
compiler/rename/RnNames.lhs | 2 +-
compiler/rename/RnSource.lhs | 8 +-
compiler/typecheck/TcForeign.lhs | 160
+++++++++++++++++++++++++-------------
compiler/typecheck/TcHsSyn.lhs | 4 +-
compiler/typecheck/TcType.lhs | 50 ++++--------
compiler/types/FamInstEnv.lhs | 2 +-
utils/ghctags/Main.hs | 2 +-
14 files changed, 214 insertions(+), 146 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3008#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs