summaryrefslogtreecommitdiff
path: root/libraries/base/Text
Commit message (Collapse)AuthorAgeFilesLines
* Make Applicative a superclass of MonadAustin Seipp2014-09-092-29/+53
| | | | | | | | | | | | | | | | | | | | | Summary: This includes pretty much all the changes needed to make `Applicative` a superclass of `Monad` finally. There's mostly reshuffling in the interests of avoid orphans and boot files, but luckily we can resolve all of them, pretty much. The only catch was that Alternative/MonadPlus also had to go into Prelude to avoid this. As a result, we must update the hsc2hs and haddock submodules. Signed-off-by: Austin Seipp <austin@well-typed.com> Test Plan: Build things, they might not explode horribly. Reviewers: hvr, simonmar Subscribers: simonmar Differential Revision: https://phabricator.haskell.org/D13
* Export abstract `Text.Read.Lex.Number` typeHerbert Valerio Riedel2013-11-011-2/+2
| | | | | | | | | This fixes some "could not find link destinations" Haddock warnings and seems to the "right thing to do". The since-annotation for `Number` is changed as the `Number` has becomes referencable in user code only w/ 4.7.0.0 even though it existed already in 4.6.0.0. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add Haddock `/Since: 4.5.[01].0/` comments to symbolsHerbert Valerio Riedel2013-09-221-1/+3
| | | | | | | | | | This commit retroactively adds `/Since: 4.5.[01].0/` annotations to symbols newly added/exposed in `base-4.5.[01].0` (as shipped with GHC 7.4.[12]). See also 6368362f which adds the respective annotation for symbols newly added in `base-4.7.0.0` (that goes together with GHC 7.8.1). Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add Haddock `/Since: 4.6.0.0/` comments to symbolsHerbert Valerio Riedel2013-09-212-0/+6
| | | | | | | | | | This commit retroactively adds `/Since: 4.6.0.0/` annotations to symbols newly added/exposed in `base-4.6.0.0` (as shipped with GHC 7.6.1). See also 6368362f which adds the respective annotation for symbols newly added in `base-4.7.0.0` (that goes together with GHC 7.8.1). Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add Haddock `/Since: 4.7.0.0/` comments to new symbolsHerbert Valerio Riedel2013-09-212-0/+40
| | | | | | | | | | | | | | | | | | These annotations were added in such a way, that the line {{{ /Since: 4.7.0.0/ }}} represents the last paragraph of the Haddock comment. Maybe Haddock will have support for this meta-syntax at some point, and be able to inherited the since-version property to the children of an annotated symbol and display the since-version property in the rendered documentation only in cases when it's not visually obvious (for instance, when re-exporting documentation strings). Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Replaced Text.Printf with extensible printf, and made comcommitant changesBart Massey2013-09-171-192/+741
| | | | Signed-off-by: Joachim Breitner <mail@joachim-breitner.de>
* Constant-fold `__GLASGOW_HASKELL__` CPP conditionalsHerbert Valerio Riedel2013-09-177-61/+5
| | | | | | | | | | Now that HUGS and NHC specific code has been removed, this commit "folds" the now redundant `#if((n)def)`s containing `__GLASGOW_HASKELL__`. This renders `base` officially GHC only. This commit also removes redundant `{-# LANGUAGE CPP #-}`. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Remove Hugs98 specific codeHerbert Valerio Riedel2013-09-172-22/+2
| | | | | | | For rationale. see http://permalink.gmane.org/gmane.comp.lang.haskell.ghc.devel/2349 Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Remove nhc98-specific files and contentIan Lynagh2013-02-153-39/+0
|
* tabs -> spacesSimon Marlow2013-01-281-63/+62
|
* fix negative numbers for * modifiers (#7457)Simon Marlow2013-01-281-1/+1
|
* Merge branch 'master' of http://darcs.haskell.org//packages/baseSimon Peyton Jones2013-01-081-1/+17
|\
| * Fix Data.Fixed.Fixed's Read instance; fixes #7483Ian Lynagh2013-01-031-1/+17
| |
* | Remove unused importSimon Peyton Jones2013-01-081-1/+1
|/
* Define GHC.Read.expectP and Text.Read.Lex.expectSimon Peyton Jones2012-12-211-1/+6
| | | | They are now used by TcGenDeriv
* Update some H98 references to refer to H2010Ian Lynagh2012-11-172-4/+4
|
* Merge branch 'master' of http://darcs.haskell.org//packages/baseSimon Peyton Jones2012-10-315-85/+81
|\
| * Remove commented types in module export listsIan Lynagh2012-10-275-85/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These comments are rather less useful now that haddock can give docs with the same informatino in the module synopsis. Having to maintain them when making changes to the library is a pain, and when people forget about doing so there is nothing that checks that the comments are right, so mistakes tend to linger. Of the comments that my script detected, 78 of 684 were already incorrect in one way or another, e.g. missing context: Text.Show.showsPrec Comment type: Int -> a -> ShowS Actual type: Show a => Int -> a -> ShowS wrong context: Numeric.readInt Comment type: Integral a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS a Actual type: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS a not following a class change (e.g. Num losing its Eq superclass): Text.Read.Lex.readOctP Comment type: Num a => ReadP a Actual type: (Eq a, Num a) => ReadP a not following the Exceptions change: GHC.Conc.childHandler Comment type: Exception -> IO () Actual type: SomeException -> IO () or just always been wrong: GHC.Stable.deRefStablePtr Comment type: StablePtr a -> a Actual type: StablePtr a -> IO a
* | Replace Rank2Types with RankNTypesSimon Peyton Jones2012-10-311-1/+1
|/
* Fix parsing of RealFloat with huge exponents (#7034).Paolo Capriotti2012-07-021-1/+7
| | | | | | Ensure numberToRangedRational returns Nothing immediately if the exponent is outside Int range, so that we avoid an integer overflow later.
* Avoid making huge Rational's when reading Double/Float; fixes #5688Ian Lynagh2012-03-111-1/+35
|
* Make "100e12" not parse as an Integer; part of #5688Ian Lynagh2012-03-011-6/+1
| | | | The report says that it isn't meant to.
* Change how NaN and Infinity are read by lexIan Lynagh2012-03-011-21/+4
| | | | | They now get read as Ident's, and the Read Double/Float instances (via convertFrac) handle that Ident specially.
* Refactor number lexing; part of #5688Ian Lynagh2012-03-011-22/+44
| | | | | This doesn't change the behaviour yet, but I think it's a step in the right direction.
* Move chr's definition into a new GHC.CharIan Lynagh2012-02-281-0/+1
| | | | This eliminates a SOURCE import
* Remove some __HADDOCK__ CPPIan Lynagh2012-02-282-4/+0
| | | | I think it was all to work around problems in old versions of haddock.
* 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'?
* Update base for latest Safe Haskell.David Terei2011-10-256-0/+6
|
* Remove the Eq superclass of NumIan Lynagh2011-10-121-3/+3
|
* Minor: replace undefined uses with error as mentioned in ticket #5532Ryan Newton2011-10-061-2/+2
|
* Be more efficient reading fractional literalsDaniel Fischer2011-09-191-19/+25
| | | | Avoid a few unnecessary gcds to speed up reading.
* Whitespace only in Text.Read.LexDaniel Fischer2011-09-191-26/+26
|
* SafeHaskell: Added SafeHaskell to baseDavid Terei2011-06-187-0/+7
|
* Use explicit language extensions & remove extension fields from base.cabalsimonpj@microsoft.com2011-01-287-5/+20
| | | | | | | | | | Add explicit {-# LANGUAGE xxx #-} pragmas to each module, that say what extensions that module uses. This makes it clearer where different extensions are used in the (large, variagated) base package. Now base.cabal doesn't need any extensions field Thanks to Bas van Dijk for doing all the work.
* Add type signatures to cope with lack of local generalisationsimonpj@microsoft.com2010-07-281-2/+3
|
* Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmasIan Lynagh2009-12-051-0/+1
|
* Tweak layout to be accepted by the alternative layout rulIan Lynagh2009-11-251-1/+2
|
* Apply fix for #1548, from squadette@gmail.comSimon Marlow2009-08-191-14/+19
|
* Fix "warn-unused-do-bind" warnings where we really do want to ignore the resultIan Lynagh2009-07-092-17/+17
|
* Add 'eof' to Text.ParserCombinators.ReadPsimonpj@microsoft.com2009-07-061-1/+12
| | | | | Add a ReadP parser that succeeds at the end of input. Very useful!
* In nhc98, Word is a type synonym, so class instance is not possible.Malcolm.Wallace@cs.york.ac.uk2008-09-171-0/+2
|
* Fix bugs in Text.Printf (#1548)Simon Marlow2008-09-161-23/+30
|
* Fix more warningsIan Lynagh2008-08-201-0/+1
|
* Move some bits around to stop Data.Either being in the base import knotIan Lynagh2008-08-061-0/+30
|
* Fix warningsIan Lynagh2008-08-053-15/+18
|
* Remove -fglasgow-exts from pragmas and commentsIan Lynagh2008-06-161-1/+1
|
* Avoid using deprecated flagsIan Lynagh2008-06-165-5/+5
|
* untabifyDon Stewart2008-03-051-11/+11
|
* untabifyDon Stewart2008-03-051-64/+64
|
* Whitespace onlyDon Stewart2008-02-071-13/+13
|