[GHC] #15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`
GHC
ghc-devs at haskell.org
Tue Oct 9 23:17:05 UTC 2018
- Previous message: [GHC] #15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`
- Next message: [GHC] #15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
#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 rockbmb):
Replying to [comment:21 Bodigrim]:
> `Compose` itself makes no difference, of course. The instance from your
PR is equivalent to `resolution = (10 ^) . natVal . Compose`. My
suggestion is to put `resolution = natVal . Compose`, which makes us able
to express desired accuracy both in decimal (`E 1000`) and binary (`E
1024`) digits, as well as in any other base.
I understand now, I failed to notice that where I wrote `type Milli = E
3`, you wrote `type Milli = E 1000`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15622#comment:27>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
- Previous message: [GHC] #15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`
- Next message: [GHC] #15622: Generalize `E{0,1,2,3,6,9,12}` from `Data.Fixed`
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ghc-tickets
mailing list