unsafe -package -template-haskell +text

unsafeCopyToPtr :: Text -> Ptr Word16 -> IO ()
text Data.Text.Foreign
O(n) Copy a Text to an array. The array is assumed to be big enough to hold the contents of the entire Text.
unsafeDupablePerformIO :: IO a -> a
text Data.Text.Unsafe
This version of unsafePerformIO is more efficient because it omits the check that the IO is only being performed by a single thread. Hence, when you use unsafeDupablePerformIO, there is a possibility that the IO action may be performed multiple times (on a multiprocessor), and you should therefore ensure that it gives the same results each time.
unsafeFreeze :: MArray s -> ST s Array
text Data.Text.Array
Freeze a mutable array. Do not mutate the MArray afterwards!
unsafeHead :: Text -> Char
text Data.Text.Unsafe
O(1) A variant of head for non-empty Text. unsafeHead omits the check for the empty case, so there is an obligation on the programmer to provide a proof that the Text is non-empty.
unsafeIndex :: Array -> Int -> Word16
text Data.Text.Array
Unchecked read of an immutable array. May return garbage or crash on an out-of-bounds access.
unsafeTail :: Text -> Text
text Data.Text.Unsafe
O(1) A variant of tail for non-empty Text. unsafeHead omits the check for the empty case, so there is an obligation on the programmer to provide a proof that the Text is non-empty.
unsafeWrite :: MArray s -> Int -> Word16 -> ST s ()
text Data.Text.Array
Unchecked write of a mutable array. May return garbage or crash on an out-of-bounds access.
module Data.Text.Unsafe
text Data.Text.Unsafe
A module containing unsafe Text operations, for very very careful use in heavily tested code.