Changeset 14475 for src/Pugs/Prim.hs

Show
Ignore:
Timestamp:
10/22/06 01:37:56 (2 years ago)
Author:
yiyihu
svk:copy_cache_prev:
21625
Message:

r14635@HomePc?: xinming | 2006-10-22 01:26:30 +0000
Update t/builtins/io/dir.t file.
Added testing for short version of IO::Dir class.
read rewind close etc...


r14636@HomePc?: xinming | 2006-10-22 01:28:58 +0000
Alias rewinddir readdir to rewind read for IO::Dir class.
rewinddir and readdir still works.


Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim.hs

    r14474 r14475  
    457457    obj <- createObject (mkType "IO::Dir") [] 
    458458    return . VObject $ obj{ objOpaque = Just $ toDyn dir } 
    459 op1 "IO::Dir::close" = guardedIO (closeDirStream . fromObject) 
     459op1 "IO::Dir::close" = op1 "IO::Dir::closedir" 
    460460op1 "IO::Dir::closedir" = guardedIO (closeDirStream . fromObject) 
     461op1 "IO::Dir::rewind" = op1 "IO::Dir::rewinddir" 
    461462op1 "IO::Dir::rewinddir" = guardedIO (rewindDirStream . fromObject) 
     463op1 "IO::Dir::read" = op1 "IO::Dir::readdir" 
    462464op1 "IO::Dir::readdir" = \v -> do 
    463465    dir <- fmap fromObject (fromVal v) 
     
    21382140\\n   Any       pre     Code::retry_with    safe   (List)\ 
    21392141\\n   IO::Dir   pre     opendir    unsafe (Str)\ 
     2142\\n   Str       pre     IO::Dir::read       unsafe,export (IO::Dir)\ 
     2143\\n   List      pre     IO::Dir::read       unsafe,export (IO::Dir)\ 
    21402144\\n   Str       pre     IO::Dir::readdir    unsafe,export (IO::Dir)\ 
    21412145\\n   List      pre     IO::Dir::readdir    unsafe,export (IO::Dir)\ 
    2142 \\n   Bool      pre     IO::Dir::close   unsafe,export (IO::Dir)\ 
     2146\\n   Bool      pre     IO::Dir::close      unsafe,export (IO::Dir)\ 
    21432147\\n   Bool      pre     IO::Dir::closedir   unsafe,export (IO::Dir)\ 
     2148\\n   Bool      pre     IO::Dir::rewind     unsafe,export (IO::Dir)\ 
    21442149\\n   Bool      pre     IO::Dir::rewinddir  unsafe,export (IO::Dir)\ 
    21452150\\n   Any       pre     Pugs::Internals::reduceVar  unsafe (Str)\