Warn against incomplete patterns

Summary:
Added GHC option to warn against incomplete patterns.
This is useful to drive the implementation for new languages, and make sure we're not missing anything.

Reviewed By: haoxuany

Differential Revision: D7782889

fbshipit-source-id: 09d92ca37974eed56a22c0edb9e8f74412f7e3f6
This commit is contained in:
Julien Odent 2018-04-26 16:18:43 -07:00 committed by Facebook Github Bot
parent b4c0f6ebd6
commit 94a0fb3f63

View File

@ -883,14 +883,14 @@ test-suite duckling-test
, Duckling.Volume.TR.Tests
, Duckling.Volume.Tests
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wincomplete-patterns
default-language: Haskell2010
default-extensions: OverloadedStrings
executable duckling-regen-exe
main-is: RegenMain.hs
hs-source-dirs: exe
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wincomplete-patterns
other-modules: Duckling.Ranking.Train
, Duckling.Ranking.Generate
build-depends: duckling