- 29 May, 2018 1 commit
-
-
David Feuer authored
When `readMVar` was implemented using `takeMVar` and `putMVar`, we needed to use `modifyMVarMasked` in `readChan` just in case the `readMVar` was interrupted between taking and putting. Now that `readMVar` uses an atomic primop, this is impossible, so we can safely unmask `readMVar`. Reviewers: hvr, bgamari, simonmar Reviewed By: simonmar Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4738
-
- 02 Mar, 2018 1 commit
-
-
Chaitanya Koparkar authored
Test Plan: ./validate Reviewers: hvr, goldfire, bgamari, RyanGlScott Reviewed By: RyanGlScott Subscribers: rwbarton, thomie, carter GHC Trac Issues: #11767 Differential Revision: https://phabricator.haskell.org/D4452
-
- 03 Oct, 2017 1 commit
-
-
Ben Gamari authored
Removes isEmptyChan and unGetChan, which have been deprecated for a very long time. See #13561. Test Plan: Validate Reviewers: austin, hvr Subscribers: rwbarton, thomie GHC Trac Issues: #13561 Differential Revision: https://phabricator.haskell.org/D4060
-
- 10 Apr, 2017 1 commit
-
-
Ömer Sinan Ağacan authored
- Mention that the read end is an `MVar`, so fairness guarantees are inherited. - Mention that it can throw `BlockedIndefinitelyOnMVar` exception. Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #5466 Differential Revision: https://phabricator.haskell.org/D3439
-
- 29 Mar, 2016 1 commit
-
-
Erik de Castro Lopo authored
These are implemented using `MVars` which have known caveats. Suggest the use of `TChan` from the stm library instead. Test Plan: n/a Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2047
-
- 07 Mar, 2015 1 commit
-
-
Herbert Valerio Riedel authored
Thanks to #9858 `Typeable` doesn't need to be explicitly derived anymore. This also makes `AutoDeriveTypeable` redundant, as well as some imports of `Typeable` (removal of whose may be beneficial to #9707). This commit removes several such now redundant use-sites in `base`. Reviewed By: austin, ekmett Differential Revision: https://phabricator.haskell.org/D712
-
- 19 Oct, 2014 1 commit
-
-
Herbert Valerio Riedel authored
Since they're implied by the lack of `NoImplicitPrelude`
-
- 27 May, 2014 1 commit
-
-
Herbert Valerio Riedel authored
This is a first step towards addressing #9111 This results in the following additional Typeable (exported) instances being generated (list was compiled by diff'ing hoogle txt output): instance Typeable CFile instance Typeable 'CFile instance Typeable CFpos instance Typeable 'CFpos instance Typeable CJmpBuf instance Typeable 'CJmpBuf instance Typeable ChItem instance Typeable QSem instance Typeable ID instance Typeable 'ID instance Typeable CONST instance Typeable Qi instance Typeable Qr instance Typeable Mp instance Typeable ConstrRep instance Typeable Fixity instance Typeable 'Prefix instance Typeable 'Infix instance Typeable Constr instance Typeable DataType instance Typeable DataRep instance Typeable Data instance Typeable HasResolution instance Typeable IsList Signed-off-by:
Herbert Valerio Riedel <hvr@gnu.org>
-
- 30 Jan, 2014 1 commit
-
-
Herbert Valerio Riedel authored
This fixes the markup at the top of `Control.Arrow`, and improves the markup inside DEPRECATED strings. (Haddock supports markup inside DEPRECATED messages, which allows to turn references to Haskell entities into hyperlinks by using the usual Haddock markup.) Signed-off-by:
Herbert Valerio Riedel <hvr@gnu.org>
-
- 17 Sep, 2013 2 commits
-
-
Herbert Valerio Riedel authored
With GHC 7.8's PolyKinds the macros in `<Typeable.h>` are no longer of any use, and their use is clearly obsolete. The sites using those macros are replaced by auto-derivations of `Typeable` instances. This reduces reliance on the CPP extension and the compile dependency on `Typeable.h` in a couple of modules. Signed-off-by:
Herbert Valerio Riedel <hvr@gnu.org>
-
Herbert Valerio Riedel authored
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>
-
- 16 Feb, 2013 1 commit
-
-
ian@well-typed.com authored
-
- 27 Oct, 2012 1 commit
-
-
ian@well-typed.com authored
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
-
- 04 Jul, 2012 1 commit
-
-
Simon Marlow authored
-
- 11 Jun, 2012 1 commit
-
-
Simon Marlow authored
-
- 13 Mar, 2012 1 commit
-
-
joeyadams authored
-
- 18 Jun, 2011 1 commit
-
-
dterei authored
-
- 24 Apr, 2011 1 commit
-
-
Ian Lynagh authored
As well as being more pleasant, this fixes #1841: Data.Typeable: Instances of basic types don't provide qualified strings to mkTyCon
-
- 28 Jan, 2011 1 commit
-
-
simonpj@microsoft.com authored
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.
-
- 25 Nov, 2010 1 commit
-
-
basvandijk authored
-
- 05 Jul, 2010 1 commit
-
-
Simon Marlow authored
-
- 04 Sep, 2008 1 commit
-
-
Ian Lynagh authored
-
- 24 Aug, 2008 1 commit
-
-
Ian Lynagh authored
-
- 20 Aug, 2008 1 commit
-
-
Ian Lynagh authored
-
- 08 Mar, 2008 1 commit
-
-
Don Stewart authored
-
- 13 Oct, 2005 1 commit
-
-
ross authored
update non-portability reasons
-
- 14 Dec, 2004 1 commit
-
-
simonmar authored
Some more Typeable instances, as requested on the ghc-users list a while back.
-
- 03 Jun, 2002 1 commit
-
-
simonmar authored
IO.hGetContents ==> System.IO.hGetContents (in docs)
-
- 10 May, 2002 1 commit
-
-
simonmar authored
- Add documentation to Control.Concurrent and friends - Other documentation tweaks
-
- 09 May, 2002 1 commit
-
-
simonmar authored
Rename libraries/core to libraries/base in the module headers.
-
- 26 Apr, 2002 1 commit
-
-
simonmar authored
Remove \$Id\$ from all files: it isn't particularly useful (see previous discussion on cvs-ghc@haskell.org), and it confuses Haddock.
-
- 24 Apr, 2002 1 commit
-
-
simonmar authored
Add the single character '|' to the header comment of each module so that Haddock will parse it as the module documentation.
-
- 28 Jun, 2001 1 commit
-
-
simonmar authored
First cut of the Haskell Core Libraries ======================================= NOTE: it's not meant to be a working snapshot. The code is just here to look at and so the NHC/Hugs guys can start playing around with it. There is no build system. For GHC, the libraries tree is intended to be grafted onto an existing fptools/ tree, and the Makefile in libraries/core is a quick hack for that setup. This won't work at the moment without the other changes needed in fptools/ghc, which I haven't committed because they'll cause breakage. However, with the changes required these sources build a working Prelude and libraries. The layout mostly follows the one we agreed on, with one or two minor changes; in particular the Data/Array layout probably isn't final (there are several choices here). The document is in libraries/core/doc as promised. The cbits stuff is just a copy of ghc/lib/std/cbits and has GHC-specific stuff in it. We should really separate the compiler-specific C support from any compiler-independent C support there might be. Don't pay too much attention to the portability or stability status indicated in the header of each source file at the moment - I haven't gone through to make sure they're all consistent and make sense. I'm using non-literate source outside of GHC/. Hope that's ok with everyone. We need to discuss how the build system is going to work...
-