packages feed

hp2pretty 0.10 → 0.10.1

raw patch · 3 files changed

+11/−4 lines, 3 files

Files

NEWS view
@@ -1,3 +1,9 @@+v0.10	2021-02-19	lazy text++Read input twice with Text.Lazy (thanks to David Hewson).+Allows processing huge input, speeds up less huge input too.++ v0.9	2018-08-01	detach  New flags and features:
hp2pretty.cabal view
@@ -1,5 +1,5 @@ Name:                hp2pretty-Version:             0.10+Version:             0.10.1 Synopsis:            generate pretty graphs from heap profiles Description:         hp2pretty is a rewrite of hp2ps, implemented in Haskell, with                      the aims of being maintainable, with more flexible output, and@@ -114,4 +114,4 @@ Source-repository this   type:                git   location:            https://code.mathr.co.uk/hp2pretty.git-  tag:                 v0.10+  tag:                 v0.10.1
src/Graphics.hs view
@@ -1,6 +1,7 @@ module Graphics where -import Data.Text.Lazy (Text, foldl')+import Data.Text.Lazy (Text)+import qualified Data.Text.Lazy as TL (foldl') import Data.Char (ord) import Data.Bits (shiftR) import Data.Int (Int32, Int64)@@ -73,7 +74,7 @@ -- base-4.3.1.0:Data.HashTable (c) The University of Glasgow 2003  hashText :: Int32 -> Text -> Int32-hashText magic = foldl' f golden+hashText magic = TL.foldl' f golden   where f m c = fromIntegral (ord c) * magic + hashInt32 m  hashInt32 :: Int32 -> Int32