on master help sign in
A few doc improvements
ed85672Bryan O'Sullivan
Data/Aeson/Types/Internal.hs+4−1
@@ -295,6 +295,7 @@ data Value = Object !Object
295-- | An encoding of a JSON value.
295-- | An encoding of a JSON value.
296newtype Encoding = Encoding {
296newtype Encoding = Encoding {
297 fromEncoding :: Builder
297 fromEncoding :: Builder
298+ -- ^ Acquire the underlying bytestring builder.
298 } deriving (Monoid)
299 } deriving (Monoid)
299
300
300instance Show Encoding where
301instance Show Encoding where
@@ -323,7 +324,8 @@ instance Monoid Series where
323 Value c -> Encoding (char7 ',') <> c
324 Value c -> Encoding (char7 ',') <> c
324
325
325-- | A newtype wrapper for 'UTCTime' that uses the same non-standard
326-- | A newtype wrapper for 'UTCTime' that uses the same non-standard
326−-- serialization format as Microsoft .NET, whose @System.DateTime@
327+-- serialization format as Microsoft .NET, whose
328+-- <https://msdn.microsoft.com/en-us/library/system.datetime(v=vs.110).aspx @System.DateTime@>
327-- type is by default serialized to JSON as in the following example:
329-- type is by default serialized to JSON as in the following example:
328--
330--
329-- > /Date(1302547608878)/
331-- > /Date(1302547608878)/
@@ -331,6 +333,7 @@ instance Monoid Series where
331-- The number represents milliseconds since the Unix epoch.
333-- The number represents milliseconds since the Unix epoch.
332newtype DotNetTime = DotNetTime {
334newtype DotNetTime = DotNetTime {
333 fromDotNetTime :: UTCTime
335 fromDotNetTime :: UTCTime
336+ -- ^ Acquire the underlying value.
334 } deriving (Eq, Ord, Read, Show, Typeable, FormatTime)
337 } deriving (Eq, Ord, Read, Show, Typeable, FormatTime)
335
338
336instance NFData Value where
339instance NFData Value where