diff options
Diffstat (limited to 'libraries/base/System')
-rw-r--r-- | libraries/base/System/CPUTime.hsc | 2 | ||||
-rw-r--r-- | libraries/base/System/Environment/ExecutablePath.hsc | 1 | ||||
-rw-r--r-- | libraries/base/System/IO/Error.hs | 6 |
3 files changed, 5 insertions, 4 deletions
diff --git a/libraries/base/System/CPUTime.hsc b/libraries/base/System/CPUTime.hsc index 6bc90f168a..5b0fdbf4da 100644 --- a/libraries/base/System/CPUTime.hsc +++ b/libraries/base/System/CPUTime.hsc @@ -40,7 +40,7 @@ import qualified System.CPUTime.Posix.ClockGetTime as I #elif defined(HAVE_GETRUSAGE) && ! solaris2_HOST_OS import qualified System.CPUTime.Posix.RUsage as I --- @getrusage()@ is right royal pain to deal with when targetting multiple +-- @getrusage()@ is right royal pain to deal with when targeting multiple -- versions of Solaris, since some versions supply it in libc (2.3 and 2.5), -- while 2.4 has got it in libucb (I wouldn't be too surprised if it was back -- again in libucb in 2.6..) diff --git a/libraries/base/System/Environment/ExecutablePath.hsc b/libraries/base/System/Environment/ExecutablePath.hsc index 3c9d36cb88..cdf39ea041 100644 --- a/libraries/base/System/Environment/ExecutablePath.hsc +++ b/libraries/base/System/Environment/ExecutablePath.hsc @@ -39,6 +39,7 @@ import Foreign.Marshal.Array import Foreign.Ptr import Foreign.Storable import System.Posix.Internals +#include <sys/types.h> #include <sys/sysctl.h> #elif defined(mingw32_HOST_OS) import Control.Exception diff --git a/libraries/base/System/IO/Error.hs b/libraries/base/System/IO/Error.hs index 2585181df8..3417b910e5 100644 --- a/libraries/base/System/IO/Error.hs +++ b/libraries/base/System/IO/Error.hs @@ -176,7 +176,7 @@ isUserError = isUserErrorType . ioeGetErrorType -- | An error indicating that the operation failed because the -- resource vanished. See 'resourceVanishedErrorType'. -- --- @since 0.4.14.0 +-- @since 4.14.0.0 isResourceVanishedError :: IOError -> Bool isResourceVanishedError = isResourceVanishedErrorType . ioeGetErrorType @@ -224,7 +224,7 @@ userErrorType = UserError -- This happens when, for example, attempting to write to a closed -- socket or attempting to write to a named pipe that was deleted. -- --- @since 0.4.14.0 +-- @since 4.14.0.0 resourceVanishedErrorType :: IOErrorType resourceVanishedErrorType = ResourceVanished @@ -279,7 +279,7 @@ isUserErrorType _ = False -- | I\/O error where the operation failed because the resource vanished. -- See 'resourceVanishedErrorType'. -- --- @since 0.4.14.0 +-- @since 4.14.0.0 isResourceVanishedErrorType :: IOErrorType -> Bool isResourceVanishedErrorType ResourceVanished = True isResourceVanishedErrorType _ = False |