Skip to content
Snippets Groups Projects
  1. Mar 25, 2008
  2. Mar 02, 2008
  3. Jan 23, 2008
  4. Dec 14, 2007
  5. Dec 13, 2007
  6. Oct 23, 2007
  7. Sep 13, 2007
  8. Aug 29, 2007
  9. Aug 10, 2007
    • Ian Lynagh's avatar
      Make arrays safer (e.g. trac #1046) · 0c4b7d71
      Ian Lynagh authored
      This is a divergence from Haskell 98.
       * Add (numElements :: Ix i => a i e -> Int) to IArray class
       * Array types get an extra field for numElements, e.g.
         {{{
         -data UArray i e = UArray !i !i ByteArray#
         +data UArray i e = UArray !i !i !Int ByteArray#
         }}}
         This is a cache of rangeSize(l,u)
       * Add safeRangeSize (always returns >= 0)
       * Add safeIndex (use unsafeIndex (no Ix inRange check),
                        but check index < numElements)
       * unsafeForeignPtrToStorableArray gained an (Ix i) context
      0c4b7d71
  10. Aug 20, 2007
  11. Aug 19, 2007
  12. Aug 13, 2007
  13. Aug 12, 2007
  14. Aug 01, 2007
  15. Jul 29, 2007
  16. Jul 22, 2007
  17. Aug 01, 2007
    • Malcolm.Wallace@cs.york.ac.uk's avatar
      Temporarily fix breakage for nhc98. · 9b7fe933
      Malcolm.Wallace@cs.york.ac.uk authored
      A recent patch to System.IO introduced a cyclic dependency on Foreign.C.Error,
      and also inadvertently dragged along System.Posix.Internals which has
      non-H'98 layout, causing many build problems.  The solution for now
      is to #ifndef __NHC__ all of the recent the openTempFile additions,
      and mark them non-portable once again.  (I also took the opportunity
      to note a number of other non-portable functions in their Haddock
      comments.)
      9b7fe933
    • simonpj@microsoft's avatar
      Generalise the type of synthesize, as suggested by Trac #1571 · b8acf99d
      simonpj@microsoft authored
      I have not looked at the details, but the type checker is happy with the
      more general type, and more general types are usually a Good Thing.
      b8acf99d
  18. Jul 30, 2007
    • Ian Lynagh's avatar
      Fix fdToHandle on Windows · b624d5f8
      Ian Lynagh authored
      The old setmode code was throwing an exception, and I'm not sure it is
      meant to do what we need anyway. For now we assume that all FDs are
      both readable and writable.
      b624d5f8
  19. Jul 29, 2007
  20. Jul 25, 2007
    • Simon Marlow's avatar
      Handle buffers should be allocated with newPinnedByteArray# always · 5f7b3a3b
      Simon Marlow authored
      Not just on Windows.  This change is required because we now use safe
      foreign calls for I/O on blocking file descriptors with the threaded
      RTS.  Exposed by concio001.thr on MacOS X: MacOS apparently uses
      smaller buffers by default, so they weren't being allocated as large
      objects.
      5f7b3a3b
  21. Jul 24, 2007
  22. Jul 22, 2007
  23. Jul 21, 2007
  24. Jul 18, 2007
  25. Jul 19, 2007
Loading