@@ -113,10 +113,14 @@ prop_T_snoc x = (++ [x]) `eqP` (unpackT . (flip T.snoc) x)
113113prop_TL_snoc x = (++ [x]) `eqP` (unpackT . (flip TL.snoc) x)
114114prop_T_append s = (s++) `eqP` (unpackT . T.append (T.pack s))
115115prop_T_appendS s = (s++) `eqP` (unpackT . S.unstream . S.append (S.stream (T.pack s)) . S.stream)
116+
117+uncons (x:xs) = Just (x,xs)
118+uncons _ = Nothing
119+
116120prop_T_uncons s = uncons `eqP` (fmap (second unpackT) . T.uncons)
117− where uncons (x:xs) = Just (x,xs)
118− uncons _ = Nothing
119− types = s :: String
121+ where types = s :: String
122+prop_TL_uncons s = uncons `eqP` (fmap (second unpackT) . TL.uncons)
123+ where types = s :: String
120124prop_T_head = head `eqEP` T.head
121125prop_T_last = last `eqEP` T.last
122126prop_T_lastS = last `eqEP` (S.last . S.stream)
@@ -290,6 +294,7 @@ tests = [
290294 ("prop_T_append", mytest prop_T_append),
291295 ("prop_T_appendS", mytest prop_T_appendS),
292296 ("prop_T_uncons", mytest prop_T_uncons),
297+ ("prop_TL_uncons", mytest prop_TL_uncons),
293298 ("prop_T_head", mytest prop_T_head),
294299 ("prop_T_last", mytest prop_T_last),
295300 ("prop_T_lastS", mytest prop_T_lastS),