mirror of
https://github.com/facebook/duckling.git
synced 2024-09-11 21:27:13 +03:00
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:
parent
b4c0f6ebd6
commit
94a0fb3f63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user