File: Builder.hs

package info (click to toggle)
haskell-foundation 0.0.30-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 928 kB
  • sloc: haskell: 9,124; ansic: 570; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- |
-- Module      : Foundation.String.Builder
-- License     : BSD-style
-- Maintainer  : Foundation
--
-- String Builder
--
module Foundation.String.Builder
    ( module Basement.String.Builder
    , toString
    ) where

import Basement.String.Builder
import Basement.String (String)
import GHC.ST

-- | run the builder and return a `String`
--
-- alias to `runUnsafe`
--
-- This function is not safe, prefer `run`.
--
toString :: Builder -> String
toString builder = runST (runUnsafe builder)