@@ -23,6 +23,8 @@ module Data.Aeson.Parser.Internal
2323 json, jsonEOF
2424 , value
2525 , jstring
26+ , jstring_
27+ , scientific
2628 -- * Strict parsers
2729 , json', jsonEOF'
2830 , value'
@@ -334,7 +336,7 @@ decimal0 = do
334336 then fail "leading zero"
335337 else return (B.foldl' step 0 digits)
336338
337−{-# INLINE scientific #-}
339+-- | Parse a JSON number.
338340scientific :: Parser Scientific
339341scientific = do
340342 let minus = 45
@@ -364,3 +366,4 @@ scientific = do
364366 (A.satisfy (\ex -> ex == littleE || ex == bigE) *>
365367 fmap (Sci.scientific signedCoeff . (e +)) (signed decimal)) <|>
366368 return (Sci.scientific signedCoeff e)
369+{-# INLINE scientific #-}