@@ -62,7 +62,7 @@ module Data.JSString ( JSString
6262 , minimum
6363
6464 -- * Construction
65-
65+
6666 -- ** Scans
6767 , scanl
6868 , scanl1
@@ -205,7 +205,7 @@ instance Data JSString where
205205 gunfold k z c = case constrIndex c of
206206 1 -> k (z pack)
207207 _ -> P. error " gunfold"
208- dataTypeOf _ = jsstringDataType
208+ dataTypeOf _ = jsstringDataType
209209
210210packConstr :: Constr
211211packConstr = mkConstr jsstringDataType " pack" [] Prefix
@@ -1472,7 +1472,7 @@ count pat src
14721472-- RULES
14731473-- "JSSTRING count/singleton -> countChar" [~1] forall c t.
14741474-- count (singleton c) t = countChar c t
1475- --
1475+ --
14761476
14771477-- | /O(n)/ The 'countChar' function returns the number of times the
14781478-- query element appears in the given 'JSString'. Subject to fusion.
@@ -1514,7 +1514,7 @@ words x = loop 0# -- js_words x {- t@(Text arr off len) = loop 0 0
15141514words' :: JSString -> [JSString ]
15151515words' x = unsafeCoerce (js_words x)
15161516{-# INLINE words' #-}
1517-
1517+
15181518-- | /O(n)/ Breaks a 'JSString' up into a list of 'JSString's at
15191519-- newline 'Char's. The resulting strings do not contain newlines.
15201520lines :: JSString -> [JSString ]
@@ -1742,7 +1742,7 @@ foreign import javascript unsafe
17421742-- "h$jsstringGroup1" js_group1
17431743-- :: Int# -> Bool -> JSString -> (# Int#, JSString #)
17441744foreign import javascript unsafe
1745- " h$jsstringConcat" js_concat :: Exts. Any {- [JSString] -} -> JSString
1745+ " h$jsstringConcat" js_concat :: Exts. Any {- [JSString] -} -> JSString
17461746-- debug this below!
17471747foreign import javascript unsafe
17481748 " h$jsstringReplace" js_replace :: JSString -> JSString -> JSString -> JSString
0 commit comments