Permalink
Commits on Apr 3, 2011
  1. Change some uses of CString functions to CAString instead

    This prevents potential loops in future if we implement
    FFI spec behaviour where the CString family use the locale encoding.
    batterseapower committed Apr 3, 2011
  2. Add .gitignore

    batterseapower committed Apr 3, 2011
  3. Less strict inits and tails

    Converted from darcs patches from Bas van Dijk <v.dijk.bas@gmail.com>
    
    Previously: tails _|_ = _|_
    Now:        tails _|_ = _|_ : _|_
    
    Previously: inits _|_ = _|_
    Now:        inits _|_ = [] : _|_
    igfoo committed Apr 3, 2011
  4. Tweak alloca docs

    Based on a patch from Jason Dagit
    igfoo committed Apr 3, 2011
  5. Generalize the type of Foreign.Marshal.Utils.maybeNew; fixes trac #5044

    git conversion of:
    Tue Mar  8 22:31:07 CET 2011  Bas van Dijk <v.dijk.bas@gmail.com>
      * Generalize the type of Foreign.Marshal.Utils.maybeNew
      This makes it consistent with maybeWith
    igfoo committed Apr 3, 2011
Commits on Mar 31, 2011
  1. Rewrite FPTOOLS_CHECK_HTYPE to be cross-compilation-friendly

    Inspired by a patch from Mark Lentczner
    igfoo committed Mar 31, 2011
Commits on Mar 30, 2011
  1. Export the affinity API from Control.Concurrent: forkOn and friends.

    forkOn             :: Int -> IO () -> IO ThreadId
    forkOnWithUnmask   :: Int -> ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
    getNumCapabilities :: IO Int
    threadCapability   :: ThreadId -> IO (Int, Bool)
    
    Following discussion on the libraries list, I renamed forkOnIO to
    forkOn.  In due course we might want to also rename forkIO to fork.
    
    I left the Int argument as it is, it's quite useful to be able to
    specify a number to be interpreted modulo the actual number of
    processors.
    
    I also used the term "capability" consistently.  It might not be the
    best choice, but we have to pick something.
    simonmar committed Mar 30, 2011
Commits on Mar 29, 2011
  1. fix Haddock error

    simonmar committed Mar 29, 2011
  2. add forkIOWithUnmask, forkOnIOWithUnmask; deprecate forkIOUnmasked

        
    With forkIOUnmasked it wasn't possible to reliably set up an exception
    handler in the child thread, because exceptions were immediately
    unmasked.
    
    forkIOWithUnmask   ::        ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
    forkOnIOWithUnmask :: Int -> ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
    simonmar committed Mar 29, 2011
  3. Add GHC.IO.Handle.FD.openFileBlocking (#4248)

    like openFile, but opens the file without O_NONBLOCK
    simonmar committed Mar 29, 2011
Commits on Mar 23, 2011
Commits on Mar 21, 2011
  1. Rename System.Event to GHC.Event

    It's just an internal GHC library, for now at least
    igfoo committed Mar 21, 2011
Commits on Mar 12, 2011
  1. Never use epoll_create1; fixes trac #5005

    There is little benefit to using epoll_create1 (especially if we still
    have the epoll_create code too), and it cuases problems if people build
    a GHC binary on one machine and try to use it on another.
    igfoo committed Mar 12, 2011
Commits on Mar 9, 2011
  1. Fix warning

    igfoo committed Mar 9, 2011
Commits on Mar 3, 2011
Commits on Mar 1, 2011
  1. add threadCapability :: ThreadId -> IO (Int,Bool)

    -- | returns the number of the capability on which the thread is currently
    -- running, and a boolean indicating whether the thread is locked to
    -- that capability or not.  A thread is locked to a capability if it
    -- was created with @forkOnIO@.
    simonmar committed Mar 1, 2011
Commits on Feb 28, 2011
  1. improve discussion of the laws (doc comments only)

    following a suggestion of Russell O'Connor on the libraries list.
    Ross Paterson committed Feb 28, 2011
Commits on Feb 26, 2011
Commits on Feb 25, 2011
  1. Grammar fix

    igfoo committed Feb 25, 2011
Commits on Feb 19, 2011
Commits on Feb 18, 2011
  1. Remove most of GHC.PArr

    - First step of migrating this code into the dph package
    mchakravarty committed Feb 18, 2011
Commits on Feb 15, 2011
Commits on Feb 11, 2011
  1. Fix incorrect #ifdef for nhc98

    Malcolm.Wallace@me.com committed Feb 11, 2011
  2. Add Data.String to the nhc98 build

    Malcolm.Wallace@me.com committed Feb 11, 2011
Commits on Feb 7, 2011
Commits on Jan 19, 2011
Commits on Jan 16, 2011
Commits on Dec 22, 2010
  1. Add allowInterrupt :: IO () (#4810)

    docs:
    
    -- | When invoked inside 'mask', this function allows a blocked
    -- asynchronous exception to be raised, if one exists.  It is
    -- equivalent to performing an interruptible operation (see
    -- #interruptible#), but does not involve any actual blocking.
    --
    -- When called outside 'mask', or inside 'uninterruptibleMask', this
    -- function has no effect.
    simonmar committed Dec 22, 2010
Commits on Oct 18, 2010
  1. FIX #2271

    Faster rounding functions for Double and float with Int or Integer results.
    Fixes #2271.
    Since some glibc's have buggy rintf or rint functions and the behaviour of
    these functions depends on the setting of the rounding mode, we provide our
    own implementations which always round ties to even.
    
    Also added rewrite rules and removed trailing whitespace.
    Daniel Fischer committed Oct 18, 2010
Commits on Oct 14, 2010
  1. Do not export GHC.Generics from GHC.Base

    jpm@cs.uu.nl committed Oct 14, 2010