haskell-hvr / HsYAML

YAML 1.2 implementation in pure Haskell
https://hackage.haskell.org/package/HsYAML
GNU General Public License v2.0
55 stars 17 forks source link

Add EmptyLine Event #50

Closed TristanCacqueray closed 2 years ago

TristanCacqueray commented 4 years ago

This change adds rudimentary support for preserving empty lines.

Fixes: #48

TristanCacqueray commented 4 years ago

This is probably not enough, but that seems on the right track:

> writeEvents UTF8 $ map eEvent $ rights $ parseEvents "i: 1\n\nj: 2"
"i: 1\n\nj: 2\n"
andreasabel commented 2 years ago

I understand this is still a draft.

TristanCacqueray commented 2 years ago

Unfortunately I don't have time to finish this work.