From bb3a7d0a5b8cfc458dda415858aeb61a1c3ab98b Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Sat, 6 Nov 2021 17:36:35 +0000 Subject: [PATCH] Remove unnecessary `Typeable` instances --- brittany.cabal | 1 - src/Language/Haskell/Brittany/Internal/Types.hs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/brittany.cabal b/brittany.cabal index 5fdcb02..fda241c 100644 --- a/brittany.cabal +++ b/brittany.cabal @@ -85,7 +85,6 @@ library { } ghc-options: { -Weverything - -Wno-deriving-typeable -Wno-incomplete-record-updates -Wno-incomplete-uni-patterns -Wno-missing-deriving-strategies diff --git a/src/Language/Haskell/Brittany/Internal/Types.hs b/src/Language/Haskell/Brittany/Internal/Types.hs index c95aa7c..5e2b1f7 100644 --- a/src/Language/Haskell/Brittany/Internal/Types.hs +++ b/src/Language/Haskell/Brittany/Internal/Types.hs @@ -217,7 +217,7 @@ data ColSig data BrIndent = BrIndentNone | BrIndentRegular | BrIndentSpecial Int - deriving (Eq, Ord, Typeable, Data.Data.Data, Show) + deriving (Eq, Ord, Data.Data.Data, Show) type ToBriDocM = MultiRWSS.MultiRWS '[Config, Anns] -- reader @@ -231,7 +231,7 @@ type ToBriDocC sym c = Located sym -> ToBriDocM c data DocMultiLine = MultiLineNo | MultiLinePossible - deriving (Eq, Typeable) + deriving (Eq) -- isomorphic to BriDocF Identity. Provided for ease of use, as we do a lot -- of transformations on `BriDocF Identity`s and it is really annoying to