Skip to content
Snippets Groups Projects
Unverified Commit 90c38242 authored by Phil de Joux's avatar Phil de Joux Committed by GitHub
Browse files

Follow hlint suggestion: unused LANGUAGE pragma. (#1504)

* Follow hlint suggestion: unused LANGUAGE pragma.

* Ignore within modules to pass linting and pass tests.
parent 06b1f629
No related branches found
No related tags found
3 merge requests!38Make --no-tmp-comp-dir the default,!37Adapt to latest xhtml version, various optimizations,!31Support HsToken in DataDecl and ClassDecl
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
- ignore: {name: "Redundant return"} # 1 hint - ignore: {name: "Redundant return"} # 1 hint
- ignore: {name: "Replace case with fromMaybe"} # 2 hints - ignore: {name: "Replace case with fromMaybe"} # 2 hints
- ignore: {name: "Replace case with maybe"} # 4 hints - ignore: {name: "Replace case with maybe"} # 4 hints
- ignore: {name: "Unused LANGUAGE pragma"} # 11 hints
- ignore: {name: "Use $>"} # 4 hints - ignore: {name: "Use $>"} # 4 hints
- ignore: {name: "Use ++"} # 3 hints - ignore: {name: "Use ++"} # 3 hints
- ignore: {name: "Use :"} # 4 hints - ignore: {name: "Use :"} # 4 hints
...@@ -58,6 +57,9 @@ ...@@ -58,6 +57,9 @@
- ignore: {name: "Use tuple-section"} # 3 hints - ignore: {name: "Use tuple-section"} # 3 hints
- ignore: {name: "Use unless"} # 1 hint - ignore: {name: "Use unless"} # 1 hint
- ignore: {name: "Use void"} # 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 # Module names (not all unique) where CPP can be used
- extensions: - extensions:
- name: CPP - name: CPP
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-} {-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -Wwarn #-} {-# OPTIONS_GHC -Wwarn #-}
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- | -- |
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE UndecidableInstances #-}
module Bug806 where module Bug806 where
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DataKinds, GADTs, KindSignatures, PatternSynonyms, TypeOperators, {-# LANGUAGE DataKinds, GADTs, KindSignatures, PatternSynonyms #-}
ViewPatterns #-}
module BundledPatterns2 (Vec((:>), Empty), RTree(..)) where module BundledPatterns2 (Vec((:>), Empty), RTree(..)) where
import GHC.TypeLits import GHC.TypeLits
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DefaultSignatures, TypeFamilies #-} {-# LANGUAGE TypeFamilies #-}
module DefaultAssociatedTypes where module DefaultAssociatedTypes where
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE GADTs, PatternSynonyms #-} {-# LANGUAGE GADTs #-}
module GadtConstructorArgs (Boo(..)) where module GadtConstructorArgs (Boo(..)) where
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE PatternSynonyms, TypeOperators, TypeFamilies, MultiParamTypeClasses, GADTs #-} {-# LANGUAGE PatternSynonyms, TypeOperators, TypeFamilies, GADTs #-}
{-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE FunctionalDependencies #-}
-- | Test operators with or without fixity declarations -- | Test operators with or without fixity declarations
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-} {-# LANGUAGE QuasiQuotes #-}
-- example taken from the GHC documentation -- example taken from the GHC documentation
module QuasiQuote where module QuasiQuote where
......
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE GADTs, PatternSynonyms #-} {-# LANGUAGE GADTs #-}
module GadtConstructorArgs (Boo(..)) where module GadtConstructorArgs (Boo(..)) where
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment