[commit: packages/time] master: Document that the show instance for UTCTime is elsewhere. (5bcf96f)

git at git.haskell.org git at git.haskell.org
Sun Dec 20 07:56:04 UTC 2015


Repository : ssh://git@git.haskell.org/time

On branch  : master
Link       : http://git.haskell.org/packages/time.git/commitdiff/5bcf96f4c0f5755a110e7ef6ae3ab54b42a1e96e

>---------------------------------------------------------------

commit 5bcf96f4c0f5755a110e7ef6ae3ab54b42a1e96e
Author: Tom Ellis <tom-2013 at purelyagile.com>
Date:   Wed Dec 31 13:05:27 2014 +0000

    Document that the show instance for UTCTime is elsewhere.


>---------------------------------------------------------------

5bcf96f4c0f5755a110e7ef6ae3ab54b42a1e96e
 lib/Data/Time/Clock/UTC.hs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/Data/Time/Clock/UTC.hs b/lib/Data/Time/Clock/UTC.hs
index eff7f4d..0c0a7d3 100644
--- a/lib/Data/Time/Clock/UTC.hs
+++ b/lib/Data/Time/Clock/UTC.hs
@@ -28,6 +28,9 @@ import Data.Data
 -- | This is the simplest representation of UTC.
 -- It consists of the day number, and a time offset from midnight.
 -- Note that if a day has a leap second added to it, it will have 86401 seconds.
+--
+-- For the 'Show' instance of 'UTCTime' import @Data.Time@ or
+-- @Data.Time.LocalTime at .
 data UTCTime = UTCTime {
     -- | the day
     utctDay :: Day,



More information about the ghc-commits mailing list