[GHC] #15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`

GHC ghc-devs at haskell.org
Tue Oct 9 21:17:46 UTC 2018


#15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`
-------------------------------------+-------------------------------------
        Reporter:  rockbmb           |                Owner:  rockbmb
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Core Libraries    |              Version:  8.4.3
      Resolution:                    |             Keywords:  base,
                                     |  Data.Fixed
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Bodigrim):

 Replying to [comment:22 Ashley Yakeley]:
 > Alternatively, use Nat directly?
 >
 > {{{
 > newtype Fixed (n :: Nat) = MkFixed Integer
 > }}}

 Yeah, looks nice. But one should scan Hackage again to make sure that no
 one derived `HasResolution` instances for his own types.

 Replying to [comment:25 Ashley Yakeley]:
 > `Nat` is just a wrapper for `Integer`, isn't it? As opposed to `data Nat
 = Z | S Nat`?

 Yes.

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


More information about the ghc-tickets mailing list