]> git.wincent.com - docvim.git/commitdiff
Don't use Werror 0.3.0.0
authorGreg Hurrell <greg@hurrell.net>
Sun, 12 Jun 2016 07:18:25 +0000 (00:18 -0700)
committerGreg Hurrell <greg@hurrell.net>
Sun, 12 Jun 2016 07:18:25 +0000 (00:18 -0700)
Otherwise, I can't upload a package:

> Invalid package
>
> 'ghc-options: -Wall -Werror' makes the package very easy to break with future
> GHC versions because new GHC versions often add new warnings. Use just
> 'ghc-options: -Wall' instead. Alternatively, if you want to use this, make it
> conditional based on a Cabal configuration flag (with 'manual: True' and
> 'default: False') and enable that flag during development.

docvim.cabal

index 18bc853e4b0c5b58b81c78fd28e76e93395211a1..3e8e1ea981884fb965ebf3d41c99248351408c88 100644 (file)
@@ -71,7 +71,7 @@ executable docvim
   build-depends:       base >=4.8 && <4.9
                ,       docvim
 
-  ghc-options:         -W -Wall -Werror
+  ghc-options:         -W -Wall
 
   -- Directories containing source files.
   hs-source-dirs:      src
@@ -119,14 +119,14 @@ library
                  ,  Text.Docvim.Visitor.Section
                  ,  Text.Docvim.Visitor.Symbol
                  ,  Paths_docvim
-  ghc-options:      -W -Wall -Werror
+  ghc-options:      -W -Wall
   hs-source-dirs:   lib
 
 test-suite hlint
   build-depends:    base
                ,    hlint
   default-language: Haskell2010
-  ghc-options:      -W -Wall -Werror
+  ghc-options:      -W -Wall
   hs-source-dirs:   tests
   main-is:          HLint.hs
   type:             exitcode-stdio-1.0
@@ -172,7 +172,7 @@ test-suite tasty
                ,     Text.Docvim.Visitor.Section
                ,     Text.Docvim.Visitor.Symbol
   default-language: Haskell2010
-  ghc-options:      -W -Wall -Werror
+  ghc-options:      -W -Wall
   hs-source-dirs:   tests
                 ,   lib
   main-is:          Tasty.hs