[GHC] #13689: Data.Either doesn't export INLINABLE short functions like "rights"

GHC ghc-devs at haskell.org
Fri May 12 17:09:50 UTC 2017


#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):

 > Instead could we perhaps give a bigger bonus to unfoldings headed by
 `build`?

 This sounds like a nice avenue to explore  but it seems a bit ad-hoc.
 While `foldr/build` do enjoy some special treatment in the compiler, I
 suspect end-users may want to have this same bonus (e.g. `vector`'s
 `stream`).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13689#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list