Copyright | (C) 2015-2016 University of Twente |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | Christiaan Baaij <christiaan.baaij@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions |
|
To use the plugin, add the
{-# OPTIONS_GHC -fplugin GHC.TypeLits.Extra.Solver #-}
pragma to the header of your file
Documentation
A solver implement as a type-checker plugin for:
ExtraOp
: type-leveldiv
ExtraOp
: type-levelmod
ExtraOp
: type-level equivalent of integerLogBase# .i.e. the exact integer equivalent to "
"floor
(logBase
x y)ExtraOp
: type-level equivalent of the ceiling of integerLogBase# .i.e. the exact integer equivalent to "
"ceiling
(logBase
x y)ExtraOp
: type-level equivalent of integerLogBase# where the operation only reduces when "
"floor
(logBase
b x) ~ceiling
(logBase
b x)ExtraOp
: a type-levelgcd
ExtraOp
: a type-levellcm
To use the plugin, add
{-# OPTIONS_GHC -fplugin GHC.TypeLits.Extra.Solver #-}
To the header of your file.