summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Copy tests from GHC testsuite; part of #1161.Paolo Capriotti2012-03-09278-0/+9497
|
* Make "100e12" not parse as an Integer; part of #5688Ian Lynagh2012-03-011-6/+1
| | | | The report says that it isn't meant to.
* Add a readInteger001 testIan Lynagh2012-03-013-0/+10
|
* Change how NaN and Infinity are read by lexIan Lynagh2012-03-012-21/+6
| | | | | They now get read as Ident's, and the Read Double/Float instances (via convertFrac) handle that Ident specially.
* Add a test for reading DoublesIan Lynagh2012-03-013-0/+18
|
* Rename lexNum test to lex001, and expand itIan Lynagh2012-03-014-19/+97
|
* Refactor number lexing; part of #5688Ian Lynagh2012-03-013-31/+52
| | | | | This doesn't change the behaviour yet, but I think it's a step in the right direction.
* Remove some redundant importsIan Lynagh2012-02-294-6/+1
|
* Move chr's definition into a new GHC.CharIan Lynagh2012-02-289-8/+22
| | | | This eliminates a SOURCE import
* Remove some __HADDOCK__ CPPIan Lynagh2012-02-287-27/+0
| | | | I think it was all to work around problems in old versions of haddock.
* Move nocldstop from HsBase.h to HsUnix.hIan Lynagh2012-02-261-3/+0
|
* Use CAPI for lseekIan Lynagh2012-02-262-16/+5
|
* Remove another unused definitionIan Lynagh2012-02-261-2/+0
|
* Remove some unused codeIan Lynagh2012-02-263-19/+0
|
* Convert some FFI bindings to use "value" importsIan Lynagh2012-02-262-22/+4
|
* Remove an unsed definition in HsBase.hIan Lynagh2012-02-221-4/+0
| | | | Bytestring uses it, so I've moved it into that package.
* Fix an FFI decl: it should have been using capi but was using ccallIan Lynagh2012-02-221-1/+1
|
* Change CSigset into a (empty) datatypeIan Lynagh2012-02-221-2/+3
| | | | | This is necessary now that we no longer allow CTYPE pragmas on type synonyms.
* Convert some more declarations to use the CAPIIan Lynagh2012-02-214-18/+13
|
* Redo the sigset capi changesIan Lynagh2012-02-212-26/+4
| | | | | Now that we have the CTYPE pragma we can do this in such a way that it doesn't break the build on OS X.
* Remove Control.OldExceptionIan Lynagh2012-02-182-807/+0
|
* Fix build on 32bit platformsIan Lynagh2012-02-181-3/+1
|
* Use the new unsigned quotRem primopIan Lynagh2012-02-171-7/+19
|
* Merge branch 'master' of http://darcs.haskell.org/packages/baseSimon Peyton Jones2012-02-173-12/+12
|\
| * Add CTYPE pragmas for GHC typesIan Lynagh2012-02-163-12/+12
| |
* | Eta expand unsafeCoerce and add a pointer to the NoteSimon Peyton Jones2012-02-171-1/+4
| |
* | Use throwIO rather than throw where possibleSimon Peyton Jones2012-02-171-8/+8
|/ | | | This makes exceptions more predictable.
* Merge branch 'master' of http://darcs.haskell.org/packages/baseIan Lynagh2012-02-151-2/+5
|\
| * Fix documentation of minimal complete definition of Bits instancesJohan Tibell2012-02-141-1/+3
| | | | | | | | | | | | Added testBit, bit, and popCount to the required set. They no longer have default implementations as the Num constraint was removed from the Bits class.
| * Fix bug in popCountDefault. Fixes #5872Johan Tibell2012-02-141-1/+2
| | | | | | | | | | Also add an INLINABLE pragma so that the function can be specialized at the call site.
* | Define a divModInt function that only does 1 divisionIan Lynagh2012-02-143-11/+27
| |
* | Use the new quotRemInt# primopIan Lynagh2012-02-144-16/+29
|/
* System.Environment: improve 'getEnv' doc to mention closest 'setEnv' we have ↵gwern2012-02-131-6/+6
| | | | ('System.Posix.putEnv')
* Bump base's version to match 7.4.1'sIan Lynagh2012-02-101-1/+1
|
* Move Text.Printf tests from testsuite; part of #1161Ian Lynagh2012-02-034-0/+22
|
* num009 now only fails on OS X i386, not OS X amd64Ian Lynagh2012-01-291-1/+1
|
* Foldable typeclass: make foldl' and foldr' class methods; fixes trac #5538Ian Lynagh2012-01-241-14/+16
|
* Added missing Functor, Applicative, Alternative and MonadPlus instances ↵Bas van Dijk2012-01-242-1/+42
| | | | Added Applicative and Alternative instances for ReadP and ReadPrec Added Functor, Applicative, Alternative and MonadPlust instances for ArrowMonadx
* Expand num009 to test more values, and add mingw32 outputSimon Marlow2012-01-163-10/+34
| | | | | | | | | | This test checks that calling trig functions via the FFI gives the same results as the Prelude versions. But it uses an extreme value to test: 1e20, and on Windows this gives slightly different results (for unknown reasons). However, using less extreme values gives reasonable results, so I've added more values to the test to check that the discrepancy is limited to the extreme - indeed it first goes wrong around 1e19, values below that seem to be fine.
* Use sharing in the Alternative instance of MaybeBas van Dijk2012-01-141-2/+2
|
* Remove Num superclass of Bits Add and export bitDefault, testBitDefault and ↵Bas van Dijk2012-01-144-14/+90
| | | | popCountDefault from Data.Bits.
* Moved the instances from Control.Monad.Instances to GHC.Base and Data.EitherBas van Dijk2012-01-135-27/+21
|
* Add <> as an alias for mappendJohan Tibell2012-01-071-0/+8
|
* Removing the MonadGroup class. This is to reflect the removal of the default ↵George Giorgidze2012-01-072-37/+0
| | | | grouping clause from the SQL-like comprehension notation ;
* Export setNumCapabilitiesSimon Marlow2012-01-031-0/+1
| | | | | I hadn't noticed that we already have getNumCapabilities here, so we should also have setNumCapabilities.
* Export "readEither" and add "readMaybe".Iavor S. Diatchki2011-12-221-0/+13
| | | | | | | | | | | This commit implements the change discussed in the following thread on the Haskell libraries list: http://www.haskell.org/pipermail/libraries/2011-December/thread.html#17290 NOTE: This only implements the change for GHC, but the change makes sense for Hugs too... Perhaps we should simply re-implement 'readEither' in terms of 'reads'?
* Re-export Constraint from GHC.ExtsJose Pedro Magalhaes2011-12-221-1/+3
|
* update documentation for getNumCapabilities and setNumCapabilitiesSimon Marlow2011-12-191-21/+11
|
* Merge branch 'master' of http://darcs.haskell.org/packages/baseIan Lynagh2011-12-181-0/+8
|\
| * Document that -T RTS flag is necessary.Edward Z. Yang2011-12-161-0/+8
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>