packages feed

historian 0.0 → 0.0.1

raw patch · 2 files changed

+3/−3 lines, 2 filesdep ~regex-posix

Dependency ranges changed: regex-posix

Files

historian.cabal view
@@ -1,5 +1,5 @@ Name:           historian-Version:        0.0+Version:        0.0.1 Cabal-Version:  >= 1.2 Synopsis:       Extract the interesting bits from shell history Description:    Extract interesting commands and add them to a text file.@@ -26,7 +26,7 @@                     process >= 1 && < 2,                     directory >= 1 && < 2,                     filepath >= 1 && < 2,-                    regex-posix >= 0.94 && < 0.95,+                    regex-posix >= 0.93 && < 0.95,                     regex-compat >= 0.92 && < 0.93,                     containers >= 0.1 && < 0.3 
historian.hs view
@@ -45,5 +45,5 @@         history <- readFile $ histfile         let interesting = map head . group . sort . extractInteresting boring . lines $ history         boring `seq` (appendFile fn . unlines . map ("> " ++) $ interesting)-        interesting `seq` writeFile histfile "# history has been rewritten"+        interesting `seq` writeFile histfile "# history has been rewritten\n"         rawSystem editor [fn]