From 72f6e21bd64948b1b608eab0a61520e4a51186a9 Mon Sep 17 00:00:00 2001 From: Yoo Chung Date: Tue, 8 Oct 2024 08:15:43 -0400 Subject: [PATCH 1/2] Enable `Unused LANGUAGE pragma` hint for HLint. --- .hlint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.hlint.yaml b/.hlint.yaml index 881dc460..267c9d3b 100644 --- a/.hlint.yaml +++ b/.hlint.yaml @@ -16,7 +16,6 @@ - ignore: {name: "Fuse foldr/map"} # 1 hint - ignore: {name: "Move brackets to avoid $"} # 8 hints - ignore: {name: "Redundant ^."} # 2 hints -- ignore: {name: "Unused LANGUAGE pragma"} # 11 hints - ignore: {name: "Use :"} # 2 hints - ignore: {name: "Use <$"} # 1 hint - ignore: {name: "Use <$>"} # 1 hint From 7c66764e353c3b3c0d39bb4840b555ff5e930085 Mon Sep 17 00:00:00 2001 From: Yoo Chung Date: Tue, 8 Oct 2024 13:57:54 +0000 Subject: [PATCH 2/2] Remove unused LANGUAGE pragmas. --- .../app/Data/ProtoLens/Compiler/Editions/Defaults.hs | 2 -- .../app/Data/ProtoLens/Compiler/Generate/Encoding.hs | 1 - proto-lens-protoc/app/Data/ProtoLens/Compiler/Plugin.hs | 1 - proto-lens-protoc/app/protoc-gen-haskell.hs | 1 - proto-lens-setup/src/Data/ProtoLens/Setup.hs | 1 - proto-lens-tutorial/coffee-order/src/Main.hs | 2 -- proto-lens/src/Data/ProtoLens/Encoding/Bytes.hs | 1 - proto-lens/src/Data/ProtoLens/Encoding/Parser.hs | 2 -- proto-lens/src/Data/ProtoLens/Field.hs | 1 - proto-lens/src/Data/ProtoLens/Service/Types.hs | 1 - 10 files changed, 13 deletions(-) diff --git a/proto-lens-protoc/app/Data/ProtoLens/Compiler/Editions/Defaults.hs b/proto-lens-protoc/app/Data/ProtoLens/Compiler/Editions/Defaults.hs index c62899b4..64514eff 100644 --- a/proto-lens-protoc/app/Data/ProtoLens/Compiler/Editions/Defaults.hs +++ b/proto-lens-protoc/app/Data/ProtoLens/Compiler/Editions/Defaults.hs @@ -4,8 +4,6 @@ -- license that can be found in the LICENSE file or at -- https://developers.google.com/open-source/licenses/bsd -{-# LANGUAGE OverloadedLabels #-} - {-| Module: Data.ProtoLens.Compiler.Editions.Defaults Description: Exports defaults for native features in Protobuf Editions. diff --git a/proto-lens-protoc/app/Data/ProtoLens/Compiler/Generate/Encoding.hs b/proto-lens-protoc/app/Data/ProtoLens/Compiler/Generate/Encoding.hs index bf40c677..ebbdd0bd 100644 --- a/proto-lens-protoc/app/Data/ProtoLens/Compiler/Generate/Encoding.hs +++ b/proto-lens-protoc/app/Data/ProtoLens/Compiler/Generate/Encoding.hs @@ -3,7 +3,6 @@ -- Upstream docs: {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveFunctor #-} -{-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} diff --git a/proto-lens-protoc/app/Data/ProtoLens/Compiler/Plugin.hs b/proto-lens-protoc/app/Data/ProtoLens/Compiler/Plugin.hs index 44753c16..b88c0478 100644 --- a/proto-lens-protoc/app/Data/ProtoLens/Compiler/Plugin.hs +++ b/proto-lens-protoc/app/Data/ProtoLens/Compiler/Plugin.hs @@ -8,7 +8,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedLabels #-} -{-# LANGUAGE OverloadedStrings #-} module Data.ProtoLens.Compiler.Plugin ( ProtoFileName , ProtoFile(..) diff --git a/proto-lens-protoc/app/protoc-gen-haskell.hs b/proto-lens-protoc/app/protoc-gen-haskell.hs index 53347e25..447e191c 100644 --- a/proto-lens-protoc/app/protoc-gen-haskell.hs +++ b/proto-lens-protoc/app/protoc-gen-haskell.hs @@ -7,7 +7,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE PatternSynonyms #-} module Main where import Control.Monad.IO.Class (liftIO) diff --git a/proto-lens-setup/src/Data/ProtoLens/Setup.hs b/proto-lens-setup/src/Data/ProtoLens/Setup.hs index 89fa022c..b2e14079 100644 --- a/proto-lens-setup/src/Data/ProtoLens/Setup.hs +++ b/proto-lens-setup/src/Data/ProtoLens/Setup.hs @@ -14,7 +14,6 @@ -- -- See @README.md@ for instructions on how to use proto-lens with Cabal. {-# LANGUAGE CPP #-} -{-# LANGUAGE BangPatterns #-} module Data.ProtoLens.Setup ( defaultMainGeneratingProtos , defaultMainGeneratingSpecificProtos diff --git a/proto-lens-tutorial/coffee-order/src/Main.hs b/proto-lens-tutorial/coffee-order/src/Main.hs index b0e1b52a..890cea38 100644 --- a/proto-lens-tutorial/coffee-order/src/Main.hs +++ b/proto-lens-tutorial/coffee-order/src/Main.hs @@ -1,7 +1,5 @@ -{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE TypeApplications #-} module Main where diff --git a/proto-lens/src/Data/ProtoLens/Encoding/Bytes.hs b/proto-lens/src/Data/ProtoLens/Encoding/Bytes.hs index 6639ec39..301e36ef 100644 --- a/proto-lens/src/Data/ProtoLens/Encoding/Bytes.hs +++ b/proto-lens/src/Data/ProtoLens/Encoding/Bytes.hs @@ -6,7 +6,6 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} -{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE LambdaCase #-} diff --git a/proto-lens/src/Data/ProtoLens/Encoding/Parser.hs b/proto-lens/src/Data/ProtoLens/Encoding/Parser.hs index d44641aa..dbfdd61c 100644 --- a/proto-lens/src/Data/ProtoLens/Encoding/Parser.hs +++ b/proto-lens/src/Data/ProtoLens/Encoding/Parser.hs @@ -1,6 +1,4 @@ -- | A custom parsing monad, optimized for speed. -{-# LANGUAGE BangPatterns #-} -{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} module Data.ProtoLens.Encoding.Parser diff --git a/proto-lens/src/Data/ProtoLens/Field.hs b/proto-lens/src/Data/ProtoLens/Field.hs index 12277158..fd332328 100644 --- a/proto-lens/src/Data/ProtoLens/Field.hs +++ b/proto-lens/src/Data/ProtoLens/Field.hs @@ -17,7 +17,6 @@ For more information, see