Skip to content
Snippets Groups Projects
  1. Oct 26, 1999
  2. Oct 25, 1999
    • 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
    • AndyGill's avatar
      [project @ 1999-10-25 05:19:22 by andy] · 148227dc
      AndyGill 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. Oct 22, 1999
  4. Oct 21, 1999
  5. Oct 20, 1999
  6. Oct 19, 1999
  7. Oct 18, 1999
    • 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
    • Kevin Glynn's avatar
      [project @ 1999-10-18 11:44:20 by kglynn] · f021fc6f
      Kevin Glynn 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. Oct 16, 1999
  9. Oct 15, 1999
    • AndyGill's avatar
      [project @ 1999-10-15 23:52:00 by andy] · dee93f80
      AndyGill 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
    • AndyGill's avatar
      [project @ 1999-10-15 22:35:04 by andy] · 9e0c9691
      AndyGill authored
      Adding diffs between Hugs98 (Jan99) and Hugs98 (Sep99) manually to STG Hugs.
      9e0c9691
    • AndyGill's avatar
      [project @ 1999-10-15 21:40:49 by andy] · ecd09ad0
      AndyGill authored
      Updating all copyright messages to the same as Hugs98.
      ecd09ad0
    • AndyGill's avatar
      [project @ 1999-10-15 19:11:54 by andy] · 07a8980d
      AndyGill authored
      Changing order of check for use of DLL for dynamic linking.
      (Under cygwin, we still want to use DLL's).
      07a8980d
    • Julian Seward's avatar
      [project @ 1999-10-15 11:02:06 by sewardj] · dfb12323
      Julian Seward 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
    • Simon Marlow's avatar
      [project @ 1999-10-15 09:50:22 by simonmar] · f5fd4677
      Simon Marlow authored
      Add macros for two-register call/return convention, for experimentation.
      f5fd4677
    • Simon Marlow's avatar
      [project @ 1999-10-15 08:56:46 by simonmar] · ed2992a5
      Simon Marlow authored
      set $(HC) to the inplace ghc driver script.
      ed2992a5
  10. Oct 14, 1999
  11. Oct 13, 1999
Loading