Skip to content

Commit ab54635

Browse files
authored
Merge pull request #10634 from cabalism/hlint/unused-lang-pragma
Remove unused LANGUAGE pragmas
2 parents ae3f4d9 + fe4617f commit ab54635

File tree

107 files changed

+28
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+28
-176
lines changed

.hlint.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
- ignore: {name: "Redundant return"} # 9 hints
3030
- ignore: {name: "Replace case with fromMaybe"} # 6 hints
3131
- ignore: {name: "Replace case with maybe"} # 10 hints
32-
- ignore: {name: "Unused LANGUAGE pragma"} # 168 hints
3332
- ignore: {name: "Use $>"} # 5 hints
3433
- ignore: {name: "Use ++"} # 4 hints
3534
- ignore: {name: "Use :"} # 30 hints
@@ -96,9 +95,21 @@
9695

9796
- arguments:
9897
- --ignore-glob=Cabal-syntax/src/Distribution/Fields/Lexer.hs
98+
- --ignore-glob=cabal-testsuite/PackageTests/BuildWays/q/app/Main.hs
9999
- --ignore-glob=cabal-testsuite/PackageTests/CmmSources/src/Demo.hs
100100
- --ignore-glob=cabal-testsuite/PackageTests/CmmSourcesDyn/src/Demo.hs
101101
- --ignore-glob=cabal-testsuite/PackageTests/CmmSourcesExe/src/Demo.hs
102+
- --ignore-glob=cabal-testsuite/PackageTests/NewBuild/CmdRun/Script/script.hs
103+
- --ignore-glob=cabal-testsuite/PackageTests/NewBuild/CmdRun/ScriptLiterate/script.lhs
104+
- --ignore-glob=cabal-testsuite/PackageTests/Regression/T5309/lib/Bio/Character/Exportable/Class.hs
105+
- --ignore-glob=cabal-testsuite/PackageTests/SetupHooks/SetupHooksC2HsRules/SetupHooks.hs
106+
- --ignore-glob=cabal-testsuite/PackageTests/SetupHooks/SetupHooksDuplicateRuleId/SetupHooks.hs
107+
- --ignore-glob=cabal-testsuite/PackageTests/SetupHooks/SetupHooksInvalidRuleOutputIndex/SetupHooks.hs
108+
- --ignore-glob=cabal-testsuite/PackageTests/SetupHooks/SetupHooksRuleOrdering/SetupHooks.hs
109+
- --ignore-glob=cabal-testsuite/PackageTests/SetupHooks/SetupHooksUnusedRules/SetupHooks.hs
110+
- --ignore-glob=cabal-testsuite/PackageTests/TemplateHaskell/dynamic/TH.hs
111+
- --ignore-glob=cabal-testsuite/PackageTests/TemplateHaskell/profiling/TH.hs
112+
- --ignore-glob=cabal-testsuite/PackageTests/TemplateHaskell/vanilla/TH.hs
102113
- --ignore-glob=templates/Paths_pkg.template.hs
103114
- --ignore-glob=templates/SPDX.LicenseExceptionId.template.hs
104115
- --ignore-glob=templates/SPDX.LicenseId.template.hs

Cabal-QuickCheck/src/Test/QuickCheck/Instances/Cabal.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE TypeOperators #-}
32
{-# LANGUAGE FlexibleInstances #-}
43
{-# OPTIONS_GHC -fno-warn-orphans #-}
54
module Test.QuickCheck.Instances.Cabal () where

Cabal-described/src/Distribution/Utils/GrammarRegex.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE DeriveFoldable #-}
2-
{-# LANGUAGE DeriveFunctor #-}
31
{-# LANGUAGE DeriveTraversable #-}
42
{-# LANGUAGE OverloadedStrings #-}
53
{-# LANGUAGE ScopedTypeVariables #-}

Cabal-hooks/src/Distribution/Simple/SetupHooks.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
{-# LANGUAGE CPP #-}
33
{-# LANGUAGE DerivingStrategies #-}
44
{-# LANGUAGE DuplicateRecordFields #-}
5-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
65
{-# LANGUAGE RankNTypes #-}
7-
{-# LANGUAGE RecursiveDo #-}
86
{-# LANGUAGE StaticPointers #-}
9-
{-# LANGUAGE TupleSections #-}
10-
{-# LANGUAGE OverloadedStrings #-}
117

128
{-|
139
Module: Distribution.Simple.SetupHooks

Cabal-syntax/src/Distribution/Backpack.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{-# LANGUAGE DeriveDataTypeable #-}
22
{-# LANGUAGE DeriveGeneric #-}
33
{-# LANGUAGE FlexibleInstances #-}
4-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
5-
{-# LANGUAGE PatternGuards #-}
64
{-# LANGUAGE RankNTypes #-}
75

86
-- | This module defines the core data types for Backpack. For more

Cabal-syntax/src/Distribution/Compat/Binary.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE PatternSynonyms #-}
32

43
module Distribution.Compat.Binary
54
( decodeOrFailIO

Cabal-syntax/src/Distribution/Compiler.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{-# LANGUAGE DeriveDataTypeable #-}
2-
{-# LANGUAGE DeriveFoldable #-}
3-
{-# LANGUAGE DeriveFunctor #-}
42
{-# LANGUAGE DeriveGeneric #-}
53
{-# LANGUAGE DeriveTraversable #-}
64

Cabal-syntax/src/Distribution/FieldGrammar/Newtypes.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{-# LANGUAGE DataKinds #-}
22
{-# LANGUAGE FlexibleContexts #-}
33
{-# LANGUAGE FlexibleInstances #-}
4-
{-# LANGUAGE FunctionalDependencies #-}
54
{-# LANGUAGE InstanceSigs #-}
5+
{-# LANGUAGE MultiParamTypeClasses #-}
66
{-# LANGUAGE OverloadedStrings #-}
77
{-# LANGUAGE RankNTypes #-}
88
{-# LANGUAGE ScopedTypeVariables #-}

Cabal-syntax/src/Distribution/Fields/Field.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE DeriveFoldable #-}
3-
{-# LANGUAGE DeriveFunctor #-}
42
{-# LANGUAGE DeriveTraversable #-}
53
{-# LANGUAGE StandaloneDeriving #-}
64

Cabal-syntax/src/Distribution/Fields/Parser.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE MultiParamTypeClasses #-}
33
{-# LANGUAGE OverloadedStrings #-}
4-
{-# LANGUAGE PatternGuards #-}
54

65
-----------------------------------------------------------------------------
76

0 commit comments

Comments
 (0)