We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5499fc commit 3460cc1Copy full SHA for 3460cc1
haskell_edsl/src/Checktestdata/Core.hs
@@ -238,6 +238,8 @@ nextFloatP pmin pmax format = PrimOp $ do
238
Just dp | hasexp && (BS.index sn digitpos == '0' || dp /= digitpos + 1) ->
239
failWithLocation "exactly one non-zero before the decimal dot expected"
240
_ -> return ()
241
+ when (pmin < 0 || pmin > pmax) $
242
+ failWithLocation $ "Specified decimal range " ++ show (pmin,pmax) ++ " invalid"
243
when (ndecimals < pmin || ndecimals > pmax) $
244
failWithLocation $ "Number of decimals (" ++ show ndecimals ++ ") not "
245
++ "within specified range " ++ show (pmin,pmax)
0 commit comments