Proposal: add integer division to GHC.TypeLits

David Feuer david.feuer at
Wed Jun 7 00:17:59 UTC 2017

Yes please! +1

On Jun 6, 2017 7:33 PM, "Alexey Vagarenko" <vagarenko at> wrote:

I'd like to propose adding Div, Mod and DivMod type families to
which would be promoted versions of methods of Integral class.

type family Div :: Nat -> Nat -> Nat
type family Mod :: Nat -> Nat -> Nat
type family DivMod :: Nat -> Nat -> (Nat, Nat)

I've made trac ticket for this
some time ago, but it hasn't got much attention.

Libraries mailing list
Libraries at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list