
#12900: Common up identical info tables -------------------------------------+------------------------------------- Reporter: dobenour | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Runtime Unknown/Multiple | performance bug Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Consider {{{#!hs data Bool' = No | Yes }}} It is clear that this is identical to `Bool` at runtime, and so GHC should be able to reuse `Bool`'s code. The same holds for all other pairs of isomorphic data types. I think that a **massive** space savings could be achieved this way. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12900 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler