#7204: Use a class to control FFI marshalling ---------------------------------+------------------------------------------ Reporter: simonpj | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------
Comment(by simonpj): You're right. And arguably `newtype deriving` should work with at suitably-simple AT. Given {{{ class C a where type F a :: <kind> newtype T a b c = MkT <reptype> deriving( C ) }}} we should generate an instance looking like {{{ instance C <reptype> => C (T a b c) where F (T a b c) = F <reptype> }}} That's another new extension to the (already complex) `newtype deriving`, but people will surely be asking for it before long! -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7204#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs