[GHC] #13652: Add integer division to GHC.TypeLits
GHC
ghc-devs at haskell.org
Tue Oct 3 22:14:46 UTC 2017
#13652: Add integer division to GHC.TypeLits
-------------------------------------+-------------------------------------
Reporter: vagarenko | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Core Libraries | Version: 8.0.1
Resolution: | Keywords:
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 RyanGlScott):
Commit fa8035e3ee83aff5a20fc5e7e2697bac1686d6a6 added type-level versions
of `Div` and `Mod` to `GHC.TypeNats`.
The only remaining question—which I will ask to vagarenko—is it important
to you to have a `DivMod` type family in `base` that uses the value-level
`divMod` under the hood? I ask since one //could// define `DivMod` in
terms of `Div` and `Mod`, but perhaps you're wanting something more
performant than that.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13652#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list