1. 16 Jan, 2001 7 commits
  2. 15 Jan, 2001 2 commits
  3. 12 Jan, 2001 1 commit
  4. 11 Jan, 2001 1 commit
    • simonmar's avatar
      [project @ 2001-01-11 17:25:56 by simonmar] · efa88123
      simonmar authored
      Re-organisation of ghc/lib/std and hslibs/lang
      ----------------------------------------------
      
      In brief: move deprecated features out of ghc/lib/std and into
      hslibs/lang, move new FFI libraries into ghc/lib/std and start
      using them.
      
      - foreign import may now return an unboxed type (this was
        advertised to work before, but in fact didn't).  Subsequent
        cleanups in PrelInt/PrelWord.
      
      - Ptr is now defined in ghc/lib/std/PrelPtr.lhs.  Ptr is no
        longer a newtype of Addr, it is defined directly in terms of
        Addr#.
      
      - PrelAddr has disappeared from ghc/lib/std, all uses of Addr in
        ghc/lib/std have been replaced with Ptr.  The definitions of
        Addr has been moved to hslibs/lang/Addr.lhs, as has
        lots of other Addr-related stuff.
      
      - ForeignObj has been removed from ghc/lib/std, and replaced with
        ForeignPtr.  The definition of ForeignObj has been moved to
        hslibs/lang/ForeignObj.lhs.
      
      - Most of the new FFI has been moved into ghc/lib/std in the form
        of modules PrelMarshalAlloc, PrelCString, PrelCError,
        PrelMarshalError, PrelMarshalArray, PrelMarshalUtils,
        PrelCTypes, PrelCTypesISO, and PrelStorable.  The corresponding
        modules in hslibs/lang simply re-export the contents of these
        modules.
      
      - PrelPosixTypes defines a few POSIX types (CMode == mode_t,
        etc.)
      
      - PrelCError changed to access errno using foreign label and peek
        (the POSIX book I have says that errno is guaranteed to be an
        extern int, so this should be OK until I get around to making
        errno thread-safe).
      
      - Hacked the macros that generate the code for CTypes and
        CTypesISO to generate much less code
        (ghc/lib/std/cbits/CTypes.h).
      
      - RtsAPI is now a bit more honest when it comes to building heap
        objects (it uses the correct constructors).
      
      - the Bits class and related stuff has been moved to ghc/lib/std
        (it was simpler this way).
      
      - Directory and System have been converted to use the new FFI.
      efa88123
  5. 10 Jan, 2001 1 commit
  6. 09 Jan, 2001 1 commit
  7. 05 Jan, 2001 1 commit
  8. 03 Jan, 2001 2 commits
  9. 31 Dec, 2000 1 commit
    • panne's avatar
      [project @ 2000-12-31 16:58:05 by panne] · 5acd2909
      panne authored
      Automagically add a GHC #define. These are the final changes to get a
      bootstrapping GHC without a build.mk, thus enabling people (like me :-)
      who forget obscure options quite often to build GHC painlessly.
      
      Happy New Year!
      5acd2909
  10. 20 Dec, 2000 2 commits
  11. 19 Dec, 2000 9 commits
  12. 16 Dec, 2000 1 commit
  13. 15 Dec, 2000 2 commits
  14. 14 Dec, 2000 3 commits
  15. 12 Dec, 2000 1 commit
    • simonmar's avatar
      [project @ 2000-12-12 12:19:57 by simonmar] · 65ace55b
      simonmar authored
      - Add primops for {read,write,index}{Int,Word}{8,16,32,64}OffAddr.
          This enables us to remove all the _casm_s from Int/Word.
      
        - Replace new{Char,Int,etc.}Array# with newByteArray# (save a few primops,
          at the cost of having to know the size of these types in PrelArr).
      
        - Implement MArray/IArray support for sized types.  finally.
      
        - Move the guts of the sized types into ghc/lib/std, we'll need
          them for doing more FFIish things in the Prelude.
      65ace55b
  16. 11 Dec, 2000 5 commits