packages feed

dtab 1.1 → 1.1.0.1

raw patch · 4 files changed

+20/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

+ CHANGES.md view
@@ -0,0 +1,14 @@+1.1.0.1++* Fix handling of newlines in printing and lexing `.dta`++1.1++* Fixed GH encryption typo in executable+* Removed RB3/Magma serialization modules+* Ported some `.dta` syntax fixes from `onyx`+* Emit `.dta` files with unquoted keywords if possible++1.0++* Initial version published on Hackage
dtab.cabal view
@@ -1,5 +1,5 @@ name:               dtab-version:            1.1+version:            1.1.0.1 synopsis:           Harmonix (Guitar Hero, Rock Band) DTA/DTB metadata library description: @@ -14,6 +14,7 @@ build-type:         Simple cabal-version:      >= 1.10 category:           Data+extra-source-files: CHANGES.md  library   build-depends:
src/Data/DTA/Lex.x view
@@ -43,7 +43,7 @@ ' ([^'] | \\')* ' { \pn str -> (pn, Key $ B8.pack $ readKey str) }  -- Quoted strings.-\" [^\"]* \" { \pn str -> (pn, String $ B8.pack $ readString str) }+\" ([^\"] | \n)* \" { \pn str -> (pn, String $ B8.pack $ readString str) }  -- Subtrees. \( { \pn _ -> (pn, LParen) }
src/Data/DTA/PrettyPrint.hs view
@@ -20,8 +20,9 @@   Parens tr -> PP.parens $ ppTree tr   Braces tr -> PP.braces $ ppTree tr   String t -> PP.text $ let-    f '"' = "\\q"-    f ch  = [ch]+    f '"'  = "\\q"+    f '\n' = "\\n"+    f ch   = [ch]     in "\"" ++ concatMap f (B8.unpack t) ++ "\""   Brackets tr -> PP.brackets $ ppTree tr   Define t -> PP.hsep [PP.text "#define", ppText t]