Commits

Bryan O'Sullivan committed a4c745c

Stub in strict I/O support.

Comments (0)

Files changed (2)

+-- |
+-- Module      : Data.Text.IO
+-- Copyright   : (c) Bryan O'Sullivan 2009
+-- License     : BSD-style
+-- Maintainer  : bos@serpentine.com
+-- Stability   : experimental
+-- Portability : GHC
+--
+-- Support for text I\/O.
+
+module Data.Text.IO
+    (
+    -- * Operations on handles
+      hGetContents
+    , hGetLine
+    , hPutStr
+    , hPutStrLn
+    -- * Special cases for standard input and output
+    , interact
+    , getContents
+    , getLine
+    , putStr
+    , putStrLn
+    ) where
+
+import Data.Text (Text)
+import Prelude hiding (getContents, getLine, interact, putStr, putStrLn)
+import System.IO (Handle, stdin, stdout)
+
+hGetContents :: Handle -> IO Text
+hGetContents h = undefined
+
+hGetLine :: Handle -> IO Text
+hGetLine h = undefined
+
+hPutStr :: Handle -> Text -> IO ()
+hPutStr h t = undefined
+
+hPutStrLn :: Handle -> Text -> IO ()
+hPutStrLn h t = undefined
+
+interact :: (Text -> Text) -> IO ()
+interact f = undefined
+
+getContents :: IO Text
+getContents = hGetContents stdin
+
+getLine :: IO Text
+getLine = hGetLine stdin
+
+putStr :: Text -> IO ()
+putStr = hPutStr stdout
+
+putStrLn :: Text -> IO ()
+putStrLn = hPutStrLn stdout
 name:           text
-version:        0.6
+version:        0.7
 synopsis:       An efficient packed Unicode text type
 description:    An efficient packed Unicode text type.
 license:        BSD3
     Data.Text.Encoding
     Data.Text.Encoding.Error
     Data.Text.Foreign
+    Data.Text.IO
     Data.Text.Lazy
     Data.Text.Lazy.Encoding
   other-modules: