- , property ( RFC1123.fromAscii "Sun, 06 Nov 1994 08:49:37 GMT"
- ≡ Right referenceZonedTime )
-
- , property ( "Sun, 06 Nov 1994 08:49:37 GMT"
- ≡ RFC1123.toAscii referenceZonedTime )
-
- , property $ \zt → Right zt ≡ RFC1123.fromAscii (RFC1123.toAscii zt)
+ , property ( fromAttempt (ca (Tagged "Sun, 06 Nov 1994 08:49:37 GMT" ∷ Tagged RFC1123 Ascii))
+ ≡ Just referenceZonedTime
+ )
+
+ , property ( (Tagged "Sun, 06 Nov 1994 08:49:37 GMT" ∷ Tagged RFC1123 Ascii)
+ ≡ cs referenceZonedTime
+ )
+
+ , property $ \zt → Just zt ≡ fromAttempt (ca (cs (zt ∷ ZonedTime)
+ ∷ Tagged RFC1123 Ascii))
+
+ -- HTTP
+ , property $ \ut → Just ut ≡ fromAttempt (ca (cs ut ∷ Tagged HTTP Ascii) ∷ Attempt UTCTime)
+ , property $ \ut → Just ut ≡ fromAttempt (ca (retagHTTP (cs (ut2lt ut) ∷ Tagged Asctime Ascii)))
+ , property $ \ut → Just ut ≡ fromAttempt (ca (retagHTTP (cs (ut2zt ut) ∷ Tagged RFC733 Ascii)))
+ , property $ \ut → Just ut ≡ fromAttempt (ca (retagHTTP (cs (ut2zt ut) ∷ Tagged RFC1123 Ascii)))