on c06d2e2 help sign in
text/Data/Text/Internal.hs
11 lines 302 B history raw
1module Data.Text.Internal where
3import Data.Array.ST(newArray_,runSTUArray)
4import Data.Array.Unboxed(UArray)
5import Data.Word(Word16)
7data Text = Text !(UArray Int Word16) {-# UNPACK #-}!Int {-# UNPACK #-}!Int
9empty :: Text
10empty = Text (runSTUArray (newArray_ (0,0))) 0 0
11{-# INLINE [1] empty #-}