Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added to the api a placeholder for hPutBuilder #594

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/Data/Text/Lazy/Builder/IO.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Data.Text.Lazy.Builder.IO
( hPutBuilder
) where

import System.IO (Handle)
import Data.Text.Lazy.Builder (Builder, toLazyText)
import qualified Data.Text.Lazy.IO as L

-- | Write a Builder to a handle.
-- Currently, just a placeholder that uses LazyText until an implementation is added.
hPutBuilder :: Handle -> Builder -> IO ()
hPutBuilder h b = L.hPutStr h $ toLazyText b

1 change: 1 addition & 0 deletions text.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ library
Data.Text.Lazy
Data.Text.Lazy.Builder
Data.Text.Lazy.Builder.Int
Data.Text.Lazy.Builder.IO
Data.Text.Lazy.Builder.RealFloat
Data.Text.Lazy.Encoding
Data.Text.Lazy.IO
Expand Down
Loading