packages feed

fusion-plugin 0.1.0 → 0.1.1

raw patch · 3 files changed

+10/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+## 0.1.1++### Bug Fixes++- Now compiles successfully on old GHC versions till 7.10.3.+ ## 0.1.0  * Initial release
fusion-plugin.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.2  name:                fusion-plugin-version:             0.1.0+version:             0.1.1 synopsis:            GHC plugin to make stream fusion more predictable. description:   This plugin provides the programmer with a way to annotate certain
src/Fusion/Plugin.hs view
@@ -100,6 +100,8 @@ -- by inspecting the core generated by GHC and by inspection testing for the -- presence of the stream state constructors. +#if MIN_VERSION_ghc(8,6,0)+ ------------------------------------------------------------------------------- -- Set always INLINE on a binder -------------------------------------------------------------------------------@@ -283,7 +285,6 @@     go (todo:todos) = todo : go todos  install :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo]-#if MIN_VERSION_ghc(8,6,0) install _ todos = do     dflags <- getDynFlags     let doMarkInline opt failIt transform =@@ -321,6 +322,7 @@             , doMarkInline ReportWarn False False             ] #else+install :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo] install _ todos = do     putMsgS "Warning! fusion-plugin does nothing on ghc versions prior to 8.6"     return todos