Browse Source

Make no-warn-missing-methods a test-all flag.

tags/v0.4.4.4
Julian K. Arni 6 years ago
parent
commit
c60588ade1
  1. 3
      scripts/test-all.sh
  2. 1
      servant-client/test/Servant/ClientSpec.hs
  3. 1
      servant-docs/example/greet.hs
  4. 1
      servant-docs/test/Servant/DocsSpec.hs
  5. 1
      servant-examples/auth-combinator/auth-combinator.hs
  6. 1
      servant-examples/tutorial/T1.hs
  7. 1
      servant-examples/tutorial/T2.hs
  8. 1
      servant-examples/tutorial/T3.hs
  9. 1
      servant-examples/tutorial/T4.hs
  10. 1
      servant-examples/tutorial/T5.hs
  11. 1
      servant-examples/tutorial/T8.hs
  12. 1
      servant-examples/tutorial/T9.hs
  13. 1
      servant-examples/wai-middleware/wai-middleware.hs
  14. 1
      servant-server/example/greet.hs
  15. 1
      servant/test/Servant/API/ContentTypesSpec.hs
  16. 1
      stack.yaml

3
scripts/test-all.sh

@ -17,7 +17,8 @@ set -o errexit
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR"/lib/common.sh
GHC_FLAGS="-Werror"
# TODO: Remove missing-methods after https://github.com/bos/aeson/issues/290
GHC_FLAGS="-Werror -fno-warn-missing-methods"
prepare_sandbox () {
$CABAL sandbox init

1
servant-client/test/Servant/ClientSpec.hs

@ -9,7 +9,6 @@
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fcontext-stack=100 #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module Servant.ClientSpec where

1
servant-docs/example/greet.hs

@ -5,7 +5,6 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
import Control.Lens
import Data.Aeson
import Data.Proxy

1
servant-docs/test/Servant/DocsSpec.hs

@ -5,7 +5,6 @@
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module Servant.DocsSpec where
import Control.Lens

1
servant-examples/auth-combinator/auth-combinator.hs

@ -5,7 +5,6 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
import Data.Aeson
import Data.ByteString (ByteString)

1
servant-examples/tutorial/T1.hs

@ -2,7 +2,6 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T1 where
import Data.Aeson

1
servant-examples/tutorial/T2.hs

@ -2,7 +2,6 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T2 where
import Data.Aeson

1
servant-examples/tutorial/T3.hs

@ -2,7 +2,6 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T3 where
import Control.Monad.Trans.Either

1
servant-examples/tutorial/T4.hs

@ -5,7 +5,6 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T4 where
import Data.Aeson

1
servant-examples/tutorial/T5.hs

@ -3,7 +3,6 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T5 where
import Control.Monad.IO.Class

1
servant-examples/tutorial/T8.hs

@ -2,7 +2,6 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T8 where
import Control.Monad.Trans.Either

1
servant-examples/tutorial/T9.hs

@ -4,7 +4,6 @@
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module T9 where
import Control.Applicative

1
servant-examples/wai-middleware/wai-middleware.hs

@ -2,7 +2,6 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
import Data.Aeson
import Data.Text
import GHC.Generics

1
servant-server/example/greet.hs

@ -4,7 +4,6 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
import Data.Aeson
import Data.Monoid

1
servant/test/Servant/API/ContentTypesSpec.hs

@ -4,7 +4,6 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
module Servant.API.ContentTypesSpec where

1
stack.yaml

@ -11,4 +11,5 @@ packages:
extra-deps:
- engine-io-wai-1.0.2
- attoparsec-0.13.0.1
- aeson-0.10.0.0
resolver: nightly-2015-07-24

Loading…
Cancel
Save