Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
comfort-glpk Numeric.GLPK No documentation available.
-
dsp Matrix.Simplex No documentation available.
-
grisette Grisette.Internal.SymPrim.Prim.Internal.Instances.PEvalDivModIntegralTerm Default partial evaluation of division operation for bounded integral types.
-
grisette Grisette.Internal.SymPrim.Prim.Internal.Instances.PEvalDivModIntegralTerm Default partial evaluation of quotient operation for bounded integral types.
compileBounded :: Int -> RE c a -> Maybe (Parser c a)parser-regex Regex.Base Compile a RE c a to a Parser c a. Returns Nothing if the size of the RE is greater than the provided limit <math>. You may want to use this if you suspect that the RE may be too large, for instance if the regex is constructed from an untrusted source. While the exact size of a RE depends on an internal representation, it can be assumed to be in the same order as the length of a regex pattern corresponding to the RE.
compileBounded :: Int -> RE c a -> Maybe (Parser c a)parser-regex Regex.Internal.Parser Compile a RE c a to a Parser c a. Returns Nothing if the size of the RE is greater than the provided limit <math>. You may want to use this if you suspect that the RE may be too large, for instance if the regex is constructed from an untrusted source. While the exact size of a RE depends on an internal representation, it can be assumed to be in the same order as the length of a regex pattern corresponding to the RE.
compileBounded :: Int -> RE c a -> Maybe (Parser c a)parser-regex Regex.List Compile a RE c a to a Parser c a. Returns Nothing if the size of the RE is greater than the provided limit <math>. You may want to use this if you suspect that the RE may be too large, for instance if the regex is constructed from an untrusted source. While the exact size of a RE depends on an internal representation, it can be assumed to be in the same order as the length of a regex pattern corresponding to the RE.
compileBounded :: Int -> RE c a -> Maybe (Parser c a)parser-regex Regex.Text Compile a RE c a to a Parser c a. Returns Nothing if the size of the RE is greater than the provided limit <math>. You may want to use this if you suspect that the RE may be too large, for instance if the regex is constructed from an untrusted source. While the exact size of a RE depends on an internal representation, it can be assumed to be in the same order as the length of a regex pattern corresponding to the RE.
-
postgresql-typed Database.PostgreSQL.Typed.Range Equivalent to Bounded False ±Infinity
-
safe-decimal Numeric.Decimal Compute absolute value of a bounded decimal. Protects against overflows for negative minBound.
>>> abs (minBound :: Int8) -128 >>> import Numeric.Decimal >>> d <- arithM (fromRational (-1.28) :: Arith (Decimal RoundHalfUp 2 Int8)) >>> d -1.28 >>> absDecimalBounded d :: Either SomeException (Decimal RoundHalfUp 2 Int8) Left arithmetic overflow
Note - Watch out for order of negation>>> -1.28 :: Arith (Decimal RoundHalfUp 2 Int8) ArithError arithmetic overflow >>> negate (1.28 :: Arith (Decimal RoundHalfUp 2 Int8)) ArithError arithmetic overflow >>> :set -XNegativeLiterals >>> -1.28 :: Arith (Decimal RoundHalfUp 2 Int8) Arith -1.28