[GHC] #8782: Using GADT's to maintain invariant in GHC libraries

GHC ghc-devs at haskell.org
Thu Aug 21 08:52:15 UTC 2014


#8782: Using GADT's to maintain invariant in GHC libraries
-------------------------------------+-------------------------------------
              Reporter:              |            Owner:
  Iceland_jack                       |           Status:  infoneeded
                  Type:  task        |        Milestone:  7.10.1
              Priority:  lowest      |          Version:  7.9
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 I removed some exported functions like `mapOL` (that only appears in a
 comment) and `foldrOL` and `foldlOL` (replacing occurrences with
 `Data.Foldable.foldr` and `Data.Foldable.foldl`.

 Other functions like (`concatOL`, `appOL`, `fromOL`, ...) could as well be
 dropped in favour of the `Monoid` and `IsList` methods in the future, but
 they are used substantially more than the ones I replaced so I decided
 against it.

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


More information about the ghc-tickets mailing list