aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/IO.hsc
Commit message (Collapse)AuthorAge
* Delete some trailing whitespacesGravatar Herbert Valerio Riedel2016-01-31
|
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Tighten Safe Haskell bounds, fixes new warning in GHC 7.10.Gravatar David Terei2014-12-06
| | | | Closes #27
* Make `-Wall` clean and drop `-fno-warn-unused-imports`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | CPP conditional code sections have been carefully taken into account while performing this warning cleanup. Most `OPTIONS_GHC` declarations could be dropped (now only a lonely `{-# OPTIONS_GHC -fno-cse #-}` remains in `Posix.Signals`). Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Declare language extensions via `{-# LANGUAGE -#}`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | Only language extensions not active when `-XHaskell2010` is enabled are declared, this way we can drop many redundant `{-# LANGUAGE ForeignFunctionInterface #-}` occurences. This commit also removes/replaces some `{-# OPTIONS_GHC -XRecordWildCards #-}` pragmas. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Bump base lower version to 4.5 (the version GHC 7.4.1 came with)Gravatar Ian Lynagh2012-11-30
| | | | and remove code to support older versions
* Provide a raw ByteString version of FilePath and environment APIsGravatar Simon Marlow2011-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | The new module System.Posix.ByteString provides exactly the same API as System.Posix, except that: - There is a new type: RawFilePath = ByteString - All functions mentioning FilePath in the System.Posix API use RawFilePath in the System.Posix.ByteString API - RawFilePaths are not subject to Unicode locale encoding and decoding, unlike FilePaths. They are the exact bytes passed to and returned from the underlying POSIX API. - Similarly for functions that deal in environment strings (System.Posix.Env): these use untranslated ByteStrings in System.Posix.Environment - There is a new function System.Posix.ByteString.getArgs :: [ByteString] returning the raw untranslated arguments as passed to exec() when the program was started.
* Fix conditional pragma to work with 6.12Gravatar David Terei2011-08-09
|
* Use Safe Haskell when GHC >= 7.2Gravatar David Terei2011-08-03
|
* Improved Unicode support in the light of PEP383Gravatar Max Bolingbroke2011-05-14
|
* Remove unnecessary fromIntegral callsGravatar simonpj@microsoft.com2010-11-16
|
* fix warningsGravatar Simon Marlow2010-03-22
|
* handleToFd: close both sides of a DuplexHandle (#3914)Gravatar Simon Marlow2010-03-19
|
* check for EINTR in openFdGravatar Simon Marlow2010-01-27
|
* Decouple from base (almost)Gravatar Simon Marlow2009-06-18
| | | | by copying foreign imports here from System.Posix.Internals
* Update to work with the new GHC IO library internalsGravatar Simon Marlow2009-06-11
|
* add fdReadBuf, fdWriteBufGravatar Simon Marlow2009-05-29
| | | | | | | | | | | | | | | | -- | Read data from an 'Fd' into memory. This is exactly equivalent -- to the POSIX @read@ function. fdReadBuf :: Fd -> Ptr Word8 -- ^ Memory in which to put the data -> ByteCount -- ^ Maximum number of bytes to read -> IO Bytecount -- ^ Number of bytes read (zero for EOF) -- | Write data from memory to an 'Fd'. This is exactly equivalent -- to the POSIX @write@ function. fdWriteBuf :: Fd -> Ptr Word8 -- ^ Memory containing the data to write -> ByteCount -- ^ Maximum number of bytes to write -> IO ByteCount -- ^ Number of bytes written
* Avoid using IOError internalsGravatar Ian Lynagh2009-01-04
|
* Fix warnings in the unix packageGravatar Ian Lynagh2008-08-21
|
* Avoid using deprecated flagsGravatar Ian Lynagh2008-06-16
|
* Fix some haddock linksGravatar Ian Lynagh2007-11-26
|
* GHC.Handle no longer exports openFdGravatar Ian Lynagh2007-07-22
|
* Follow type changes in baseGravatar Ian Lynagh2007-04-03
| | | | (of the dubiously exported c_access and c_fcntl_write)
* [project @ 2005-11-10 13:00:55 by simonmar]Gravatar simonmar2005-11-10
| | | | some Haddock docs, from Isaac Jones.
* [project @ 2005-08-10 10:07:22 by simonmar]Gravatar simonmar2005-08-10
| | | | Fix queryFdOption
* [project @ 2005-02-07 12:03:44 by simonmar]Gravatar simonmar2005-02-07
| | | | Doc for handleToFd and fdToHandle
* [project @ 2004-08-19 11:15:51 by simonmar]Gravatar simonmar2004-08-19
| | | | | | | | | Add filenames to all errors where it makes sense. I've added System.Posix.Error with a new family of error-throwing functions, throwErrnoPath*. This seemed to make the most sense: they don't belong in Foreign.C.Error (C by itself has no notion of paths). Fixes: [ 954378 ] getFileStatus does not include the file name in IO-Error
* [project @ 2003-10-27 11:58:28 by stolz]Gravatar stolz2003-10-27
| | | | | | | - fix typo in error message - a bit of manual CSE for fcntl-flags - use Data.Bits instead of brains - make (unexported) function names a bit more consistent
* [project @ 2003-10-23 23:32:43 by sof]Gravatar sof2003-10-23
| | | | | | fdRead: drop superfluous array copying merge to stable
* [project @ 2003-10-18 00:35:26 by ross]Gravatar ross2003-10-18
| | | | Hugs only: add handleToFd
* [project @ 2003-05-27 10:18:16 by ross]Gravatar ross2003-05-27
| | | | Hugs only: make fdToHandle available
* [project @ 2003-04-11 10:17:13 by ross]Gravatar ross2003-04-11
| | | | use System.Posix.Internals
* [project @ 2003-03-26 12:34:53 by simonmar]Gravatar simonmar2003-03-26
| | | | wibble: add a newline at the end of the file
* [project @ 2003-02-27 15:46:57 by stolz]Gravatar stolz2003-02-27
| | | | | - Add documentation for fd{Read,Write} & createPipe - Unbreak setFdOption which didn't set any options at all
* [project @ 2003-02-27 13:27:50 by stolz]Gravatar stolz2003-02-27
| | | | | Move fd{Read,Write} to new layout. Use of memcpy() should bring a large performance increase compared to the old version.
* [project @ 2002-12-19 13:52:55 by simonmar]Gravatar simonmar2002-12-19
| | | | | | | | | Fill in some more bits in the new Unix library: specifically the contents of PosixTTY and PosixDB (now System.Posix.Terminal and System.Posix.User respectively). We're now about 95% complete w.r.t. the old posix library. I've identified the reminaing bits to do in System/Posix.hs.
* [project @ 2002-12-12 13:42:48 by ross]Gravatar ross2002-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to the exception interface, as discussed on the libraries list. 1) Move bracket and bracket_ from GHC.Exception (and hence System.IO) to haskell98/IO.hs. These two should now never be used (except in all-H98 programs), and this will save users of the new libraries from having to hide them. Use the ones in Control.Exception instead. 2) Define type IOError = IOException -- was Exception leaving the type of Prelude.ioError as IOError -> IO a, but adding to Control.Exception throwIO :: Exception -> IO a The result is a type distinction between the variants of catch and try: Prelude.catch :: IO a -> (IOError -> IO a) -> IO a Control.Exception.catch :: IO a -> (Exception -> IO a) -> IO a System.IO.Error.try :: IO a -> IO (Either IOError a) Control.Exception.try :: IO a -> IO (Either Exception a) These are breaking changes: the first one affects only import lists, but the second will bite in the following situations: - using ioError on general Exceptions: use throwIO instead. - using throw on IOErrors: if in the IO monad, use ioError instead. Otherwise, use throw (IOException e), but why are you throwing IO exceptions outside of the IO monad? Minor changes: - System.IO.Error now exports catch and try - moved try from GHC.Exception to System.IO.Error, because it's portable and can be shared by Hugs.
* [project @ 2002-10-08 08:03:02 by wolfgang]Gravatar wolfgang2002-10-08
| | | | | | | | | Make the new Posix bindings compile on Mac OS X. Most notable, Mac OS X lacks *) lchown *) SIGPOLL I don't know of a replacement of either, so they are just left out when they are not detected by configure.
* [project @ 2002-09-14 09:35:00 by panne]Gravatar panne2002-09-14
| | | | | 4th attempt to get a working RPM, but again: Make Haddock happy. Is doing a "make html" that hard before committing...? :-]
* [project @ 2002-09-12 16:38:21 by simonmar]Gravatar simonmar2002-09-12
More POSIX bits... we're getting there.