ghc-source-gen v0.2 Release Notes
-
- ๐ Improve overall documentation..
- ๐ Move
patBind
to a newHasPatBind
class so that it can be used withlet'
andwhile'
. - โ Remove
GHC.SourceGen.Syntax
and export types from relevant modules (for example,HsType'
fromGHC.SourceGen.Type
). - ๐จ Refactor the treatment of names:
- Rename the constructors of
RdrNameStr
. - Make some combinators take
OccNameStr
instead ofRdrNameStr
, and introduce theBVar
class for patterns. - Add
Eq
andOrd
instances.
- Rename the constructors of
- ๐ Support more kinds of syntax:
- Deriving clauses
- Import/export lists
- Record expressions and patterns
- Type family instances
- Pattern synonyms (currently, only the prefix form)
- ๐จ Refactor the names and types of
match
and related combinators, optimizing for the common case of a single expression on the RHS. - ๐ Fix edge cases when parsing qualified operators.
- โ Add parentheses in some cases that were previously missing them.
- ๐ Make
==>
have the same precedence as-->
to make it easier to combine them. - ๐ Make
tyApp
's precedence match-XTypeApplications
. - ๐ Fix pretty-printing of rational literals.
- ๐จ Make
tyPromotedVar
pretty-print as'Abc
notAbc
. - โ Add
conP_
for pattern constructors with no arguments.