Implement Div, Mod, and Log for type-level nats.
Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: RyanGlScott, dfeuer, adamgundry, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4002
Showing
- compiler/prelude/PrelNames.hs 21 additions, 15 deletionscompiler/prelude/PrelNames.hs
- compiler/typecheck/TcTypeNats.hs 146 additions, 0 deletionscompiler/typecheck/TcTypeNats.hs
- libraries/base/GHC/TypeLits.hs 1 addition, 0 deletionslibraries/base/GHC/TypeLits.hs
- libraries/base/GHC/TypeNats.hs 13 additions, 0 deletionslibraries/base/GHC/TypeNats.hs
- libraries/base/changelog.md 3 additions, 0 deletionslibraries/base/changelog.md
- testsuite/tests/ghci/scripts/T9181.stdout 7 additions, 0 deletionstestsuite/tests/ghci/scripts/T9181.stdout
- testsuite/tests/typecheck/should_compile/TcTypeNatSimple.hs 15 additions, 0 deletionstestsuite/tests/typecheck/should_compile/TcTypeNatSimple.hs
Loading
Please register or sign in to comment