packages feed

ghcflags 1.0.1 → 1.0.2

raw patch · 2 files changed

+10/−10 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

GhcFlags/Plugin.hs view
@@ -1,9 +1,9 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE TupleSections #-} --- | A ghc plugin that creates `.ghc.flags` files (and `.ghc.version`) populated---   with the flags that were last used to invoke ghc for some modules, for---   consumption by tools that need to know the build parameters.+-- | A ghc plugin that creates `.ghc.flags` files populated with the flags that+--   were last used to invoke ghc for some modules, for consumption by tools+--   that need to know the build parameters. -- --   https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/extending_ghc.html#compiler-plugins module GhcFlags.Plugin@@ -11,7 +11,6 @@   ) where -import qualified Config as GHC import Control.Exception (finally, onException) import Control.Monad (unless, when) import Control.Monad.IO.Class (MonadIO, liftIO)@@ -46,8 +45,10 @@   unless written write   pure core --- TODO this only supports ghc being called with directories and home modules.--- That means we don't support incremental compilation where ghc is called with+-- TODO support incremental compilation+--+-- This only supports ghc being called with directories and home modules. That+-- means we don't support incremental compilation where ghc is called with -- explicit filenames and dependencies. There are cases where the .ghc.flags may -- get out of date, e.g. adding / removing home modules. To handle those cases -- we need to detect them and write to a different (per-file) .ghc.flags@@ -69,7 +70,6 @@    when enable $ liftIO $ do     traverse_ writeGhcFlags paths-    writeDifferent ".ghc.version" GHC.cProjectVersion  -- Only writes out the file when it will result in changes, and silently fails -- on exceptions because the plugin should never interrupt normal ghc work. The
ghcflags.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name:          ghcflags-version:       1.0.1+version:       1.0.2 synopsis:      Dump the ghc flags during compilation license:       BSD-2-Clause license-file:  LICENSE@@ -8,10 +8,10 @@ maintainer:    Tseen She copyright:     2019 Tseen She bug-reports:   https://gitlab.com/tseenshe/hsinspect/merge_requests-tested-with:   GHC ^>=8.4.4 || ^>=8.6.5+tested-with:   GHC ^>=8.4.4 || ^>=8.6.5 || ^>=8.8.1 category:      Building description:-  Generate @.ghc.flags@ and @.ghc.version@ files during compilation+  Generate @.ghc.flags@ files during compilation  source-repository head   type:     git