git.iko.soy/purescript-intl
on c121fe3 help sign in
1 file changed+5−8
since splitsnapshots
unifiedsplit
src/Data/Intl/DateTimeFormat.purs+5−8
src/Data/Intl/DateTimeFormat.purs+5−8
@@ -200,7 +200,6 @@ foreign import createDateTimeFormatImpl
200200-- | ``` purescript
201201-- | import Data.Variant (inj)
202202-- |
203−-- | fmtHourMinute = F DateTimeFormat
204203-- | fmtHourMinute = createDateTimeFormat locale opts
205204-- | where
206205-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
@@ -209,12 +208,11 @@ foreign import createDateTimeFormatImpl
209208-- | , timeZone: (Just (TimeZone "Europe/London"))
210209-- | , hour12: Just false
211210-- | , formatMatcher: Nothing
211+-- | , inj (SProxy :: SProxy "hourMinute")
212+-- | (HourMinute {hour: TwoDigit, minute: TwoDigit})
212213-- | }
213−-- | (inj (SProxy :: SProxy "hourMinute")
214−-- | (HourMinute {hour: TwoDigit, minute: TwoDigit}))
215214-- |
216215-- |
217−-- | fmtDate :: F DateTimeFormat
218216-- | fmtDate = createDateTimeFormat locale opts
219217-- | wher
220218-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
@@ -256,7 +254,6 @@ foreign import createDateTimeFormatImpl
256254-- | instance formatComponentEraYear :: FormatComponent EraYear where
257255-- | formatComponent = genericFormatComponent
258256-- |
259−-- | fmtEraYear :: F DateTimeFormat
260257-- | fmtEraYear = createDateTimeFormat locales opts
261258-- | where
262259-- | locale = inj (SProxy :: SProxy "locale") "en-GB"
@@ -293,9 +290,9 @@ createDateTimeFormat ls opts =
293290
294291-- | Examples
295292-- | ``` purescript
296−-- | formatJSDate (either (const "") id $ runExcept fmtHourMinute) date -- "12:00"
297−-- | formatJSDate (either (const "") id $ fmtDate) date -- "Tue, January 2, 2018, 12:00:00 PM"
298−-- | formatJSDate (either (const "") id $ fmtEraYear) date -- "2018 Anno Domini"
293+-- | formatJSDate fmtHourMinute date -- "12:00"
294+-- | formatJSDate fmtDate -- "Tue, January 2, 2018, 12:00:00 PM"
295+-- | formatJSDate fmtEraYear -- "2018 Anno Domini"
299296-- | ```
300297foreign import formatJSDate :: DateTimeFormat -> JSDate -> String
301298