summaryrefslogtreecommitdiff
path: root/libraries/integer-simple
Commit message (Collapse)AuthorAgeFilesLines
* Replace git.haskell.org with gitlab.haskell.org (#16196)Yuriy Syrovetskiy2019-04-041-1/+1
|
* integer-simple: Add documentation for Integer typeBen Gamari2019-04-031-0/+3
|
* Update Wiki URLs to point to GitLabTakenobu Tani2019-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This moves all URL references to Trac Wiki to their corresponding GitLab counterparts. This substitution is classified as follows: 1. Automated substitution using sed with Ben's mapping rule [1] Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy... New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy... 2. Manual substitution for URLs containing `#` index Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...#Zzz New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...#zzz 3. Manual substitution for strings starting with `Commentary` Old: Commentary/XxxYyy... New: commentary/xxx-yyy... See also !539 [1]: https://gitlab.haskell.org/bgamari/gitlab-migration/blob/master/wiki-mapping.json
* try to fix CIAlec Theriault2019-01-161-0/+2
|
* Match `integer-simple`'s API with `integer-gmp`Alec Theriault2019-01-162-6/+97
| | | | | | | | In `integer-simple`: * Added an efficient `popCountInteger` and `bitInteger` * Added an efficient `gcdInteger` and `lcmInteger` * Made `testBitInteger` more efficient
* Remove OPTIONS_HADDOCK hide in favour for not-homeAdam Sandberg Eriksson2019-01-061-1/+1
| | | | GHC Trac Issues: #15447
* Make GHC (the library) flexible in the choice of integer libraryJoachim Breitner2018-10-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: We have more and more users of GHC as a library, for example the Haskell-to-WebAssembly-compiler https://github.com/tweag/asterius. These need to make different decisions about various aspects of code generation than the host compiler, and ideally GHC-the-library allows them to set the `DynFlags` as needed. This patch adds a new `DynFlag` that configures which `integer` library to use. This flag is initialized by `cIntegerLibraryType` (as before), and is only used in `CorePrep` to decide whether to use `S#` or not. The other code paths that were varying based on `cIntegerLibraryType` are no now longer varying: The trick is to use `integer-wired-in` as the `-this-unit-id` when compiling either `integer-gmp` or `integer-simple`. Test Plan: Validate is happy. Reviewers: hvr, bgamari Reviewed By: bgamari Subscribers: TerrorJack, adamse, simonpj, rwbarton, carter GHC Trac Issues: #13477 Differential Revision: https://phabricator.haskell.org/D5079
* Get rid of some stuttering in comments and docsGabor Greif2017-12-191-1/+1
|
* A bunch of typofixesGabor Greif2017-09-264-4/+4
|
* Switch from -this-package-key to -this-unit-id.Edward Z. Yang2016-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A small cosmetic change, but we have to do a bit of work to actually support it: - Cabal submodule update, so that Cabal passes us -this-unit-id when we ask for it. This includes a Cabal renaming to be consistent with Unit ID, which makes ghc-pkg a bit more scrutable. - Build system is updated to use -this-unit-id rather than -this-package-key, to avoid deprecation warnings. Needs a version test so I resurrected the old test we had (sorry rwbarton!) - I've *undeprecated* -package-name, so that we are in the same state as GHC 7.10, since the "correct" flag will have only entered circulation in GHC 8.0. - I removed -package-key. Since we didn't deprecate -package-id I think this should not cause any problems for users; they can just change their code to use -package-id. - The package database is indexed by UNIT IDs, not component IDs. I updated the naming here. - I dropped the signatures field from ExposedModule; nothing was using it, and instantiatedWith from the package database field. - ghc-pkg was updated to use unit ID nomenclature, I removed the -package-key flags but I decided not to add any new flags for now. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: 23Skidoo, thomie, erikd Differential Revision: https://phabricator.haskell.org/D1780
* Patch-level increment integer-simple version 0.1.1.1Herbert Valerio Riedel2015-12-281-1/+1
|
* Rip out __HADDOCK__ referencesBen Gamari2015-11-141-4/+0
| | | | | | | | | | | | | | | As it turns out no one actually sets this macro anyways and haddock now clearly has no trouble parsing this code. Test Plan: Validate Reviewers: hvr, goldfire, austin Reviewed By: austin Subscribers: duncan, thomie, hvr Differential Revision: https://phabricator.haskell.org/D1463
* Package keys (for linking/type equality) separated from package IDs.Edward Z. Yang2014-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch set makes us no longer assume that a package key is a human readable string, leaving Cabal free to "do whatever it wants" to allocate keys; we'll look up the PackageId in the database to display to the user. This also means we have a new level of qualifier decisions to make at the package level, and rewriting some Safe Haskell error reporting code to DTRT. Additionally, we adjust the build system to use a new ghc-cabal output Make variable PACKAGE_KEY to determine library names and other things, rather than concatenating PACKAGE/VERSION as before. Adds a new `-this-package-key` flag to subsume the old, erroneously named `-package-name` flag, and `-package-key` to select packages by package key. RFC: The md5 hashes are pretty tough on the eye, as far as the file system is concerned :( ToDo: safePkg01 test had its output updated, but the fix is not really right: the rest of the dependencies are truncated due to the fact the we're only grepping a single line, but ghc-pkg is wrapping its output. ToDo: In a later commit, update all submodules to stop using -package-name and use -this-package-key. For now, we don't do it to avoid submodule explosion. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, simonmar, hvr, austin Subscribers: simonmar, relrod, carter Differential Revision: https://phabricator.haskell.org/D80
* Remove LANGUAGE pragrams implied by Haskell2010Herbert Valerio Riedel2014-05-141-2/+1
| | | | | | | | | Haskell2010 implies (at least) EmptyDataDecls, ForeignFunctionInterface, PatternGuards, DoAndIfThenElse, and RelaxedPolyRec. This is a follow-up to dd92e2179e3171a0630834b773c08d416101980d Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Set cabal files to default-language:Haskell2010Herbert Valerio Riedel2014-05-141-6/+6
| | | | | | | This is a first step towards eliminating `default-extensions` in favour of per-file declared `{-# LANGUAGE ... #-}` pragmas. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Update Cabal source-repository entries (re #8545)Herbert Valerio Riedel2014-04-191-1/+2
| | | | | | | | This adapts the source-repository entries to match the new situation of base.git, ghc-prim.git, integer-gmp.git, integer-simple.git, and template-haskell.git being folded into ghc.git Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Use a more sensible `hashInteger` implementationHerbert Valerio Riedel2014-01-031-2/+1
| | | | | | | This makes `hashInteger` behave the same way as `integer-gmp`s `hashInteger`. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Placate clang.Austin Seipp2013-10-261-2/+2
| | | | | | I forgot to push this as part of #8444. Signed-off-by: Austin Seipp <austin@well-typed.com>
* Follow changes in comparison primops (see #6135)Jan Stolarek2013-09-162-44/+43
|
* Update Git repo URL in `.cabal` fileHerbert Valerio Riedel2013-09-111-1/+1
|
* Comments onlyJan Stolarek2013-08-191-0/+5
| | | | Link to documentation of library in the wiki
* Comparison primops return Int# (Fixes #6135)Jan Stolarek2013-07-033-33/+53
| | | | | For a deatiled discussion of this changes please visit the wiki page: http://hackage.haskell.org/trac/ghc/wiki/PrimBool
* More build fixesIan Lynagh2013-05-191-2/+2
|
* Fix buildIan Lynagh2013-05-191-2/+2
| | | | | | | If we use "smallInteger 0#" in the definitions, then that turns into an Integer literal, but the compiler can't handle Integer literals while compiling the integer package (as it can't look up the mkInteger Id yet).
* Bump version number following new policyIan Lynagh2012-11-301-1/+1
| | | | | We now keep the HEAD version numbers as values which would be suitable for immediate release.
* Add comment to .cabal file saying what GHC 7.6.1 shipped withIan Lynagh2012-11-301-0/+1
|
* fix typoGabor Greif2012-08-291-1/+1
|
* Define testBitInteger; part of #3489. Patch from pumpkingod@gmail.comIan Lynagh2012-08-052-1/+8
|
* track integer-gmp and add 'divInteger', 'modInteger'Gabor Greif2012-07-242-2/+13
|
* Bump version to 0.1.0.1Paolo Capriotti2012-07-101-1/+1
|
* Update .gitignore.Paolo Capriotti2012-03-061-0/+3
|
* remove erroneous '::' in NOINLINE pragmaSimon Marlow2011-10-141-1/+1
|
* Define mkIntegerIan Lynagh2011-09-172-1/+11
| | | | Now used by GHC to generate Integer literals.
* Add NOINLINE pragmasIan Lynagh2011-09-131-0/+38
| | | | Stops code size explosions, and allows the built-in rules to fire
* Update importsIan Lynagh2011-09-131-2/+1
|
* Add a note about why/how we avoid patErrorIan Lynagh2011-08-071-0/+32
|
* Make pattern matches more obviously completeIan Lynagh2011-08-061-38/+58
| | | | Fixes the build when compiling with -O0
* Eliminate orphan instancesIan Lynagh2011-07-303-731/+717
|
* Remove -Werror from the cabal fileIan Lynagh2011-07-291-1/+1
|
* Rename toInt# -> integerToInt for consistencyIan Lynagh2011-07-231-3/+3
|
* Follow library changesIan Lynagh2011-07-221-0/+14
|
* Part of #5122 "Faster conversion between Rational and Double/Float" fixIan Lynagh2011-04-223-0/+211
| | | | From daniel.is.fischer.
* Bump Cabal version we implement, and add source repository to .cabal fileIan Lynagh2011-04-051-1/+5
|
* Add extensions to LANGUAGE pragmaIan Lynagh2011-01-111-1/+1
|
* Follow GHC.Bool/GHC.Types mergeIan Lynagh2010-10-231-1/+1
|
* Pad version to 0.1.0.0Ian Lynagh2009-09-201-1/+1
|
* Add NoImplicitPrelude to the extensions usedIan Lynagh2009-07-221-1/+2
|
* Add an import so the deps get sorted out correctlyIan Lynagh2009-07-221-0/+1
|
* () is now available, so use that instead of our ownIan Lynagh2009-07-221-30/+28
|
* Follow changes in GHC and the other librariesIan Lynagh2009-07-224-26/+126
|