Changelog for language-nix-2.3.0
Revision History for language-nix
2.3.0
-
Language.Nix.Identifiernow exportsnixKeywordswhich lists keywords in Nix that are parseable as simple identifiers, but have special meaning, likeassertandwith. Consequently, they can't be used as (simple) identifiers in Nix code.quote,needsQuotingandPrettywill take this list into account and quote such identifiers. However,HasParserwill not reject them even if they are unquoted. -
Resolved discrepancies between
Language.Nix.Identifierand Nix w.r.t. quoting and escaping:- Fixed missing escaping of some Nix syntax elements, e.g. in the case of
ident # "${foo}". - Pretty printing
Identifiers will no longer produce escape sequences Haskell supports, but Nix doesn't. - Parsing
Identifiers won't interpret escape sequences that Nix wouldn't understand.
- Fixed missing escaping of some Nix syntax elements, e.g. in the case of
-
Added an hspec/QuickCheck based test suite.