@@ -67,6 +67,7 @@ data Style = Any
67 | DoubleQuoted
67 | DoubleQuoted
70 deriving (Show, Read, Eq, Enum, Bounded, Ord, Data, Typeable)
71 deriving (Show, Read, Eq, Enum, Bounded, Ord, Data, Typeable)
72data Tag = StrTag
73data Tag = StrTag
@@ -378,13 +379,17 @@ toEventRaw e f = allocaBytes eventSize $ \er -> do
378 c_simple_document_start er
379 c_simple_document_start er
379 EventDocumentEnd ->
380 EventDocumentEnd ->
380 c_yaml_document_end_event_initialize er 1
381 c_yaml_document_end_event_initialize er 1
381− EventScalar bs thetag style anchor -> do
382+ EventScalar bs thetag style0 anchor -> do
382 BU.unsafeUseAsCStringLen bs $ \(value, len) -> do
383 BU.unsafeUseAsCStringLen bs $ \(value, len) -> do
383 let value' = castPtr value :: Ptr CUChar
384 let value' = castPtr value :: Ptr CUChar
384 len' = fromIntegral len :: CInt
385 len' = fromIntegral len :: CInt
385 let thetag' = tagToString thetag
386 let thetag' = tagToString thetag
386 withCString thetag' $ \tag' -> do
387 withCString thetag' $ \tag' -> do
390+ PlainNoTag -> (1, Plain)
387− let style' = toEnum $ fromEnum style
392+ style' = toEnum $ fromEnum style
388 tagP = castPtr tag'
393 tagP = castPtr tag'
389 qi = if null thetag' then 1 else 0
394 qi = if null thetag' then 1 else 0
390 case anchor of
395 case anchor of
@@ -395,7 +400,7 @@ toEventRaw e f = allocaBytes eventSize $ \er -> do
395 tagP -- tag
400 tagP -- tag
396 value' -- value
401 value' -- value
397 len' -- length
402 len' -- length
398− 0 -- plain_implicit
403+ pi -- plain_implicit
399 qi -- quoted_implicit
404 qi -- quoted_implicit
400 style' -- style
405 style' -- style
401 Just anchor' ->
406 Just anchor' ->