From fb819c7f223632dd5baadebbfb6ad6732458390d Mon Sep 17 00:00:00 2001 From: Hendrik Jaeger Date: Tue, 24 Dec 2013 00:09:24 +0100 Subject: 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 --- Diddo/Entry.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Diddo/Entry.hs (limited to 'Diddo/Entry.hs') 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] + -- cgit v1.2.3