1. 07 Mar, 2015 1 commit
  2. 16 Dec, 2014 1 commit
  3. 06 Dec, 2014 1 commit
    • Alex Petrov's avatar
      Implement `calloc{,Bytes,Array,Array0}` allocators · 08610c1f
      Alex Petrov authored
      Summary:
      This adds zero-initialising versions of `malloc{,Bytes,Array,Array0}`
      
       * Add `calloc` and `callocBytes` to `Foreign.Marshal.Alloc`.
       * Add `callocArray` and `callocArray0` to `Foreign.Marshal.Array`.
      
      Reviewers: ekmett, duncan, austin, hvr
      
      Reviewed By: austin, hvr
      
      Subscribers: ezyang, simonmar, ekmett, duncan, thomie, carter
      
      Projects: #ghc
      
      Differential Revision: https://phabricator.haskell.org/D527
      
      GHC Trac Issues: #9859
      08610c1f
  4. 23 Nov, 2014 1 commit
  5. 21 Nov, 2014 3 commits
  6. 04 Nov, 2014 1 commit
    • Herbert Valerio Riedel's avatar
      Remove redundant "Minimal complete definition"-comments · 1408c8dc
      Herbert Valerio Riedel authored
      Those manual descriptions in Haddock strings have become redundant since
      Haddock gained the ability to print the minimal complete definition as
      specified via `{-# MINIMAL #-}` annotation (or otherwise inferred by
      GHC).
      
      Moreover, this commit moves all `{-# MINIMAL #-}` annotations in `base`
      to the start of the respective `class` definitions, as this is more
      readable and matches more closely the way Haddock renders that
      information.
      1408c8dc
  7. 24 Sep, 2014 1 commit
  8. 21 Sep, 2014 1 commit
  9. 18 Sep, 2014 1 commit
  10. 09 Sep, 2014 1 commit
    • Austin Seipp's avatar
      Make Applicative a superclass of Monad · d94de872
      Austin Seipp authored
      
      
      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: default avatarAustin 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
      d94de872
  11. 27 May, 2014 1 commit
    • Herbert Valerio Riedel's avatar
      Replace DeriveDataTypeable by AutoDeriveTypeable · 6ed54303
      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's avatarHerbert Valerio Riedel <hvr@gnu.org>
      6ed54303
  12. 19 May, 2014 1 commit
  13. 30 Jan, 2014 2 commits
    • Herbert Valerio Riedel's avatar
      Derive `FiniteBits` for integral newtype wrappers · 276c4621
      Herbert Valerio Riedel authored
      
      
      When `FiniteBits` was introduced in cddc9024e67a6d4c01bb190839d0134af8c907e0
      only the standard Haskell 2010 finite-size integral types were given a
      `FiniteBits` instance, however, since also a DEPRECATION warning was put
      in place (as per 701d9ed4b2bec5922709a91bfb625881d7dd47f0) for `bitSize`
      which might point people to to `FiniteBits`, it seems sensible to derive
      `FiniteBits` for all integral newtype wrappers as well.
      
      N.B.: This makes `Integer` the only type in `base` with a `Bits`
            instance but no `FiniteBits` instance.
      Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
      276c4621
    • Herbert Valerio Riedel's avatar
      Improve Haddock markup · cc4ba35f
      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's avatarHerbert Valerio Riedel <hvr@gnu.org>
      cc4ba35f
  14. 28 Sep, 2013 1 commit
  15. 22 Sep, 2013 1 commit
  16. 21 Sep, 2013 1 commit
    • Herbert Valerio Riedel's avatar
      Add Haddock `/Since: 4.7.0.0/` comments to new symbols · 77f32dad
      Herbert Valerio Riedel authored
      
      
      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's avatarHerbert Valerio Riedel <hvr@gnu.org>
      77f32dad
  17. 18 Sep, 2013 1 commit
  18. 17 Sep, 2013 3 commits
  19. 06 Jun, 2013 2 commits
    • ian@well-typed.com's avatar
      Fix import warnings · 4c6faba4
      ian@well-typed.com authored
      4c6faba4
    • Simon Peyton Jones's avatar
      Re-jig SOURCE imports · 8d87b5bf
      Simon Peyton Jones authored
      * Do not have have an hs-boot file for Data.Typeable
      * Instead make all the loops go through
           GHC.Err (just a couple of magic functions)
           GHC.Exception (some non-exceptional functions)
      
      The main idea is
        a) don't involve classes in the hs-boot world
        b) loop through error cases where performance doesn't matter
        c) be careful not to SOURCE import things that are bottom,
           unless MkCore knows about them in eRROR_IDS, so that we
           see their strictness
      8d87b5bf
  20. 06 May, 2013 1 commit
    • AndreasVoellmy's avatar
      Update parallel IO manager to handle the invalid files in the same way as previous IO manager. · c5a4de9d
      AndreasVoellmy authored
      This patch affects the IO manager using kqueue. See issue #7773. If the kqueue backend cannot wait for events on a file, it will simply call the registered callback for the file immediately. This is the behavior of the previous IO manager. This is not ideal, but it is an initial step toward dealing with the problem properly. Ideally, we would use a non-kqueue mechanism for waiting on files (select seems most reliable) that cannot be waited on with kqueue.
      c5a4de9d
  21. 16 Feb, 2013 2 commits
  22. 15 Feb, 2013 1 commit
  23. 17 Nov, 2012 4 commits
  24. 27 Oct, 2012 1 commit
    • ian@well-typed.com's avatar
      Remove commented types in module export lists · fda30027
      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
      fda30027
  25. 23 Oct, 2012 1 commit
  26. 21 May, 2012 1 commit
  27. 25 Apr, 2012 1 commit
  28. 29 Feb, 2012 1 commit
  29. 28 Feb, 2012 1 commit
  30. 18 Nov, 2011 1 commit