- 17 Jun, 2011 1 commit
-
-
chak@cse.unsw.edu.au. authored
-
- 12 Jun, 2011 7 commits
-
-
daniel.is.fischer authored
Based on Ross Paterson's suggestion, a short explanation of the meaning of gcd, and a mention of possible negative results.
-
Ian Lynagh authored
-
daniel.is.fischer authored
Change behaviour of 'gcd 0 0' from raising an exception to returning 0 to make it total and conform to mathematical practice.
-
Ian Lynagh authored
On Windows we use Int32.
-
Ian Lynagh authored
rather than inlining the implementation of the test.
-
Ian Lynagh authored
We can now specify what happens if the type doesn't exist
-
Ian Lynagh authored
The macro was just ignoring the defaults.
-
- 11 Jun, 2011 4 commits
-
-
Ian Lynagh authored
We didn't actually use the result, and my Linux box doesn't have wint_t.
-
altaic authored
-
altaic authored
Add Haskell types for C types useconds_t and suseconds_t, which are respectively CUSeconds and CSUSeconds. The tv_usec field of struct timeval was incorrectly used as C type time_t; the actual C type is suseconds_t. On OS X, time_t is longer than suseconds_t, which caused garbage bits to be copied as reported in trac #4247 and #4970. This patch is part 1 of 4 to fix those tickets.
-
- 09 Jun, 2011 1 commit
-
-
Simon Peyton Jones authored
See Note [Make forever INLINABLE] in Control.Monad
-
- 26 May, 2011 1 commit
-
-
Simon Peyton Jones authored
-
- 25 May, 2011 1 commit
-
-
- 24 May, 2011 6 commits
-
-
Ian Lynagh authored
The Haskell' committee decided to remove datatype contexts from the language: http://www.haskell.org/pipermail/haskell-prime/2011-January/003335.html
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
and correct the documentation for hSetBinaryMode which claimed that it was using the latin1 encoding when in fact it was using an unchecked modulo-256 version of it.
-
- 23 May, 2011 2 commits
-
-
Ian Lynagh authored
-
Ian Lynagh authored
-
- 20 May, 2011 1 commit
-
-
- 19 May, 2011 1 commit
-
-
Simon Peyton Jones authored
-
- 18 May, 2011 2 commits
-
-
batterseapower authored
-
batterseapower authored
This replaces the previous scheme (which used lone surrogates). The reason is that there is Haskell software in the wild (i.e. the text package) that chokes on Char values that do not represent Unicode characters. This new approach will not work correctly if the reserved private-use characters are actually encountered in the input, but we expect this to be rare.
-
- 17 May, 2011 1 commit
-
-
- 14 May, 2011 1 commit
-
-
batterseapower authored
patch series fixes #5061, #1414, #3309, #3308, #3307, #4006 and #4855. The major changes are: 1) Make Foreign.C.String.*CString use the locale encoding This change follows the FFI specification in Haskell 98, which has never actually been implemented before. The functions exported from Foreign.C.String are partially-applied versions of those from GHC.Foreign, which allows the user to supply their own TextEncoding. We also introduce foreignEncoding as the name of the text encoding that follows the FFI appendix in that it transliterates encoding errors. 2) I also changed the code so that mkTextEncoding always tries the native-Haskell decoders in preference to those from iconv, even on non-Windows. The motivation here is simply that it is better for compatibility if we do this, and those are the ones you get for the utf* and latin1* predefined TextEncodings anyway. 3) Implement surrogate-byte error handling mode for TextEncoding This implements PEP383-like behaviour so that we are able to roundtrip byte strings through Strings without loss of information. The withFilePath function now uses this encoding to get to/from CStrings, so any code that uses that will get the right PEP383 behaviour automatically. 4) Implement three other coding failure modes: ignore, throw error, transliterate These mimic the behaviour of the GNU Iconv extensions.
-
- 12 May, 2011 1 commit
-
-
- 10 May, 2011 1 commit
-
-
Simon Marlow authored
-
- 09 May, 2011 1 commit
-
-
dreixel authored
-
- 04 May, 2011 3 commits
-
-
-
Simon Peyton Jones authored
-
dreixel authored
-
- 03 May, 2011 2 commits
-
-
dreixel authored
Put Eq and Ord instances for Arity, Associativity, and Fixity in GHC.Classes, Show instances in GHC.Show, and Read instances in GHC.Read.
-
dreixel authored
Moved the CString functions to GHC.CString in ghc-prim (needed for the new generic deriving mechanism). Import and re-export GHC.CString from GHC.Base.
-
- 02 May, 2011 2 commits
-
-
-
dreixel authored
-
- 30 Apr, 2011 1 commit
-
-
Ian Lynagh authored
Based on Simon PJ's text in #5161.
-