[project @ 2001-08-29 10:19:31 by simonmar]
authorsimonmar <unknown>
Wed, 29 Aug 2001 10:19:31 +0000 (10:19 +0000)
committersimonmar <unknown>
Wed, 29 Aug 2001 10:19:31 +0000 (10:19 +0000)
Make the Permissions type non-abstract as per the revised Haskell 98 report.

ghc/lib/std/Directory.hsc

index c03407d..a5ef6dc 100644 (file)
@@ -1,5 +1,5 @@
 -- -----------------------------------------------------------------------------
--- $Id: Directory.hsc,v 1.15 2001/08/21 08:53:22 simonmar Exp $
+-- $Id: Directory.hsc,v 1.16 2001/08/29 10:19:31 simonmar Exp $
 --
 -- (c) The University of Glasgow, 1994-2000
 --
@@ -23,12 +23,13 @@ are relative to the current directory.
 
 module Directory 
    ( 
-      Permissions               -- abstract
-      
-    , readable                  -- :: Permissions -> Bool
-    , writable                  -- :: Permissions -> Bool
-    , executable                -- :: Permissions -> Bool
-    , searchable                -- :: Permissions -> Bool
+      Permissions              -- instance of (Eq, Ord, Read, Show)
+       ( Permissions
+        , readable              -- :: Permissions -> Bool
+        , writable              -- :: Permissions -> Bool
+        , executable            -- :: Permissions -> Bool
+        , searchable            -- :: Permissions -> Bool
+       )
 
     , createDirectory          -- :: FilePath -> IO ()
     , removeDirectory          -- :: FilePath -> IO ()