on master help sign in
Simplify patterns.

--HG-- extra : convert_revision : a07441ff3e1c24daec41b833c1ae27a4febc5c6b

commitc26e139dcfab4cd2ea9e606c576d8c69166d6d31 authorBryan O'Sullivan <bos@serpentine.com> dateSat 23 May 2009, 01:46 (17 years ago) parentc7f71ab
1 file changed+2−2
Data/Text/Lazy/Encoding/Fusion.hs+2−2
Data/Text/Lazy/Encoding/Fusion.hs+2−2
@@ -56,9 +56,9 @@ streamUtf8 bs0 = Stream next (bs0 :!: S N N N N :!: 0) unknownLength
5656 {-# INLINE next #-}
5757 next st@(bs :!: s :!: i) =
5858 case s of
59− S (J a) N N N | U8.validate1 a ->
59+ S (J a) N _ _ | U8.validate1 a ->
6060 Yield (unsafeChr8 a) es
61− S (J a) (J b) N N | U8.validate2 a b ->
61+ S (J a) (J b) N _ | U8.validate2 a b ->
6262 Yield (U8.chr2 a b) es
6363 S (J a) (J b) (J c) N | U8.validate3 a b c ->
6464 Yield (U8.chr3 a b c) es