on master help sign in
Change warning options in streamly and streamly-core packages
261a7e0Ranjeet Kumar Ranjan
core/src/Streamly/Internal/Data/Time/Clock/Type.hsc+1−1
@@ -142,7 +142,7 @@ data Clock
142 | RealtimeCoarse
142 | RealtimeCoarse
143#endif
143#endif
144
144
145− deriving (Eq, Enum, Generic, Read, Show, Typeable)
145+ deriving (Eq, Enum, Generic, Read, Show)
146
146
147-------------------------------------------------------------------------------
147-------------------------------------------------------------------------------
148-- Translate the Haskell "Clock" type to C
148-- Translate the Haskell "Clock" type to C
core/streamly-core.cabal+13−12
@@ -117,16 +117,19 @@ common compile-options
117 if flag(use-c-malloc)
117 if flag(use-c-malloc)
118 cpp-options: -DUSE_C_MALLOC
118 cpp-options: -DUSE_C_MALLOC
119
119
120− ghc-options: -Wall
120+ ghc-options: -Weverything
121− -Wcompat
121+ -Wno-implicit-prelude
122− -Wunrecognised-warning-flags
122+ -Wno-missing-deriving-strategies
123− -Widentities
123+ -Wno-missing-exported-signatures
124− -Wincomplete-record-updates
124+ -Wno-missing-import-lists
125− -Wincomplete-uni-patterns
125+ -Wno-missing-local-signatures
126− -Wredundant-constraints
126+ -Wno-missing-safe-haskell-mode
127− -Wnoncanonical-monad-instances
127+ -Wno-missed-specialisations
128− -Wmissing-export-lists
128+ -Wno-all-missed-specialisations
129+ -Wno-monomorphism-restriction
130+ -Wno-prepositive-qualified-module
131+ -Wno-unsafe
129− -Rghc-timing
132+ -Rghc-timing
130
133
131 if flag(has-llvm)
134 if flag(has-llvm)
132 ghc-options: -fllvm
135 ghc-options: -fllvm
@@ -353,12 +356,10 @@ library
353 base >= 4.9 && < 4.18
356 base >= 4.9 && < 4.18
354 , containers >= 0.5 && < 0.7
357 , containers >= 0.5 && < 0.7
355 , deepseq >= 1.4.1 && < 1.5
358 , deepseq >= 1.4.1 && < 1.5
356− , directory >= 1.2.2 && < 1.4
357 , exceptions >= 0.8 && < 0.11
359 , exceptions >= 0.8 && < 0.11
358 , ghc-prim >= 0.2 && < 0.10
360 , ghc-prim >= 0.2 && < 0.10
359 , mtl >= 2.2 && < 2.3
361 , mtl >= 2.2 && < 2.3
360 , transformers >= 0.4 && < 0.7
362 , transformers >= 0.4 && < 0.7
361− , filepath >= 1.2.0.0 && < 1.5
362
363
363 , fusion-plugin-types >= 0.1 && < 0.2
364 , fusion-plugin-types >= 0.1 && < 0.2
364
365
src/Streamly/Internal/Data/SmallArray/Type.hs−3
@@ -73,11 +73,8 @@ import qualified GHC.ST as GHCST
73import Text.ParserCombinators.ReadP
73import Text.ParserCombinators.ReadP
74
74
75data SmallArray a = SmallArray (SmallArray# a)
75data SmallArray a = SmallArray (SmallArray# a)
76− deriving Typeable
77
76
78data SmallMutableArray s a = SmallMutableArray (SmallMutableArray# s a)
77data SmallMutableArray s a = SmallMutableArray (SmallMutableArray# s a)
79− deriving Typeable
80−
81
78
82-- | Create a new small mutable array.
79-- | Create a new small mutable array.
83newSmallArray
80newSmallArray
src/Streamly/Internal/Unicode/Char.hs+1−3
@@ -29,8 +29,6 @@ where
29#include "inline.hs"
29#include "inline.hs"
30
30
31import Data.Char (isAsciiUpper, isAsciiLower, chr, ord)
31import Data.Char (isAsciiUpper, isAsciiLower, chr, ord)
32−import Data.Typeable (Typeable)
33−
34import Unicode.Char (DecomposeMode(..))
32import Unicode.Char (DecomposeMode(..))
35import Streamly.Internal.Data.Stream.IsStream.Type
33import Streamly.Internal.Data.Stream.IsStream.Type
36 (IsStream, fromStreamD, toStreamD)
34 (IsStream, fromStreamD, toStreamD)
@@ -85,7 +83,7 @@ data NormalizationMode
85 | NFKD -- ^ Compatibility decomposition.
83 | NFKD -- ^ Compatibility decomposition.
86 | NFC -- ^ Canonical decomposition followed by canonical composition.
84 | NFC -- ^ Canonical decomposition followed by canonical composition.
87 | NFKC -- ^ Compatibility decomposition followed by canonical composition.
85 | NFKC -- ^ Compatibility decomposition followed by canonical composition.
88− deriving (Eq, Show, Enum, Typeable)
86+ deriving (Eq, Show, Enum)
89
87
90-------------------------------------------------------------------------------
88-------------------------------------------------------------------------------
91-- Normalization combinators
89-- Normalization combinators
streamly.cabal+12−11
@@ -330,16 +330,18 @@ common compile-options
330 if flag(use-c-malloc)
330 if flag(use-c-malloc)
331 cpp-options: -DUSE_C_MALLOC
331 cpp-options: -DUSE_C_MALLOC
332
332
333− ghc-options: -Wall
333+ ghc-options: -Weverything
334− -Wcompat
334+ -Wno-implicit-prelude
335− -Wunrecognised-warning-flags
335+ -Wno-missing-deriving-strategies
336− -Widentities
336+ -Wno-missing-exported-signatures
337− -Wincomplete-record-updates
337+ -Wno-missing-import-lists
338− -Wincomplete-uni-patterns
338+ -Wno-missing-local-signatures
339− -Wredundant-constraints
339+ -Wno-missing-safe-haskell-mode
340− -Wnoncanonical-monad-instances
340+ -Wno-missed-specialisations
341− -Wmissing-export-lists
341+ -Wno-all-missed-specialisations
342− -Rghc-timing
342+ -Wno-monomorphism-restriction
343+ -Wno-prepositive-qualified-module
344+ -Wno-unsafe
343
345
344 if flag(has-llvm)
346 if flag(has-llvm)
345 ghc-options: -fllvm
347 ghc-options: -fllvm
@@ -669,7 +671,6 @@ library
669 , ghc-prim >= 0.2 && < 0.10
671 , ghc-prim >= 0.2 && < 0.10
670 , mtl >= 2.2 && < 2.3
672 , mtl >= 2.2 && < 2.3
671 , transformers >= 0.4 && < 0.7
673 , transformers >= 0.4 && < 0.7
672− , filepath >= 1.2.0.0 && < 1.5
673 , template-haskell >= 2.13 && < 2.20
674 , template-haskell >= 2.13 && < 2.20
674
675
675 -- The core streamly package
676 -- The core streamly package