qm-interpolated-string v0.3.0.0 Release Notes

Release Date: 2018-02-04 // about 6 years ago
    • โœ… Testing on GHC 8.2.2
    • โœ… More tests to cover more usage scenarios
    • Ability to use } inside an interpolation block by escaping it

    โš  WARNING! Breaking changes

    • ๐Ÿšš \r characters are no longer pre-removed.

    Up to v0.2.1.0 all \r characters were pre-removed. When you compile your code with GHC you can use either LF or CRLF for line-breaks but not CR alone. When I changed handling of interpolation blocks (see below) I needed to get contents of interpolations blocks without any modifications, so I replaced pre-removing all CR*s with explicit handling of *CRLF in patterns. If your code ever was depending on \r symbols appearing alone inside quoters (that I can't even imagine) it could break your code. But it will probably never happen, I'm just noticing it here.

    • ๐Ÿ›  Fix for interpolation blocks parsing.

    Once I noticed that [qm|{"\n"}|] compiles to "n", I considered this as a bug, I also realized that interpolation blocks aren't interpreted as a bare haskell code as I was expecting. My bad, I've missed that, haven't written enought tests to cover such scenarios, it migrated from original interpolatedstring-perl6 package. So I had to fix this mistake, notwithstanding it can break your code when you update the library. Now everything inside interpolation blocks is taken as bare haskell code as possible.


Previous changes from v0.2.1.0

    • ๐Ÿ‘Œ Support GHC 7.4.1
    • ๐Ÿšš Internal modules moved to other-modules section