
#13689: Data.Either doesn't export INLINABLE short functions like "rights" -------------------------------------+------------------------------------- Reporter: varosi | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Core Libraries | Version: 8.0.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3576 Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): varosi, the problem is that GHC considers the definitions of `lefts` and `rights` to be too large to inline and consequently doesn't produce unfoldings for them when compiling `GHC.Eithers`. This means that by the time we get to compiling your code we couldn't inline `lefts` and `rights` even if we wanted to. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13689#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler