This project is mirrored from https://github.com/haskell/pretty. Pull mirroring updated .
  1. 11 Jan, 2006 1 commit
  2. 10 Jan, 2006 1 commit
  3. 06 Jan, 2006 3 commits
  4. 02 Jan, 2006 1 commit
  5. 30 Dec, 2005 1 commit
  6. 15 Dec, 2005 1 commit
  7. 13 Dec, 2005 2 commits
  8. 05 Dec, 2005 1 commit
    • simonmar's avatar
      [project @ 2005-12-05 11:42:47 by simonmar] · 956ef5fc
      simonmar authored
      Add IO versions of the STM primitives that allocate new transactional variables:
      
        newTVarIO :: a -> IO (TVar a)
        newTChanIO :: IO (TChan a)
        newTMVarIO :: a -> IO (TMVar a)
      
      These can be used inside unsafePerformIO, unlike the STM versions.
      956ef5fc
  9. 03 Dec, 2005 1 commit
  10. 02 Dec, 2005 2 commits
    • simonmar's avatar
      [project @ 2005-12-02 14:29:28 by simonmar] · 36e4c46a
      simonmar authored
      avoid recursive module trap with Haddock
      36e4c46a
    • simonmar's avatar
      [project @ 2005-12-02 12:26:22 by simonmar] · dafde444
      simonmar authored
      Apply rev 1.24 from FreeBSD's copy of this file.  Commit message from
      FreeBSD:
      
         The algorithm that computes the tables used in the BM search
         algorithm sometimes access an array beyond it's length. This only
         happens in the last iteration of a loop, and the value fetched is
         not used then, so the bug is a relatively innocent one. Fix this by
         not fetching any value on the last iteration of said loop.
      
         Submitted by:	MKI <mki@mozone.net>
      
      This is the cause of bug #1194393 (crash in darcs on Windows).
      dafde444
  11. 01 Dec, 2005 2 commits
  12. 30 Nov, 2005 2 commits
    • simonmar's avatar
      [project @ 2005-11-30 16:56:24 by simonmar] · b7564a80
      simonmar authored
      - move forkIO into GHC.Conc, so that the I/O manager can use proper forkIO
        with an exception handler.  This required TopHandler.lhs-boot.  It's the
        right thing, though, since the forkIO implementation is GHC-specific.
      
      - check for out-of-range file descriptors in the I/O manager, rather than
        just exploding.  The I/O manager will exit ungracefully, but at least
        there will be an error message.
      b7564a80
    • simonmar's avatar
      [project @ 2005-11-30 12:24:18 by simonmar] · d5316d04
      simonmar authored
      Add
      
        registerDelay :: Int -> IO (TVar Bool)
      
      for implementing delays and timeouts in STM.  The delay is implemented
      in the same way as threadDelay.  Currently doesn't work on Windows or
      without -threaded (I do intend to make it work on Windows, though).
      d5316d04
  13. 29 Nov, 2005 1 commit
    • ross's avatar
      [project @ 2005-11-29 14:31:59 by ross] · 641f8d59
      ross authored
      As foreshadowed on the libraries list, introduce new classes:
      
      Applicative (formerly known as Idiom): generalizes (but does not replace)
      both Monad and Monoid.
      
      Traversable: containers that can be traversed, executing actions and
      re-assembling the results.  This class generalizes and replaces FunctorM,
      because it requires Applicative instead of Monad.
      
      Foldable: containers that can be folded over a Monoid.  Traversable
      supplies a default definition, but some structures, e.g. Set, are Foldable
      but not Traversable.
      641f8d59
  14. 17 Nov, 2005 2 commits
    • ross's avatar
      [project @ 2005-11-17 15:54:17 by ross] · 8ee3f582
      ross authored
      add a couple of Boolean instances
      8ee3f582
    • simonmar's avatar
      [project @ 2005-11-17 11:28:43 by simonmar] · ee88c20d
      simonmar authored
      ProcessHandle is now an MVar, in which we cache the ExitCode of the
      process when we know it.
      
      Additionally, waitForProcess and getProcessExitCode now close the
      handle eagerly on Windows, this avoids a problem with hsc2hs which
      wants to remove the executable it just ran, and it can't if the handle
      is still open.
      ee88c20d
  15. 13 Nov, 2005 1 commit
  16. 11 Nov, 2005 3 commits
    • simonmar's avatar
      [project @ 2005-11-11 14:41:01 by simonmar] · b959bfb9
      simonmar authored
      waitForProcess: if the process died with a signal, just return the
      exit status rather than EINTR.
      
      This means a segfault shows up as (ExitFailure 139) rather than
      an exception complaining about system call interruption.  If the
      client wants a more unix-ish interpretation, they probably should be
      using System.Posix.Process anyway.
      b959bfb9
    • simonmar's avatar
      [project @ 2005-11-11 12:01:58 by simonmar] · d50c1eee
      simonmar authored
      On Windows, attach a finalizer to the ProcessHandle so that we can
      call CloseHandle() when the handle is no longer in use.  Previously we
      were calling CloseHandle() in waitForProcess and terminateProcess,
      which prevented making multiple calls to these functions on the same
      handle.
      d50c1eee
    • simonmar's avatar
      [project @ 2005-11-11 10:37:35 by simonmar] · 42687af2
      simonmar authored
      Fix bugs in new signal handling machinery
      42687af2
  17. 10 Nov, 2005 1 commit
  18. 07 Nov, 2005 1 commit
  19. 27 Oct, 2005 1 commit
    • sof's avatar
      [project @ 2005-10-27 01:39:40 by sof] · 6b872f47
      sof authored
      [mingw/msys only]
      Undo long-standing workaround for buggy GNU ld's on mingw/msys; i.e.,
      the linker wasn't correctly generating relocatable object files when
      the number of relocs exceeded 2^16. Worked around the issue by
      hackily splitting up the GHCi object file for the larger packages
      ('base', 'ObjectIO' and 'win32') into a handful of object files,
      each with a manageable number of relocs. Tiresome and error-prone
      (but the hack has served us well!)
      
      This commit imposes a restriction on the 'ld' you use to compile
      up GHC with; it now has to be ld-2.15.x or later (something GHC
      binary dists have shipped with since 6.2.2)
      6b872f47
  20. 26 Oct, 2005 1 commit
  21. 25 Oct, 2005 7 commits
    • sof's avatar
      [project @ 2005-10-25 17:31:38 by sof] · aa96eaed
      sof authored
      FPTOOLS_CHECK_HTYPE: correctly scope the resetting of CPPFLAGS; as was,
      it got blown away if the value was cached.
      
      Merge to STABLE.
      aa96eaed
    • simonmar's avatar
      [project @ 2005-10-25 12:01:11 by simonmar] · a9fdb62e
      simonmar authored
      fix findExecutable (I hope; don't have an up to date Windows build to
      test on).
      a9fdb62e
    • simonmar's avatar
      [project @ 2005-10-25 11:13:53 by simonmar] · 639511b2
      simonmar authored
      forkIO the signal handlers directly from the IO manager thread, rather
      than calling an RTS function to do the same thing.
      639511b2
    • ross's avatar
      [project @ 2005-10-25 09:29:47 by ross] · ba19f070
      ross authored
      add Monoid instance
      ba19f070
    • ross's avatar
      [project @ 2005-10-25 09:29:16 by ross] · e42f2d71
      ross authored
      Now that Data.Monoid is portable, move Monoid instances for sets and
      maps back to where the data types are defined.
      e42f2d71
    • ross's avatar
      [project @ 2005-10-25 09:11:25 by ross] · dbf490ac
      ross authored
      Change the Monoid instance for functions (as proposed on the libraries
      list, and interpreting silence as assent) from composition to pointwise
      combination.
      
      Rationale: The new instance is consistent with the instances for tuples,
      it's compositional, in that it builds instances for complex types out
      of instances for simpler ones, and it makes this module Haskell 98.
      
      Downside: the old instance was easy to use with Writer monads, and ShowS
      was a special case.  You can get that effect using the new Endo type,
      but you have to wrap and unwrap the newtype.
      
      Also added a few other simple monoids: dual, sum and product.
      dbf490ac
    • simonmar's avatar
      [project @ 2005-10-25 09:01:48 by simonmar] · d86967d1
      simonmar authored
      Note that throwTo blocks if the target thread is in a foreign call.
      d86967d1
  22. 22 Oct, 2005 2 commits
  23. 21 Oct, 2005 2 commits