1. 26 Oct, 1999 1 commit
  2. 25 Oct, 1999 2 commits
    • sof's avatar
      [project @ 1999-10-25 13:20:57 by sof] · bd3fdabc
      sof authored
      FFI wibble:
      
      * disallow the use of {Mutable}ByteArrays in 'safe' foreign imports.
      * ensure that ForeignObjs live across a _ccall_GC_.
      bd3fdabc
    • andy's avatar
      [project @ 1999-10-25 05:19:22 by andy] · 148227dc
      andy authored
      Adding a axiomatic testing framework library to help test Hugs and GHC
      libraries.
      
      Here is the example for the test of concat.
      
      test_concat = testRules "concat" [
      	do (xss :: [[ALPHA]]) <- var "xss"
      	   concat xss <==> foldr (++) [] xss
      	]
      
      xss here ranges over various rendering of list of list,
      including bottom and lists containing bottom.
      
      <==> uses a small piece of compiler/interpreter specifics to
      allow testing for
      
      	error "" ... <==> ... error "" ===> Pass
      148227dc
  3. 22 Oct, 1999 5 commits
  4. 21 Oct, 1999 2 commits
  5. 20 Oct, 1999 3 commits
  6. 19 Oct, 1999 9 commits
  7. 18 Oct, 1999 2 commits
    • sof's avatar
      [project @ 1999-10-18 11:49:47 by sof] · f083bb77
      sof authored
      * Time.CalendarTime.ctMonth's type should be Month (was Int.)
      * fixed Time.addToClockTime - the original implementation was
        completely wrong (thanks to George Russell for indirectly
        reporting the bug.)
      * Added the non-std Time.noTimeDiff, handy when you want to do
        calendar calculations, e.g.,
      
                  ct <- getClockTime
                  print (toUTCTime (addToClockTime noTimeDiff{tdMonth=1} ct))
      
      * many 'foreign import' decls were not marked as unsafe, even though they
        were passing out MutableByteArray and ByteArray vals. Fixed.
      f083bb77
    • kglynn's avatar
      [project @ 1999-10-18 11:44:20 by kglynn] · f021fc6f
      kglynn authored
      The fix to ignore error() cases when doing CPR analysis exposed a
      problem with the Void type.  A function that always constructs a void
      result was converted to w/w, but the worker was producing an unboxed
      tuple with 0 components.  Not good.
      
      Fixed so that constructing a void gives CPR value Top.  This is OK
      because we won't really be constructing a void each time, we will be
      returning a pointer to a shared void cell.
      f021fc6f
  8. 16 Oct, 1999 1 commit
    • andy's avatar
      [project @ 1999-10-16 02:17:25 by andy] · 170d1670
      andy authored
      Adding diffs between Hugs98 (Jan99) and Hugs98 (Sep99)
      manually to STG Hugs.
      
      Brings in large change to typechecking sub-system.
      170d1670
  9. 15 Oct, 1999 7 commits
    • andy's avatar
      [project @ 1999-10-15 23:52:00 by andy] · dee93f80
      andy authored
      Adding diffs between Hugs98 (Jan99) and Hugs98 (Sep99)
      manually to STG Hugs.
      
      These are the changes to input.c, with minor tweeks to
      connect.h and parser.y to make this work.
      dee93f80
    • andy's avatar
      [project @ 1999-10-15 22:35:04 by andy] · 9e0c9691
      andy authored
      Adding diffs between Hugs98 (Jan99) and Hugs98 (Sep99) manually to STG Hugs.
      9e0c9691
    • andy's avatar
      [project @ 1999-10-15 21:40:49 by andy] · ecd09ad0
      andy authored
      Updating all copyright messages to the same as Hugs98.
      ecd09ad0
    • andy's avatar
      [project @ 1999-10-15 19:11:54 by andy] · 07a8980d
      andy authored
      Changing order of check for use of DLL for dynamic linking.
      (Under cygwin, we still want to use DLL's).
      07a8980d
    • sewardj's avatar
      [project @ 1999-10-15 11:02:06 by sewardj] · dfb12323
      sewardj authored
      Added basic support for foreign export dynamic.
      
      Many aspects of it are still broken:
      * Only supports x86-linux.
      * The range of allowable types is small: Char Int Float Double
        Addr and Word.
      * Adjustor thunks are never freed.
      * Returning Doubles or Floats doesn't work at all.
      
      I expect to fix some of these shortly.  foreign import also
      needs redoing, so it can accept any number of arguments of
      any type.
      
      Also:
      * Fixed setRtsFlags in Evaluator.c to make it endian-independent.
      * Fixed raisePrim in Evaluator.c so things like division by zero,
        array index errors, etc, throw an exception instead of
        terminating StgHugs.  raisePrim is renamed makeErrorCall.
      dfb12323
    • simonmar's avatar
      [project @ 1999-10-15 09:50:22 by simonmar] · f5fd4677
      simonmar authored
      Add macros for two-register call/return convention, for experimentation.
      f5fd4677
    • simonmar's avatar
      [project @ 1999-10-15 08:56:46 by simonmar] · ed2992a5
      simonmar authored
      set $(HC) to the inplace ghc driver script.
      ed2992a5
  10. 14 Oct, 1999 4 commits
  11. 13 Oct, 1999 4 commits