diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-02-21 17:19:07 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-02-24 20:25:06 -0500 |
commit | d0deaaf4241fa236bd8d87abde68a0ad41a7e119 (patch) | |
tree | 34dfe80938a15ca0d6efb19f674ebdda54eecee5 /compiler/GHC/Unit | |
parent | b99646ed23ba75506005025e625edbc9a5cad41b (diff) | |
download | haskell-d0deaaf4241fa236bd8d87abde68a0ad41a7e119.tar.gz |
Suggestions due to hlint
It turns out this job hasn't been running for quite a while (perhaps
ever) so there are quite a few failures when running the linter locally.
Diffstat (limited to 'compiler/GHC/Unit')
-rw-r--r-- | compiler/GHC/Unit/Finder.hs | 1 | ||||
-rw-r--r-- | compiler/GHC/Unit/Module/Deps.hs | 4 | ||||
-rw-r--r-- | compiler/GHC/Unit/Module/Env.hs | 1 | ||||
-rw-r--r-- | compiler/GHC/Unit/Module/Graph.hs | 1 | ||||
-rw-r--r-- | compiler/GHC/Unit/Module/ModSummary.hs | 1 |
5 files changed, 2 insertions, 6 deletions
diff --git a/compiler/GHC/Unit/Finder.hs b/compiler/GHC/Unit/Finder.hs index c7b6a2eb65..c3c517cb18 100644 --- a/compiler/GHC/Unit/Finder.hs +++ b/compiler/GHC/Unit/Finder.hs @@ -5,7 +5,6 @@ {-# LANGUAGE FlexibleContexts #-} -{-# LANGUAGE MultiWayIf #-} -- | Module finder module GHC.Unit.Finder ( diff --git a/compiler/GHC/Unit/Module/Deps.hs b/compiler/GHC/Unit/Module/Deps.hs index 0da8a06979..c654940730 100644 --- a/compiler/GHC/Unit/Module/Deps.hs +++ b/compiler/GHC/Unit/Module/Deps.hs @@ -400,13 +400,13 @@ it would recompile nearly every module in your project, just to update this info Now, we are a bit more careful about what we store and explicitly store transitive information only if it is really needed. -# Direct Information +~ Direct Information * dep_direct_mods - Directly imported home package modules * dep_direct_pkgs - Directly imported packages * dep_plgins - Directly used plugins -# Transitive Information +~ Transitive Information Some features of the compiler require transitive information about what is currently being compiled, so that is explicitly stored separately in the form they need. diff --git a/compiler/GHC/Unit/Module/Env.hs b/compiler/GHC/Unit/Module/Env.hs index 0c8016e17e..e8307229f7 100644 --- a/compiler/GHC/Unit/Module/Env.hs +++ b/compiler/GHC/Unit/Module/Env.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE GeneralizedNewtypeDeriving #-} -- | Module environment module GHC.Unit.Module.Env ( -- * Module mappings diff --git a/compiler/GHC/Unit/Module/Graph.hs b/compiler/GHC/Unit/Module/Graph.hs index 2a791b42b5..f71c71347f 100644 --- a/compiler/GHC/Unit/Module/Graph.hs +++ b/compiler/GHC/Unit/Module/Graph.hs @@ -1,6 +1,5 @@ {-# LANGUAGE LambdaCase #-} {-# LANGUAGE RecordWildCards #-} -{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} module GHC.Unit.Module.Graph diff --git a/compiler/GHC/Unit/Module/ModSummary.hs b/compiler/GHC/Unit/Module/ModSummary.hs index 3fd972632f..6c0ff55627 100644 --- a/compiler/GHC/Unit/Module/ModSummary.hs +++ b/compiler/GHC/Unit/Module/ModSummary.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE LambdaCase #-} {-# LANGUAGE TupleSections #-} -- | A ModSummary is a node in the compilation manager's dependency graph |