summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <aethoago@141.li>2017-02-16 19:43:40 +0100
committerGregor Kleen <aethoago@141.li>2017-02-16 19:43:40 +0100
commitd84405d3e923f4677103143f8b7cc22c9adb6443 (patch)
tree75914b76b00be881e4b86a2ee2886c767e0aaddf
parentdccf2c949c10892b368484c3e85bb2bb14e613e2 (diff)
downloadpostdelay-d84405d3e923f4677103143f8b7cc22c9adb6443.tar
postdelay-d84405d3e923f4677103143f8b7cc22c9adb6443.tar.gz
postdelay-d84405d3e923f4677103143f8b7cc22c9adb6443.tar.bz2
postdelay-d84405d3e923f4677103143f8b7cc22c9adb6443.tar.xz
postdelay-d84405d3e923f4677103143f8b7cc22c9adb6443.zip
Fix label
-rw-r--r--lib/Postdelay/TimeSpec/Utils.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Postdelay/TimeSpec/Utils.hs b/lib/Postdelay/TimeSpec/Utils.hs
index fd9c1be..628a1d9 100644
--- a/lib/Postdelay/TimeSpec/Utils.hs
+++ b/lib/Postdelay/TimeSpec/Utils.hs
@@ -92,7 +92,7 @@ boundedRational :: forall s m n. (Show n, RealFrac n, StringParser s m)
92 => Bool -- ^ Require number to be padded with zeroes 92 => Bool -- ^ Require number to be padded with zeroes
93 -> Interval n -> m n 93 -> Interval n -> m n
94boundedRational padded (I.intersection (0 <=..< PosInf) -> bounds) 94boundedRational padded (I.intersection (0 <=..< PosInf) -> bounds)
95 = (+) <$> boundedNatural padded wholeBounds <*> fractional <?> "Nonnegative real contained in: " ++ show bounds 95 = (+) <$> boundedNatural padded wholeBounds <*> fractional <?> "Nonnegative rational contained in: " ++ show bounds
96 where 96 where
97 fractional :: m n 97 fractional :: m n
98 fractional = reqFractional $ char '.' $> (/ 10) . foldr' (\h t -> h + t / 10) 0 <*> some (fromDigit <$> digitChar) 98 fractional = reqFractional $ char '.' $> (/ 10) . foldr' (\h t -> h + t / 10) 0 <*> some (fromDigit <$> digitChar)