We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e13a1 commit a82ab44Copy full SHA for a82ab44
src/Data/Thyme/Clock.hs
@@ -140,6 +140,13 @@ picosecondsToDiffTime = review picoseconds
140
-- 'unUTCTime' = 'view' 'utcTime'
141
-- @
142
--
143
+-- With @{-# LANGUAGE ViewPatterns #-}@, you can write: e.g.
144
+--
145
+-- @
146
+-- f :: 'UTCTime' -> ('Day', 'DiffTime')
147
+-- f ('unUTCTime' -> 'UTCView' day dt) = (day, dt)
148
149
150
-- For GHC 7.8 or later, there is also the pattern synonym
151
-- @<Data-Thyme-Clock.html#v:UTCTime UTCTime>@.
152
{-# INLINE unUTCTime #-}
0 commit comments