Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 7936692

Browse files
authored
Enable two warnings (#1245) (#1268)
because they will be soon be added to -Wall. See https://gitlab.haskell.org/ghc/ghc/-/issues/15656
1 parent ef0375d commit 7936692

File tree

8 files changed

+10
-2
lines changed

8 files changed

+10
-2
lines changed

haddock-api/haddock-api.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ library
6565

6666
hs-source-dirs: src
6767

68-
ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2
68+
ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -Wincomplete-uni-patterns -Wincomplete-record-updates -O2
69+
6970
ghc-options: -Wall
7071
if impl(ghc >= 8.0)
7172
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances

haddock-api/src/Haddock/Backends/Hoogle.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE FlexibleContexts #-}
22
{-# LANGUAGE TypeFamilies #-}
3+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
34
-----------------------------------------------------------------------------
45
-- |
56
-- Module : Haddock.Backends.Hoogle

haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE OverloadedStrings #-}
22
{-# OPTIONS_GHC -fno-warn-orphans #-}
3+
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
34
module Haddock.Backends.Hyperlinker.Parser (parse) where
45

56
import Control.Applicative ( Alternative(..) )

haddock-api/src/Haddock/GhcUtils.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{-# LANGUAGE ScopedTypeVariables #-}
66
{-# LANGUAGE FlexibleContexts #-}
77
{-# OPTIONS_GHC -fno-warn-orphans #-}
8+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
89
{-# OPTIONS_HADDOCK hide #-}
910
-----------------------------------------------------------------------------
1011
-- |

haddock-api/src/Haddock/Interface/AttachInstances.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{-# LANGUAGE MagicHash, BangPatterns #-}
22
{-# LANGUAGE TypeFamilies #-}
3+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
4+
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
35
-----------------------------------------------------------------------------
46
-- |
57
-- Module : Haddock.Interface.AttachInstances

haddock-api/src/Haddock/Interface/Rename.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE RecordWildCards #-}
22
{-# LANGUAGE TypeFamilies #-}
3+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
34
----------------------------------------------------------------------------
45
-- |
56
-- Module : Haddock.Interface.Rename

haddock-api/src/Haddock/Interface/Specialize.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{-# LANGUAGE TypeApplications #-}
55
{-# LANGUAGE RecordWildCards #-}
66
{-# LANGUAGE GADTs #-}
7+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
78

89
module Haddock.Interface.Specialize
910
( specializeInstHead

haddock.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ executable haddock
6060
default-language: Haskell2010
6161
main-is: Main.hs
6262
hs-source-dirs: driver
63-
ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2 -threaded
63+
ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -Wincomplete-uni-patterns -Wincomplete-record-updates -O2 -threaded
6464

6565
-- haddock typically only supports a single GHC major version
6666
build-depends:

0 commit comments

Comments
 (0)