File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ flag pedantic
3535
3636common warnings
3737 ghc-options :
38+ -Werror=incomplete-patterns
3839 -Wall
3940 -Wincomplete-uni-patterns
4041 -Wunused-packages
@@ -43,6 +44,7 @@ common warnings
4344 -fno-ignore-asserts
4445
4546library
47+ import : warnings
4648 default-language : GHC2021
4749 build-depends :
4850 , aeson
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ tcIfaceId = fmap getIfaceId . tcIfaceDecl False <=< unmangle_decl_name
202202 name' <- newIfaceName (mkVarOcc $ getOccString name)
203203 pure $ ifid{ ifName = name' }
204204 | otherwise = pure ifid
205+ unmangle_decl_name _ifid = error $ " tcIfaceId: got non IfaceId: "
205206 -- invariant: 'IfaceId' is always a 'IfaceId' constructor
206207 getIfaceId (AnId identifier) = identifier
207208 getIfaceId _ = error " tcIfaceId: got non Id"
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ instance NFData Unlinked where
6060 rnf (DotA f) = rnf f
6161 rnf (DotDLL f) = rnf f
6262 rnf (BCOs a b) = seqCompiledByteCode a `seq` liftRnf rwhnf b
63+ rnf _ = error " rnf: not implemented for Unlinked"
6364instance Show PackageFlag where show = unpack . printOutputable
6465instance Show InteractiveImport where show = unpack . printOutputable
6566instance Show PackageName where show = unpack . printOutputable
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ import Numeric.Natural
4141data Log
4242 = LogShake Shake. Log
4343 | LogFileStore FileStore. Log
44- | LogOpenTextDocument ! Uri
4544 | LogOpenedTextDocument ! Uri
4645 | LogModifiedTextDocument ! Uri
4746 | LogSavedTextDocument ! Uri
You can’t perform that action at this time.
0 commit comments