This was reverted authored by Ryan Scott's avatar Ryan Scott
...@@ -7,19 +7,6 @@ This guide summarises the changes you may need to make to your code to migrate f ...@@ -7,19 +7,6 @@ This guide summarises the changes you may need to make to your code to migrate f
## Compiler changes ## Compiler changes
### TH-spliced code can emit pattern-match warnings
In previous versions of GHC, code that was spliced in from Template Haskell would have any pattern match–related warnings suppressed. However, this [ has been changed](https://ghc.haskell.org/trac/ghc/ticket/14843) in GHC 8.6, so now warnings *will* be emitted from TH-spliced code. For instance, the following code:
```
{-# LANGUAGE TemplateHaskell #-}$([d| sketchy ::Bool->Int
sketchy True=42|])
```
Would not emit any warnings when compiled with `-Wincomplete-patterns` on GHC 8.4 and earlier, but will emit a warning on GHC 8.6 due to `sketchy` not matching on `False`.
--- ---
## Library changes ## Library changes
... ...
......