yaml 0.8.9.1 → 0.8.9.2
raw patch · 2 files changed
+15/−1 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Yaml: Array :: !Array -> Value
+ Data.Yaml: Array :: SrictNotUnpackedArray -> Value
- Data.Yaml: Bool :: !Bool -> Value
+ Data.Yaml: Bool :: SrictNotUnpackedBool -> Value
- Data.Yaml: Number :: !Scientific -> Value
+ Data.Yaml: Number :: SrictNotUnpackedScientific -> Value
- Data.Yaml: Object :: !Object -> Value
+ Data.Yaml: Object :: SrictNotUnpackedObject -> Value
- Data.Yaml: String :: !Text -> Value
+ Data.Yaml: String :: SrictNotUnpackedText -> Value
Files
- Text/Libyaml.hs +8/−0
- yaml.cabal +7/−1
Text/Libyaml.hs view
@@ -310,6 +310,11 @@ foreign import ccall unsafe "my_emitter_set_output" c_my_emitter_set_output :: Emitter -> Buffer -> IO () +#ifndef __NO_UNICODE__+foreign import ccall unsafe "yaml_emitter_set_unicode"+ c_yaml_emitter_set_unicode :: Emitter -> CInt -> IO ()+#endif+ foreign import ccall unsafe "yaml_emitter_set_output_file" c_yaml_emitter_set_output_file :: Emitter -> File -> IO () @@ -618,6 +623,9 @@ emitter <- mallocBytes emitterSize res <- c_yaml_emitter_initialize emitter when (res == 0) $ throwIO $ YamlException "c_yaml_emitter_initialize failed"+#ifndef __NO_UNICODE__+ c_yaml_emitter_set_unicode emitter 1+#endif a <- allocI emitter return (emitter, a) cleanup (emitter, _) = do
yaml.cabal view
@@ -1,5 +1,5 @@ name: yaml-version: 0.8.9.1+version: 0.8.9.2 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov @@ -37,6 +37,10 @@ description: Use the system-wide libyaml instead of the bundled copy default: False +flag no-unicode+ description: Don't enable unicode output. Instead, unicode characters will be escaped.+ default: False+ library build-depends: base >= 4 && < 5 , transformers >= 0.1@@ -58,6 +62,8 @@ ghc-options: -Wall c-sources: c/helper.c include-dirs: c+ if flag(no-unicode)+ cpp-options: -D__NO_UNICODE__ if flag(system-libyaml) pkgconfig-depends: yaml-0.1 else