1. 11 Jun, 2012 1 commit
  2. 08 Jun, 2012 1 commit
  3. 07 Jun, 2012 4 commits
    • Simon Marlow's avatar
      add forkFinally · 11b4bad5
      Simon Marlow authored
      This is a more robust version of "forkIO (m `finally` k)", because it
      closes a window between thread creation and the finally where the
      thread can receive an async exception.  Useful for layers over threads
      that need to catch threads dying with absolute certainty.
      
      forkFinally :: IO a -> (Either SomeException a -> IO ()) -> IO ThreadId
      forkFinally action and_then =
        mask $ \restore ->
          forkIO $ try (restore action) >>= and_then
      11b4bad5
    • pcapriotti's avatar
      Allow openTempFile to retry when it hits a directory (#4968). · 53184fb8
      pcapriotti authored
      Windows returns an EACCES error instead of EEXIST when a call to `open`
      fails due to an existing directory, so add a special case for this
      situation.
      53184fb8
    • pcapriotti's avatar
      Refactor findTempName: factor out file creation. · 4546adb5
      pcapriotti authored
      Add openNewFile function, which creates a new file and returns a file
      descriptor for it.
      4546adb5
    • Simon Peyton Jones's avatar
      Make Sing kind-polymorphic · 3bcff292
      Simon Peyton Jones authored
      3bcff292
  4. 05 Jun, 2012 1 commit
  5. 04 Jun, 2012 1 commit
  6. 27 May, 2012 2 commits
  7. 26 May, 2012 1 commit
  8. 21 May, 2012 5 commits
  9. 20 May, 2012 1 commit
    • Ian Lynagh's avatar
      Change a few FFI imports to use CAPI · cf14ed62
      Ian Lynagh authored
      On Win64, ssize_t is 64 bit, but functions like read return 32 bit
      ints. The CAPI wrapper means the C compiler takes care of doing all
      the necessary casting.
      
      Technically we should instead be making the types of the FFI imports
      different on different platforms, but I think this will work out
      simpler overall.
      
      Before this fix, when the functions failed with -1, we thought they
      were returning with 4294967295, and so didn't throw an exception.
      This lead to a segfault in echo001(ghci).
      cf14ed62
  10. 16 May, 2012 1 commit
  11. 12 May, 2012 1 commit
  12. 11 May, 2012 1 commit
  13. 08 May, 2012 3 commits
  14. 03 May, 2012 1 commit
  15. 02 May, 2012 1 commit
  16. 01 May, 2012 5 commits
  17. 30 Apr, 2012 1 commit
  18. 27 Apr, 2012 1 commit
  19. 25 Apr, 2012 2 commits
  20. 24 Apr, 2012 2 commits
  21. 17 Apr, 2012 3 commits
  22. 16 Apr, 2012 1 commit