git.iko.soy/purescript-intl
on 25de48b help sign in
src/Data/Intl/DateTimeFormat.purs+3−6
since splitsnapshots
unifiedsplit
@@ -200,7 +200,6 @@ foreign import createDateTimeFormatImpl
200-- | ``` purescript
200-- | ``` purescript
201-- | import Data.Variant (inj)
201-- | import Data.Variant (inj)
202-- |
202-- |
203−-- | fmtHourMinute = F DateTimeFormat
204-- | fmtHourMinute = createDateTimeFormat locale opts
203-- | fmtHourMinute = createDateTimeFormat locale opts
205-- | where
204-- | where
206-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
205-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
@@ -214,7 +213,6 @@ foreign import createDateTimeFormatImpl
214-- | (HourMinute {hour: TwoDigit, minute: TwoDigit}))
213-- | (HourMinute {hour: TwoDigit, minute: TwoDigit}))
215-- |
214-- |
216-- |
215-- |
217−-- | fmtDate :: F DateTimeFormat
218-- | fmtDate = createDateTimeFormat locale opts
216-- | fmtDate = createDateTimeFormat locale opts
219-- | wher
217-- | wher
220-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
218-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
@@ -256,7 +254,6 @@ foreign import createDateTimeFormatImpl
256-- | instance formatComponentEraYear :: FormatComponent EraYear where
254-- | instance formatComponentEraYear :: FormatComponent EraYear where
257-- | formatComponent = genericFormatComponent
255-- | formatComponent = genericFormatComponent
258-- |
256-- |
259−-- | fmtEraYear :: F DateTimeFormat
260-- | fmtEraYear = createDateTimeFormat locales opts
257-- | fmtEraYear = createDateTimeFormat locales opts
261-- | where
258-- | where
262-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
259-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
@@ -293,9 +290,9 @@ createDateTimeFormat ls opts =
293
290
294-- | Examples
291-- | Examples
295-- | ``` purescript
292-- | ``` purescript
296−-- | formatJSDate (either (const "") id $ runExcept fmtHourMinute) date -- "12:00"
293+-- | formatJSDate fmtHourMinute date -- "12:00"
297−-- | formatJSDate (either (const "") id $ fmtDate) date -- "Tue, January 2, 2018, 12:00:00 PM"
294+-- | formatJSDate fmtDate -- "Tue, January 2, 2018, 12:00:00 PM"
298−-- | formatJSDate (either (const "") id $ fmtEraYear) date -- "2018 Anno Domini"
295+-- | formatJSDate fmtEraYear -- "2018 Anno Domini"
299-- | ```
296-- | ```
300foreign import formatJSDate :: DateTimeFormat -> JSDate -> String
297foreign import formatJSDate :: DateTimeFormat -> JSDate -> String
301
298