derive-storable-plugin 0.2.3.1 → 0.2.3.2
raw patch · 3 files changed
+16/−8 lines, 3 filesdep ~basedep ~ghcdep ~ghciPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, ghc, ghci
API changes (from Hackage documentation)
Files
ChangeLog.md view
@@ -1,6 +1,10 @@ # Revision history for generic-storable-plugin -## 0.2.3.0 -- 2020-03-23+## 0.2.3.2 -- 2020-12-04++* Compiler marked as pure.++## 0.2.3.1 -- 2020-11-28 * Support for derive-storable 0.3.0.0
derive-storable-plugin.cabal view
@@ -2,7 +2,7 @@ -- further documentation, see http://haskell.org/cabal/users-guide/ name: derive-storable-plugin-version: 0.2.3.1+version: 0.2.3.2 synopsis: GHC core plugin supporting the derive-storable package. description: The package helps derive-storable package in forcing compile time evaluation of sizes, alignments and offsets.@@ -16,7 +16,7 @@ build-type: Simple extra-source-files: ChangeLog.md README.md cabal-version: >=1.10-tested-with: GHC==8.0.2, GHC==8.2.2, GHC==8.4.2, GHC==8.6.5, GHC==8.8.1+tested-with: GHC==8.2.2, GHC==8.4.2, GHC==8.6.5, GHC==8.8.1, GHC==8.10.2 Flag sumtypes Description: Use sumtypes within benchmark and tests.@@ -32,7 +32,7 @@ , Foreign.Storable.Generic.Plugin.Internal.Predicates , Foreign.Storable.Generic.Plugin.Internal.Types other-extensions: DeriveGeneric, DeriveAnyClass, PatternGuards- build-depends: base >=4.9 && <4.14, ghc >= 8.0 && <8.9, ghci >= 8.0 && <8.9, derive-storable >= 0.3 && < 0.4+ build-depends: base >=4.10 && <5, ghc >= 8.2 && < 8.12, ghci >= 8.2 && < 8.12, derive-storable >= 0.3 && < 0.4 hs-source-dirs: src default-language: Haskell2010 @@ -42,7 +42,7 @@ default-language: Haskell2010 other-modules: TestCases, TestCasesOptimized Main-is: Main.hs- build-depends: base >= 4.9 && < 4.14, deepseq, criterion >= 1.1.0+ build-depends: base >= 4.10 && < 5, deepseq, criterion >= 1.1.0 , derive-storable, derive-storable-plugin if flag(sumtypes)@@ -55,9 +55,9 @@ c-sources: test/Basic/cbits/TestCases.c main-is: MemoryCSpec.hs other-modules: TestCases - build-depends: base >= 4.8 && < 5, derive-storable, derive-storable-plugin+ build-depends: base >= 4.10 && < 5, derive-storable, derive-storable-plugin , hspec >= 2.4, QuickCheck >= 2.10- , ghc >= 8.0 && <8.9, ghci >= 8.0 && <8.9+ , ghc >= 8.2 && < 8.12, ghci >= 8.2 && < 8.12 default-language: Haskell2010 if flag(sumtypes)
src/Foreign/Storable/Generic/Plugin.hs view
@@ -15,6 +15,7 @@ * add @\{\-\# OPTIONS_GHC -fplugin Foreign.Storable.Generic.Plugin \#\-\}@ to the compiled module. -}+{-# LANGUAGE CPP #-} module Foreign.Storable.Generic.Plugin (plugin) where import GhcPlugins@@ -31,7 +32,10 @@ -- | The plugin itself. plugin :: Plugin plugin = defaultPlugin {- installCoreToDos = install+ installCoreToDos = install,+#if MIN_VERSION_GLASGOW_HASKELL(8,6,1,0)+ pluginRecompile = \_ -> pure NoForceRecompile+#endif } defFlags = Flags Some False