timeplot 1.0.17 → 1.0.18
raw patch · 2 files changed
+2/−2 lines, 2 files
Files
- Tools/TimePlot/Source.hs +1/−1
- timeplot.cabal +1/−1
Tools/TimePlot/Source.hs view
@@ -8,7 +8,7 @@ import Tools.TimePlot.Types readSource :: (Show t) => (B.ByteString -> Maybe (t,B.ByteString)) -> FilePath -> IO [(t, InEvent)] -readSource readTime f = (map parseLine . filter (not . B.null) . blines) `fmap` B.readFile f +readSource readTime f = (map parseLine . filter (not . B.null) . blines) `fmap` (if f == "-" then B.getContents else B.readFile f) where blines = map pruneLF . B.split '\n' pruneLF b | not (B.null b) && (B.last b == '\r') = B.init b
timeplot.cabal view
@@ -1,5 +1,5 @@ name: timeplot-version: 1.0.17+version: 1.0.18 cabal-version: >=1.6 build-type: Simple license: BSD3