yaml 0.11.1.1 → 0.11.1.2
raw patch · 4 files changed
+14/−2 lines, 4 filesdep ~base
Dependency ranges changed: base
Files
- ChangeLog.md +4/−0
- src/Data/Yaml.hs +5/−0
- src/Data/Yaml/Parser.hs +3/−0
- yaml.cabal +2/−2
ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for yaml +## 0.11.1.2++* Compiles with GHC 8.8.1 (`MonadFail` split)+ ## 0.11.1.1 * Use the appropriate `Scientific` rendering function to avoid a memory overflow when rendering. The previously used function from `aeson` would not use scientific notation, and could use large amounts of memory for values such as `1e9999999999999`.
src/Data/Yaml.hs view
@@ -299,5 +299,10 @@ array :: [Value] -> Value array = Array . V.fromList +#if MIN_VERSION_base(4, 13, 0)+parseMonad :: MonadFail m => (a -> Parser b) -> a -> m b+#else parseMonad :: Monad m => (a -> Parser b) -> a -> m b+#endif parseMonad p = either fail return . parseEither p+{-# DEPRECATED parseMonad "With the MonadFail split, this function is going to be removed in the future. Please migrate to parseEither." #-}
src/Data/Yaml/Parser.hs view
@@ -52,6 +52,9 @@ case f am of Left t -> Left t Right x -> unYamlParser (g x) am+#if MIN_VERSION_base(4,13,0)+instance MonadFail YamlParser where+#endif fail = YamlParser . const . Left . pack instance MonadPlus YamlParser where mzero = fail "mzero"
yaml.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 9426dfc0830aba34ef783254b6e2e389a47c1723b5b350378944dce20e062b50+-- hash: fd80752d31072e9d0302c6aab5e524dff535a5e9d72ff7b14a2c1bd0e8cdc86a name: yaml-version: 0.11.1.1+version: 0.11.1.2 synopsis: Support for parsing and rendering YAML documents. description: README and API documentation are available at <https://www.stackage.org/package/yaml> category: Data