diff options
Diffstat (limited to 'docs/users_guide')
-rw-r--r-- | docs/users_guide/9.4.1-notes.rst | 4 | ||||
-rw-r--r-- | docs/users_guide/using-warnings.rst | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/users_guide/9.4.1-notes.rst b/docs/users_guide/9.4.1-notes.rst index a77b6b451b..2576a21cea 100644 --- a/docs/users_guide/9.4.1-notes.rst +++ b/docs/users_guide/9.4.1-notes.rst @@ -383,3 +383,7 @@ Compiler - GHC no longer carries ``Derived`` constraints. Accordingly, several functions in the plugin architecture that previously passed or received three sets of constraints (givens, deriveds, and wanteds) now work with two such sets. + +- A new argument has been added to the ``HsOpTy`` constructor of the ``HsType`` + datatype, to track the presence of a promotion tick. Plugins which manipulate + the Haskell AST will need to take this change into account. diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst index 9eaf63ed80..13c04f7d98 100644 --- a/docs/users_guide/using-warnings.rst +++ b/docs/users_guide/using-warnings.rst @@ -1652,6 +1652,13 @@ of ``-W(no-)*``. Will raise two warnings because ``Zero`` and ``Succ`` are not written as ``'Zero`` and ``'Succ``. + This also applies to list literals since 9.4. For example: :: + + type L = [Int, Char, Bool] + + will raise a warning, because ``[Int, Char, Bool]`` is a promoted list + which lacks a tick. + .. ghc-flag:: -Wunused-binds :shortdesc: warn about bindings that are unused. Alias for :ghc-flag:`-Wunused-top-binds`, :ghc-flag:`-Wunused-local-binds` and |