[project @ 1998-08-27 12:55:57 by sof]
authorsof <unknown>
Thu, 27 Aug 1998 12:55:58 +0000 (12:55 +0000)
committersof <unknown>
Thu, 27 Aug 1998 12:55:58 +0000 (12:55 +0000)
FilePath moved from PrelHandle to PrelIOBase

ghc/lib/std/PrelHandle.lhs
ghc/lib/std/PrelIOBase.lhs

index 4fa4a7d..6d7a6c9 100644 (file)
@@ -35,15 +35,13 @@ import PrelConc                             -- concurrent only
 
 %*********************************************************
 %*                                                     *
-\subsection{Types @FilePath@, @Handle@, @Handle__@}
+\subsection{Types @Handle@, @Handle__@}
 %*                                                     *
 %*********************************************************
 
 The @Handle@ and @Handle__@ types are defined in @IOBase@.
 
 \begin{code}
-type FilePath = String
-
 {-# INLINE newHandle   #-}
 {-# INLINE readHandle  #-}
 {-# INLINE writeHandle #-}
index fe13769..56b7d33 100644 (file)
@@ -291,6 +291,13 @@ constructErrorMsg call_site reason =
  return (IOError Nothing iot call_site msg)
 \end{code}
 
+File names are specified using @FilePath@, a OS-dependent
+string that (hopefully, I guess) maps to an accessible file/object.
+
+\begin{code}
+type FilePath = String
+\end{code}
+
 %*********************************************************
 %*                                                     *
 \subsection{Types @Handle@, @Handle__@}
@@ -367,7 +374,7 @@ data Handle__
       haFO__         :: FILE_OBJECT,
       haType__        :: Handle__Type,
       haBufferMode__  :: BufferMode,
-      haFilePath__    :: String
+      haFilePath__    :: FilePath
     }      
 
 {-