summaryrefslogtreecommitdiff
path: root/Diddo/Entry.hs
diff options
context:
space:
mode:
authorHendrik Jaeger <henk@frustcomp>2013-12-24 00:09:24 +0100
committerHendrik Jaeger <henk@frustcomp>2013-12-24 00:09:24 +0100
commitfb819c7f223632dd5baadebbfb6ad6732458390d (patch)
treecc79195f74bb2521469296d52a49e2830039d914 /Diddo/Entry.hs
parent7bc2168552de76fa7c985b65608199296b6ff55f (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/Entry.hs')
-rw-r--r--Diddo/Entry.hs17
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]
+