Permalink
Browse files

Fix a compilation error: Data.Time.Clock doesn't export the Show inst…

…ance for UTCTime.
  • Loading branch information...
1 parent 10dce98 commit 74c430b95289dc95f10cb70655cddd35a3fbdb94 @mike-burns committed Jan 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Trajectory/Types.hs
View
@@ -4,6 +4,7 @@ module Trajectory.Types where
import Control.Exception (IOException)
import Data.Data (Typeable, Data)
import Data.Time.Clock (UTCTime(..))
+import Data.Time.LocalTime ()
-- | Errors have been tagged according to their source, so you can more easily
-- dispatch and handle them.
@@ -15,7 +16,8 @@ data Error =
deriving (Show, Eq)
-- | A time type representing Rails' TimeWithZone as its default string.
-newtype TimeWithZone = TimeWithZone UTCTime deriving (Show, Eq, Typeable, Data)
+newtype TimeWithZone = TimeWithZone UTCTime
+ deriving (Show, Eq, Typeable, Data)
-- | A Trajectory story.
data Story = Story {

0 comments on commit 74c430b

Please sign in to comment.