group-by-date 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+14/−3 lines, 2 filesdep ~unix-compat
Dependency ranges changed: unix-compat
Files
- group-by-date.cabal +3/−3
- src/Main.hs +11/−0
group-by-date.cabal view
@@ -1,5 +1,5 @@ Name: group-by-date-Version: 0.1.0.1+Version: 0.1.0.2 License: BSD3 License-File: LICENSE Author: Henning Thielemann <haskell@henning-thielemann.de>@@ -49,7 +49,7 @@ Build-Type: Simple Source-Repository this- Tag: 0.1.0.1+ Tag: 0.1.0.2 Type: darcs Location: http://hub.darcs.net/thielema/group-by-date/ @@ -63,7 +63,7 @@ filemanip >=0.3.5 && <0.4, pathtype >=0.8 && <0.9, time >=1.5 && <1.9,- unix-compat >=0.3 && <0.5,+ unix-compat >=0.3 && <0.6, explicit-exception >=0.1 && <0.2, transformers >=0.2 && <0.6, utility-ht >=0.0.1 && <0.1,
src/Main.hs view
@@ -20,6 +20,17 @@ import Text.Printf (printf, ) +{-+parseCard :: String -> Exc.Exceptional String Int+parseCard str =+ case reads str of+ [(n,"")] ->+ if n>=0+ then return n+ else Exc.throw $ "negative number: " ++ str+ _ -> Exc.throw $ "could not parse cardinal " ++ show str+-}+ data Flags = Flags {