
#15286: "Can't use Natural in base" when compiling GHC.Natural with -O0 -------------------------------------+------------------------------------- Reporter: alpmestan | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4880 Wiki Page: | -------------------------------------+------------------------------------- Changes (by hsyl20): * status: new => patch * differential: => Phab:D4880 Comment: I can reproduce. I agree that the integration of built-in Natural (and Integer) in GHC is fragile... Maybe we should fully disable Natural built- in rules when we compile `base` to avoid this issue. In the meantime I have implemented your workaround in Phab:D4880 (it also fixes a critical copy-paste bug). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15286#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler