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

Commit 96a60e2

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

File tree

8 files changed

+10
-1
lines changed

8 files changed

+10
-1
lines changed

haddock-api/haddock-api.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ library
7070
-Wredundant-constraints
7171
-Wnoncanonical-monad-instances
7272
-Wmissing-home-modules
73+
-Wincomplete-uni-patterns
74+
-Wincomplete-record-updates
7375

7476

7577
exposed-modules:

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
@@ -2,6 +2,7 @@
22
{-# LANGUAGE TypeFamilies #-}
33
{-# LANGUAGE FlexibleContexts #-}
44
{-# OPTIONS_GHC -fno-warn-orphans #-}
5+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
56
{-# OPTIONS_HADDOCK hide #-}
67
-----------------------------------------------------------------------------
78
-- |

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
@@ -3,6 +3,7 @@
33
{-# LANGUAGE ScopedTypeVariables #-}
44
{-# LANGUAGE TypeApplications #-}
55
{-# LANGUAGE RecordWildCards #-}
6+
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
67

78
module Haddock.Interface.Specialize
89
( specializeInstHead

haddock.cabal

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

6767
-- haddock typically only supports a single GHC major version
6868
build-depends:

0 commit comments

Comments
 (0)