
#11432: Cannot export operator newtype -------------------------------------+------------------------------------- Reporter: phadej | Owner: mpickering Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc1 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: | -------------------------------------+------------------------------------- Changes (by mpickering): * owner: => mpickering Comment: This is a problem in the parser. Workaround, use the `type` keyword. {{{ {-# LANGUAGE TypeOperators #-} module T11432 (type (-.->)(..)) where newtype (f -.-> g) a = Fn { apFn :: f a -> g a } }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11432#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler