
#11164: No way to import a data instance -------------------------------------+------------------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): Does {{{#!hs import Foreign.R.Type as R ( pattern SComplex ) }}} work? If it doesn't, it should. The `pattern` keyword in import/export lists has been extended to apply to ordinary data constructors. These should include data family instance constructors, too. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11164#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler