Skip to content

Add integer division to GHC.TypeLits

GHC.TypeLits currently lacks integer division type families and I can't see why. What is the reason for not having these methods of the Integral class at type level:

quot
rem
div
mod
quotRem
divMod

?

Trac metadata
Trac field Value
Version 8.0.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information