
#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 vagarenko): Replying to [comment:2 RyanGlScott]:
one could define DivMod in terms of Div and Mod
like this: {{{#!hs type DivMod a b = (Div a b, Mod a b) }}} ? Why would it be less performant than baked in `DivMod`? Because `a` and `b` would be reduced twice? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13652#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler