packages feed

ghc-tags-plugin 0.2.0.0 → 0.2.1.0

raw patch · 3 files changed

+8/−9 lines, 3 filesdep −unixsetup-changedPVP ok

version bump matches the API change (PVP)

Dependencies removed: unix

API changes (from Hackage documentation)

Files

+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
ghc-tags-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.4 name:                ghc-tags-plugin-version:             0.2.0.0+version:             0.2.1.0 synopsis:            A compiler plugin which generates tags file from GHC parsed syntax tree. description:   A [GHC compiler plugin](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/extending_ghc.html?highlight=compiler%20plugin#compiler-plugins)@@ -54,9 +54,6 @@                        text             ^>=1.2,                         ghc-tags-core--  if !os(windows)-    build-depends:     unix              >=2.7.2.2 && < 2.8    default-language:    Haskell2010   ghc-options:         -Wall
lib/Plugin/GhcTags.hs view
@@ -34,8 +34,8 @@ #if !defined(mingw32_HOST_OS) import           Foreign.C.Types (CInt (..)) import           Foreign.C.Error (throwErrnoIfMinus1_)-import           System.Posix.Types (Fd (..))-import           System.Posix.IO (handleToFd)+import           GHC.IO.FD (FD (..))+import           GHC.IO.Handle.FD (handleToFd) #endif  import           Options.Applicative.Types (ParserFailure (..))@@ -430,11 +430,11 @@ #if !defined(mingw32_HOST_OS) hDataSync ::  Handle -> IO () hDataSync h = do-    fd <- handleToFd h-    throwErrnoIfMinus1_ "ghc-tags-plugin" (c_fdatasync fd)+    FD { fdFD } <- handleToFd h+    throwErrnoIfMinus1_ "ghc-tags-plugin" (c_fdatasync fdFD)  foreign import ccall safe "fdatasync"-    c_fdatasync :: Fd -> IO CInt +    c_fdatasync :: CInt -> IO CInt  #else hDataSync :: Handle -> IO () hDataSync _ = pure ()