on master help sign in
Change warning options in streamly and streamly-core packages

Fix review comments

commit261a7e06fa1cdd8825b417d3ba250d60171e55e7 authorRanjeet Kumar Ranjan <ranjeetr@composewell.com> dateThu 11 Aug 2022, 11:53 (4 years ago) parent6dd122a
5 files changed+27−30
core/src/Streamly/Internal/Data/Time/Clock/Type.hsc+1−1 core/streamly-core.cabal+13−12 src/Streamly/Internal/Data/SmallArray/Type.hs−3 src/Streamly/Internal/Unicode/Char.hs+1−3 streamly.cabal+12−11
core/src/Streamly/Internal/Data/Time/Clock/Type.hsc+1−1
@@ -142,7 +142,7 @@ data Clock
142142 | RealtimeCoarse
143143#endif
144144
145− deriving (Eq, Enum, Generic, Read, Show, Typeable)
145+ deriving (Eq, Enum, Generic, Read, Show)
146146
147147-------------------------------------------------------------------------------
148148-- Translate the Haskell "Clock" type to C
core/streamly-core.cabal+13−12
@@ -117,16 +117,19 @@ common compile-options
117117 if flag(use-c-malloc)
118118 cpp-options: -DUSE_C_MALLOC
119119
120− ghc-options: -Wall
121− -Wcompat
122− -Wunrecognised-warning-flags
123− -Widentities
124− -Wincomplete-record-updates
125− -Wincomplete-uni-patterns
126− -Wredundant-constraints
127− -Wnoncanonical-monad-instances
128− -Wmissing-export-lists
129− -Rghc-timing
120+ ghc-options: -Weverything
121+ -Wno-implicit-prelude
122+ -Wno-missing-deriving-strategies
123+ -Wno-missing-exported-signatures
124+ -Wno-missing-import-lists
125+ -Wno-missing-local-signatures
126+ -Wno-missing-safe-haskell-mode
127+ -Wno-missed-specialisations
128+ -Wno-all-missed-specialisations
129+ -Wno-monomorphism-restriction
130+ -Wno-prepositive-qualified-module
131+ -Wno-unsafe
132+ -Rghc-timing
130133
131134 if flag(has-llvm)
132135 ghc-options: -fllvm
@@ -353,12 +356,10 @@ library
353356 base >= 4.9 && < 4.18
354357 , containers >= 0.5 && < 0.7
355358 , deepseq >= 1.4.1 && < 1.5
356− , directory >= 1.2.2 && < 1.4
357359 , exceptions >= 0.8 && < 0.11
358360 , ghc-prim >= 0.2 && < 0.10
359361 , mtl >= 2.2 && < 2.3
360362 , transformers >= 0.4 && < 0.7
361− , filepath >= 1.2.0.0 && < 1.5
362363
363364 , fusion-plugin-types >= 0.1 && < 0.2
364365
src/Streamly/Internal/Data/SmallArray/Type.hs−3
@@ -73,11 +73,8 @@ import qualified GHC.ST as GHCST
7373import Text.ParserCombinators.ReadP
7474
7575data SmallArray a = SmallArray (SmallArray# a)
76− deriving Typeable
7776
7877data SmallMutableArray s a = SmallMutableArray (SmallMutableArray# s a)
79− deriving Typeable
80−
8178
8279-- | Create a new small mutable array.
8380newSmallArray
src/Streamly/Internal/Unicode/Char.hs+1−3
@@ -29,8 +29,6 @@ where
2929#include "inline.hs"
3030
3131import Data.Char (isAsciiUpper, isAsciiLower, chr, ord)
32−import Data.Typeable (Typeable)
33−
3432import Unicode.Char (DecomposeMode(..))
3533import Streamly.Internal.Data.Stream.IsStream.Type
3634 (IsStream, fromStreamD, toStreamD)
@@ -85,7 +83,7 @@ data NormalizationMode
8583 | NFKD -- ^ Compatibility decomposition.
8684 | NFC -- ^ Canonical decomposition followed by canonical composition.
8785 | NFKC -- ^ Compatibility decomposition followed by canonical composition.
88− deriving (Eq, Show, Enum, Typeable)
86+ deriving (Eq, Show, Enum)
8987
9088-------------------------------------------------------------------------------
9189-- Normalization combinators
streamly.cabal+12−11
@@ -330,16 +330,18 @@ common compile-options
330330 if flag(use-c-malloc)
331331 cpp-options: -DUSE_C_MALLOC
332332
333− ghc-options: -Wall
334− -Wcompat
335− -Wunrecognised-warning-flags
336− -Widentities
337− -Wincomplete-record-updates
338− -Wincomplete-uni-patterns
339− -Wredundant-constraints
340− -Wnoncanonical-monad-instances
341− -Wmissing-export-lists
342− -Rghc-timing
333+ ghc-options: -Weverything
334+ -Wno-implicit-prelude
335+ -Wno-missing-deriving-strategies
336+ -Wno-missing-exported-signatures
337+ -Wno-missing-import-lists
338+ -Wno-missing-local-signatures
339+ -Wno-missing-safe-haskell-mode
340+ -Wno-missed-specialisations
341+ -Wno-all-missed-specialisations
342+ -Wno-monomorphism-restriction
343+ -Wno-prepositive-qualified-module
344+ -Wno-unsafe
343345
344346 if flag(has-llvm)
345347 ghc-options: -fllvm
@@ -669,7 +671,6 @@ library
669671 , ghc-prim >= 0.2 && < 0.10
670672 , mtl >= 2.2 && < 2.3
671673 , transformers >= 0.4 && < 0.7
672− , filepath >= 1.2.0.0 && < 1.5
673674 , template-haskell >= 2.13 && < 2.20
674675
675676 -- The core streamly package