on master help sign in
Move rewrite rules to a different phase

--HG-- extra : convert_revision : c145bf17e27cabd222f5f7f4a35678d2673e07f3

commite79261b2e5a5604aa5f68bdc740d8db2294eb17e authorJohan Tibell <johan.tibell@gmail.com> dateMon 17 May 2010, 09:31 (16 years ago) parentf5f6d5c
1 file changed+3−3
Data/Text/Lazy/Builder.hs+3−3
Data/Text/Lazy/Builder.hs+3−3
@@ -97,7 +97,7 @@ singleton c = putChar c
9797--
9898append :: Builder -> Builder -> Builder
9999append (Builder f) (Builder g) = Builder (f . g)
100−{-# INLINE [1] append #-}
100+{-# INLINE [0] append #-}
101101
102102-- TODO: Experiment to find the right threshold.
103103copyLimit :: Int
@@ -226,13 +226,13 @@ ensureFree !n = withSize $ \ l ->
226226 if n <= l
227227 then empty
228228 else flush `append'` withBuffer (const (newBuffer (max n defaultChunkSize)))
229−{-# INLINE [1] ensureFree #-}
229+{-# INLINE [0] ensureFree #-}
230230
231231-- | Ensure that @n@ many elements are available, and then use @f@ to
232232-- write some elements into the memory.
233233writeN :: Int -> (forall s. A.MArray s Word16 -> Int -> ST s ()) -> Builder
234234writeN n f = ensureFree n `append'` withBuffer (writeNBuffer n f)
235−{-# INLINE [1] writeN #-}
235+{-# INLINE [0] writeN #-}
236236
237237writeNBuffer :: Int -> (A.MArray s Word16 -> Int -> ST s ()) -> (Buffer s)
238238 -> ST s (Buffer s)