weigh 0.0.0 → 0.0.1
raw patch · 3 files changed
+15/−4 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- CHANGELOG +5/−0
- src/Weigh/GHCStats.hs +8/−3
- weigh.cabal +2/−1
+ CHANGELOG view
@@ -0,0 +1,5 @@+0.0.1:+ * Support GHC 8.++0.0.0:+ * First release.
src/Weigh/GHCStats.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE TupleSections #-} {-# LANGUAGE TemplateHaskell #-}+{-# LANGUAGE CPP #-} -- | Calculate the size of GHC.Stats statically. @@ -17,7 +18,11 @@ ghcStatsSizeInBytes = $(do info <- reify ''GHC.Stats.GCStats case info of+#if __GLASGOW_HASKELL__ >= 800+ TyConI (DataD _ _ _ _ [RecC _ fields] _) ->+#else TyConI (DataD _ _ _ [RecC _ fields] _) ->+#endif do total <- fmap (foldl' (+) headerSize) (mapM fieldSize fields)@@ -43,6 +48,6 @@ map (,8) [''Int64,''Int32,''Int8,''Int16,''Double] _ ->- fail "Unexpected shape of GCStats data type. \- \Please report this as a bug, this function \- \needs to be updated to the newer GCStats type.")+ fail ("Unexpected shape of GCStats data type. " +++ "Please report this as a bug, this function " +++ "needs to be updated to the newer GCStats type."))
weigh.cabal view
@@ -1,5 +1,5 @@ name: weigh-version: 0.0.0+version: 0.0.1 synopsis: Measure allocations of a Haskell functions/values description: Please see README.md homepage: https://github.com/fpco/weigh#readme@@ -11,6 +11,7 @@ category: Web build-type: Simple extra-source-files: README.md+ CHANGELOG cabal-version: >=1.10 flag weigh-maps