diff options
author | Hendrik Jaeger <henk@frustcomp> | 2013-12-24 00:09:24 +0100 |
---|---|---|
committer | Hendrik Jaeger <henk@frustcomp> | 2013-12-24 00:09:24 +0100 |
commit | fb819c7f223632dd5baadebbfb6ad6732458390d (patch) | |
tree | cc79195f74bb2521469296d52a49e2830039d914 /Diddo | |
parent | 7bc2168552de76fa7c985b65608199296b6ff55f (diff) |
On branch master
Changes to be committed:
new file: Diddo/Entry.hs
new file: HMSTime.hs
modified: diddohs.hs
CHANGED: imports cleanup
CHANGED: code for HMSTime and DiddoEntry exported to modules
Diffstat (limited to 'Diddo')
-rw-r--r-- | Diddo/Entry.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Diddo/Entry.hs b/Diddo/Entry.hs new file mode 100644 index 0000000..f6eda25 --- /dev/null +++ b/Diddo/Entry.hs @@ -0,0 +1,17 @@ +module Diddo.Entry +( DiddoEntry(DiddoEntry, start, finish, delta, entry) +) where + +import HMSTime( HMSTime ) +import Data.List( intercalate ) + +data DiddoEntry = DiddoEntry + { start :: String + , finish :: String + , delta :: HMSTime + , entry :: String + } + +instance Show DiddoEntry where + show (DiddoEntry start finish delta entry) = intercalate ";" [start,finish,(show delta),entry] + |