Skip to content

Commit

Permalink
Follow hlint suggestion: unused LANGUAGE pragma. (haskell#1504)
Browse files Browse the repository at this point in the history
* Follow hlint suggestion: unused LANGUAGE pragma.

* Ignore within modules to pass linting and pass tests.
  • Loading branch information
philderbeast authored Jul 19, 2022
1 parent 06b1f62 commit 90c3824
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
- ignore: {name: "Redundant return"} # 1 hint
- ignore: {name: "Replace case with fromMaybe"} # 2 hints
- ignore: {name: "Replace case with maybe"} # 4 hints
- ignore: {name: "Unused LANGUAGE pragma"} # 11 hints
- ignore: {name: "Use $>"} # 4 hints
- ignore: {name: "Use ++"} # 3 hints
- ignore: {name: "Use :"} # 4 hints
Expand Down Expand Up @@ -58,6 +57,9 @@
- ignore: {name: "Use tuple-section"} # 3 hints
- ignore: {name: "Use unless"} # 1 hint
- ignore: {name: "Use void"} # 1 hint
# Ignore within modules where following hlint or adding an HLint annotation
# would alter the expected test output.
- ignore: {name: "Unused LANGUAGE pragma", within: [QuasiExpr, TH, Ticket112]}
# Module names (not all unique) where CPP can be used
- extensions:
- name: CPP
Expand Down
1 change: 0 additions & 1 deletion haddock-api/src/Haddock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -Wwarn #-}
-----------------------------------------------------------------------------
-- |
Expand Down
1 change: 0 additions & 1 deletion hoogle-test/src/Bug806/Bug806.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
module Bug806 where
Expand Down
3 changes: 1 addition & 2 deletions html-test/src/BundledPatterns2.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DataKinds, GADTs, KindSignatures, PatternSynonyms, TypeOperators,
ViewPatterns #-}
{-# LANGUAGE DataKinds, GADTs, KindSignatures, PatternSynonyms #-}
module BundledPatterns2 (Vec((:>), Empty), RTree(..)) where

import GHC.TypeLits
Expand Down
2 changes: 1 addition & 1 deletion html-test/src/DefaultAssociatedTypes.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DefaultSignatures, TypeFamilies #-}
{-# LANGUAGE TypeFamilies #-}

module DefaultAssociatedTypes where

Expand Down
2 changes: 1 addition & 1 deletion html-test/src/GadtConstructorArgs.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE GADTs, PatternSynonyms #-}
{-# LANGUAGE GADTs #-}

module GadtConstructorArgs (Boo(..)) where

Expand Down
2 changes: 1 addition & 1 deletion html-test/src/Operators.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE PatternSynonyms, TypeOperators, TypeFamilies, MultiParamTypeClasses, GADTs #-}
{-# LANGUAGE PatternSynonyms, TypeOperators, TypeFamilies, GADTs #-}
{-# LANGUAGE FunctionalDependencies #-}

-- | Test operators with or without fixity declarations
Expand Down
2 changes: 1 addition & 1 deletion html-test/src/QuasiQuote.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
{-# LANGUAGE QuasiQuotes #-}

-- example taken from the GHC documentation
module QuasiQuote where
Expand Down
2 changes: 1 addition & 1 deletion latex-test/src/GadtConstructorArgs/GadtConstructorArgs.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE GADTs, PatternSynonyms #-}
{-# LANGUAGE GADTs #-}

module GadtConstructorArgs (Boo(..)) where

Expand Down

0 comments on commit 90c3824

Please sign in to comment.