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 afcc8ea commit 0908f77Copy full SHA for 0908f77
core/src/Streamly/Internal/Unicode/Parser.hs
@@ -290,6 +290,8 @@ data ScientificParseState
290
-- exponent) tuple. The result can be mapped to 'Double' or any other number
291
-- representation e.g. @Scientific@.
292
--
293
+-- For example, using the @scientific@ package:
294
+-- >> parserScientific = uncurry Data.Scientific.scientific <$> 'number'
295
{-# INLINE number #-}
296
number :: Monad m => Parser Char m (Integer, Int)
297
number = Parser (\s a -> return $ step s a) initial (return . extract)
0 commit comments