[GHC] #15861: Cannot import (*) type operator

#15861: Cannot import (*) type operator -------------------------------------+------------------------------------- Reporter: pgujjula | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Keywords: | Operating System: Linux Architecture: | Type of failure: GHC rejects Unknown/Multiple | valid program Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The (*) type operator cannot be imported from GHC.TypeLits. The following code compiles in GHC 8.4.4 but fails in GHC 8.6.1 with "error: parse error on input ‘*’" {{{#!hs {-# LANGUAGE TypeOperators #-} import GHC.TypeLits (type (*)) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15861 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15861: Cannot import (*) type operator -------------------------------------+------------------------------------- Reporter: pgujjula | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Resolution: invalid | Keywords: Operating System: Linux | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * resolution: => invalid Comment: This is expected behavior. You have to enable the new `NoStarIsType` language extension. More details here: https://ghc.haskell.org/trac/ghc/wiki/Migration/8.6 I agree that it's unfortunate how this breaks, but it seemed better than other alternatives as we were preparing GHC 8.6. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15861#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15861: Cannot import (*) type operator -------------------------------------+------------------------------------- Reporter: pgujjula | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Resolution: invalid | Keywords: Operating System: Linux | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by pgujjula): Ah thank you, my apologies. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15861#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC