[project @ 2000-03-09 06:14:38 by andy]
improving the synatax and semantics of the privileged import Typical use might be: import Prelude import privileged Prelude ( IORef , unsafePerformIO ) Which means please ignore the export that comes with Prelude, and let me at compiler internal magic operations, IORef and unsafePerformIO (both are later exported by IOExt) I've also updated the stdlib files to use this (hugs only :-).
Showing
- ghc/includes/options.h 3 additions, 2 deletionsghc/includes/options.h
- ghc/interpreter/parser.y 5 additions, 5 deletionsghc/interpreter/parser.y
- ghc/interpreter/static.c 47 additions, 14 deletionsghc/interpreter/static.c
- ghc/lib/hugs/Prelude.hs 4 additions, 53 deletionsghc/lib/hugs/Prelude.hs
- ghc/lib/std/Array.lhs 10 additions, 1 deletionghc/lib/std/Array.lhs
- ghc/lib/std/CPUTime.lhs 7 additions, 1 deletionghc/lib/std/CPUTime.lhs
- ghc/lib/std/IO.lhs 34 additions, 8 deletionsghc/lib/std/IO.lhs
- ghc/lib/std/Random.lhs 14 additions, 3 deletionsghc/lib/std/Random.lhs
- ghc/lib/std/Ratio.lhs 8 additions, 0 deletionsghc/lib/std/Ratio.lhs
- ghc/lib/std/System.lhs 17 additions, 0 deletionsghc/lib/std/System.lhs
Loading
Please register or sign in to comment