Additional type-level operations on 'GHC.TypeLits.Nat':
<http://hackage.haskell.org/package/base-4.8.2.0/docs/Prelude.html#v:max max>
<http://hackage.haskell.org/package/base-4.8.2.0/docs/Prelude.html#v:min min>
<http://hackage.haskell.org/package/base-4.8.2.0/docs/Prelude.html#v:div div>
<http://hackage.haskell.org/package/base-4.8.2.0/docs/Prelude.html#v:mod mod>
<https://hackage.haskell.org/package/integer-gmp/docs/GHC-Integer-Logarithms.html#v:integerLogBase-35- integerLogBase#> i.e. the exact integer equivalent to 'floor (logBase x y)'
<https://hackage.haskell.org/package/integer-gmp/docs/GHC-Integer-Logarithms.html#v:integerLogBase-35- integerLogBase#> i.e. the exact integer equivalent to 'ceiling (logBase x y)'
<https://hackage.haskell.org/package/integer-gmp/docs/GHC-Integer-Logarithms.html#v:integerLogBase-35- integerLogBase#> where the operation only reduces when 'floor (logBase b x) ~ ceiling (logBase b x)'
<http://hackage.haskell.org/package/base-4.8.2.0/docs/Prelude.html#v:gcd gcd>
<http://hackage.haskell.org/package/base-4.8.2.0/docs/Prelude.html#v:lcm lcm>
And a custom solver for the above operations defined in 'GHC.TypeLits.Extra.Solver' as a GHC type-checker plugin. To use the plugin, add the
' OPTIONS_GHC -fplugin GHC.TypeLits.Extra.Solver '
pragma to the header of your file.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.2.3-bp150.1.3 info | GA Release | 2018-07-30 | 15 |
|
|