flexible-defaults 0.0.1.0 → 0.0.1.1
raw patch · 2 files changed
+6/−7 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
flexible-defaults.cabal view
@@ -1,5 +1,5 @@ name: flexible-defaults-version: 0.0.1.0+version: 0.0.1.1 stability: provisional cabal-version: >= 1.6@@ -39,7 +39,8 @@ extra-source-files: examples/*.hs tested-with: GHC == 6.8.3, GHC == 6.10.4, GHC == 6.12.3,- GHC == 7.0.4, GHC == 7.2.1, GHC == 7.2.2+ GHC == 7.0.4, GHC == 7.2.1, GHC == 7.2.2,+ GHC == 7.4.2, GHC == 7.6.1 source-repository head type: git
src/Language/Haskell/TH/FlexibleDefaults/DSL.hs view
@@ -70,7 +70,7 @@ requireFunction :: String -> Defaults s () requireFunction f = addImplSpecs f [] -#if !defined(__GLASGOW_HASKELL__) || __GLASGOW_HASKELL__ < 706+#if !MIN_VERSION_template_haskell(2,8,0) data Inline = NoInline | Inline | Inlinable deriving (Eq, Show) #endif@@ -88,13 +88,11 @@ ReaderT (const (addImplSpec fName (ImplSpec s deps (applyInline fName inl dec)))) applyInline :: String -> Maybe Inline -> Q [Dec] -> Q [Dec]-#if defined(__GLASGOW_HASKELL__)-#if __GLASGOW_HASKELL__ >= 706+#if MIN_VERSION_template_haskell(2,8,0) applyInline n (Just inl) = fmap (PragmaD (InlineP (mkName n) inl FunLike AllPhases) :)-#elif __GLASGOW_HASKELL__ >= 612+#elif MIN_VERSION_template_haskell(2,4,0) applyInline n (Just inl) | inl /= Inlinable = fmap (PragmaD (InlineP (mkName n) (InlineSpec (inl == Inline) False Nothing)) :)-#endif #endif applyInline _ _ = id