Add -Werror, fix unused import warnings
Build and Test / build-and-test (push) Successful in 4m51s

- Add -Werror to ghc-options for both library and test suite
- Remove unused Data.Maybe import from Internal.hs
- Remove unused Data.Int and Data.Text imports from test files
This commit is contained in:
2026-05-30 09:57:14 -04:00
parent 469527f03c
commit e995844bc5
5 changed files with 2 additions and 6 deletions
+2 -1
View File
@@ -34,7 +34,7 @@ library
, text , text
, bytestring , bytestring
default-language: Haskell2010 default-language: Haskell2010
ghc-options: -Wall ghc-options: -Wall -Werror
test-suite spec test-suite spec
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
@@ -56,3 +56,4 @@ test-suite spec
, hspec , hspec
, text , text
default-language: Haskell2010 default-language: Haskell2010
ghc-options: -Wall -Werror
-1
View File
@@ -5,7 +5,6 @@ module Orville.SQLite.Internal (
) where ) where
import Control.Monad (forM) import Control.Monad (forM)
import Data.Maybe (fromMaybe)
import qualified Data.Text as T import qualified Data.Text as T
import qualified Database.SQLite3 as SQLite3 import qualified Database.SQLite3 as SQLite3
import Database.SQLite3.Direct (columnCount) import Database.SQLite3.Direct (columnCount)
-1
View File
@@ -7,7 +7,6 @@ module Test.AutoMigration where
import Control.Exception (SomeException, try) import Control.Exception (SomeException, try)
import Control.Monad.IO.Class (liftIO) import Control.Monad.IO.Class (liftIO)
import Data.Int (Int64)
import Test.Hspec import Test.Hspec
import Orville.SQLite import Orville.SQLite
-2
View File
@@ -4,8 +4,6 @@
module Test.EntityOperations where module Test.EntityOperations where
import Control.Monad.IO.Class (liftIO) import Control.Monad.IO.Class (liftIO)
import Data.Int (Int64)
import Data.Text (Text)
import Test.Hspec import Test.Hspec
import Orville.SQLite import Orville.SQLite
-1
View File
@@ -4,7 +4,6 @@
module Test.SqlMarshaller where module Test.SqlMarshaller where
import Data.Int (Int64)
import qualified Data.Text as T import qualified Data.Text as T
import Test.Hspec import Test.Hspec