From 6e41e5f5dedd5fd5b18e4589af65e36c46215abb Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 1 Oct 2020 10:30:12 -0400 Subject: [PATCH 1/2] Remove note about specific effect type --- src/Data/JSDate.purs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/JSDate.purs b/src/Data/JSDate.purs index 8ee816d..88573a7 100644 --- a/src/Data/JSDate.purs +++ b/src/Data/JSDate.purs @@ -153,8 +153,8 @@ foreign import dateMethod :: forall a. Fn2 String JSDate a -- | behaviour for a given string. The RFC2822 and ISO8601 date string formats -- | should parse consistently. -- | --- | The `LOCALE` effect is present here as if no time zone is specified in the --- | string the current locale's time zone will be used instead. +-- | This function is effectful in the sense that if no time zone is specified +-- | in the string the current locale's time zone will be used instead. foreign import parse :: String -> Effect JSDate -- | Gets a `JSDate` value for the date and time according to the current From 228625757da27db6efa560a167674986495012e5 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 1 Oct 2020 10:42:45 -0400 Subject: [PATCH 2/2] Simplify wording --- src/Data/JSDate.purs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/JSDate.purs b/src/Data/JSDate.purs index 88573a7..f13a1c0 100644 --- a/src/Data/JSDate.purs +++ b/src/Data/JSDate.purs @@ -153,8 +153,8 @@ foreign import dateMethod :: forall a. Fn2 String JSDate a -- | behaviour for a given string. The RFC2822 and ISO8601 date string formats -- | should parse consistently. -- | --- | This function is effectful in the sense that if no time zone is specified --- | in the string the current locale's time zone will be used instead. +-- | This function is effectful because if no time zone is specified in the +-- | string the current locale's time zone will be used instead. foreign import parse :: String -> Effect JSDate -- | Gets a `JSDate` value for the date and time according to the current