packages feed

utf8-prelude 0.1.3 → 0.1.4

raw patch · 2 files changed

+15/−17 lines, 2 filesdep ~utf8-string

Dependency ranges changed: utf8-string

Files

System/UTF8IO.hs view
@@ -10,7 +10,7 @@ -- -- "System.UTF8IO" defines the same entities as "System.IO" but with UTF8 text I/O operations. ----- "System.UTF8IO" re-exports "System.IO.UTF8" and "System.IO" but hides the duplicate definitions (in favor of "System.IO.UTF8").+-- "System.UTF8IO" re-exports "System.IO.UTF8" (utf8-string package) and "System.IO" but hides the duplicate definitions (in favor of "System.IO.UTF8").  module System.UTF8IO     ( module System.IO@@ -50,6 +50,8 @@     , hGetChar     , hLookAhead     , hPrint+    , openBinaryFile+    , withBinaryFile     )  import qualified System.IO@@ -71,7 +73,7 @@ -- | Computation 'hPutChar' @hdl ch@ writes the character @ch@ to the file or channel managed by @hdl@.  -- Characters may be buffered if buffering is enabled for @hdl@.  ----- Note: The implementation of 'hPutChar' is not efficient.+-- Note: The implementation of 'hPutChar' is not as efficient as it could be.  hPutChar    :: Handle -> Char -> IO () hPutChar h c = hPutStr h [c]@@ -79,7 +81,7 @@ -- | Computation 'hGetChar' @hdl@ reads a character from the file or channel  -- managed by 'hdl', blocking until a character is available. ----- Note: The implementation of 'hGetChar' is not efficient.+-- Note: The implementation of 'hGetChar' is not as efficient as it could be.  hGetChar    :: Handle -> IO Char hGetChar h  = do     @@ -121,7 +123,7 @@ -- | Write a character to the standard output device -- (same as 'hPutChar' 'stdout'). ----- Note: The implementation of 'putChar' is not efficient.+-- Note: The implementation of 'putChar' is not as efficient as it could be.  putChar     :: Char -> IO () putChar c   =  hPutChar stdout c@@ -129,7 +131,7 @@ -- | Read a character from the standard input device -- (same as 'hGetChar' 'stdin'). ----- Note: The implementation of 'getChar' is not efficient.+-- Note: The implementation of 'getChar' is not as efficient as it could be.  getChar     :: IO Char getChar     =  hGetChar stdin
utf8-prelude.cabal view
@@ -1,11 +1,9 @@ name:           utf8-prelude-version:        0.1.3-synopsis:       Prelude and System.IO with UTF8 text I/O+version:        0.1.4+synopsis:       Variants of Prelude and System.IO using UTF8 text I/O operations and an UTF8 testing tool description:    -    utf8-prelude provides variants of "Prelude" and "System.IO" using UTF8 text I/O operations, making -    UTF8 text I/O even simpler.-    .-    Three simple steps to switch to UTF8 with your Haskell code:+    If you want your Haskell code to have UTF8 text I/O then use libraries which have UTF8 text I/O.+    In case of Prelude with this package only three mechanical steps needed:     .     * In all modules import Prelude explicitly and replace every occurrence of "Prelude" with "UTF8Prelude".     .@@ -13,15 +11,13 @@     .     * In all modules replace every occurrence of "System.IO" with "System.UTF8IO".     .-    utf8-prelude also provides a basic testing tool:     utf8-test tests several functions regarding UTF8 text I/O.-    Note: utf8-test creates a file named writeFile_test.txt in the current working directory.+    Note: utf8-test creates a file named writeFile_test.txt (5,3K) in the current working directory.     .     utf8-prelude is based on utf8-string:     <http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string/index.html>     .-    This package will be obsolate with GHC if GHC will have porper unicode support for text I/O.-    It is planned beyond GHC 6.10: +    This package will be obsolete *after* GHC 6.10:      <http://hackage.haskell.org/trac/ghc/wiki/Status/Releases> category:       System author:         Péter Diviánszky <divip@aszt.inf.elte.hu>@@ -30,7 +26,7 @@ license:        BSD3 license-file:   LICENSE stability:      alpha-tested-with:    GHC == 6.8.2+tested-with:    GHC == 6.8.2 && == 6.10.0.20081007 build-type:     Simple cabal-version:  >=1.2 data-files:     readFile_test.txt,@@ -40,7 +36,7 @@     ghc-options:    -Wall     build-depends:         base,-        utf8-string+        utf8-string >= 0.3.2 && < 0.3.3      exposed-modules:         UTF8Prelude,