1. 25 Feb, 2016 12 commits
    • Georgios Karachalias's avatar
      (Alternative way to) address #8710 · 67393977
      Georgios Karachalias authored
      Issue a separate warning per redundant (or inaccessible) clause.
      This way each warning can have more precice location information
      (the location of the clause under consideration and not the whole
      match).
      
      I thought that this could be too much but actually the number of
      such warnings is bound by the number of cases matched against (in
      contrast to the non-exhaustive warnings which may be exponentially
      more).
      
      Test Plan: validate
      
      Reviewers: simonpj, austin, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1920
      
      GHC Trac Issues: #8710
      67393977
    • Ben Gamari's avatar
      cmpTypeX: Avoid kind comparison when possible · 073e20eb
      Ben Gamari authored
      This comparison is only necessary when the types being compared contain
      casts. Otherwise the structural equality of the types implies that their
      kinds are equal.
      
      Test Plan: Validate
      
      Reviewers: goldfire, austin, simonpj
      
      Reviewed By: simonpj
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1944
      
      GHC Trac Issues: #11597
      073e20eb
    • Ben Gamari's avatar
      Bump haddock.base allocations · ebaa638f
      Ben Gamari authored
      I believe this is probably due to the recent RuntimeRep change.
      ebaa638f
    • Matthew Pickering's avatar
      Reconstruct record expression in bidir pattern synonym · 52879d1f
      Matthew Pickering authored
      Reviewers: austin, rdragon, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: rdragon, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1949
      52879d1f
    • manav's avatar
      Make warning names more consistent · 66584914
      manav authored
      - Replace "Sigs" with "Signatures" in WarningFlag data constructors.
      - Replace "PatSyn" with "PatternSynonym" in WarningFlag data
        constructors.
      - Deprecate "missing-local-sigs" in favor of "missing-local-signatures".
      - Deprecate "missing-exported-sigs" in favor of
        "missing-exported-signatures".
      - Deprecate "missing-pat-syn-signatures" in favor of
        "missing-pattern-synonym-signatures".
      - Replace "ddump-strsigs" with "ddump-str-signatures"
      
      These complete the tasks that were explicitly mentioned in #11583
      
      Test Plan:
      Executed `ghc --show-options` and verified that the flags were changed
      as expected.
      
      Reviewers: svenpanne, austin, bgamari
      
      Reviewed By: austin, bgamari
      
      Subscribers: mpickering, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1939
      
      GHC Trac Issues: #11583
      66584914
    • Ryan Scott's avatar
      Add more type class instances for GHC.Generics · 673efccb
      Ryan Scott authored
      GHC.Generics provides several representation data types that have
      obvious instances of various type classes in base, along with various
      other types of meta-data (such as associativity and fixity).
      Specifically, instances have been added for the following type classes
      (where possible):
      
          - Applicative
          - Data
          - Functor
          - Monad
          - MonadFix
          - MonadPlus
          - MonadZip
          - Foldable
          - Traversable
          - Enum
          - Bounded
          - Ix
          - Generic1
      
      Thanks to ocharles for starting this!
      
      Test Plan: Validate
      
      Reviewers: ekmett, austin, hvr, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: RyanGlScott, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1937
      
      GHC Trac Issues: #9043
      673efccb
    • Ömer Sinan Ağacan's avatar
      HscMain: Delete some unused code · 6319a8cf
      Ömer Sinan Ağacan authored
      Reviewers: bgamari, austin
      
      Reviewed By: austin
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1936
      6319a8cf
    • Ben Gamari's avatar
      ApplicativeDo: Handle terminal `pure` statements · 0c7db61f
      Ben Gamari authored
      ApplicativeDo handled terminal `return` statements properly, but not
      `pure`.
      
      Test Plan: Validate with included testcase
      
      Reviewers: austin, simonmar
      
      Reviewed By: austin, simonmar
      
      Subscribers: simonpj, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1931
      
      GHC Trac Issues: #11607
      0c7db61f
    • David Turner's avatar
      base: A selection of fixes to the comments in GHC.Stats · 8e19d3a3
      David Turner authored
      Use `-- |` comments throughout.
      Note that numByteUsageSamples is also the number of major GCs
      Note that numGcs counts GCs for all generations
      Note that 'current' really means 'at the end of the last major GC'
      
      Reviewers: ezyang, hvr, simonmar, austin, bgamari
      
      Reviewed By: ezyang, simonmar, bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1929
      
      GHC Trac Issues: #11603
      8e19d3a3
    • Peter Trommler's avatar
      testsuite: mark tests broken on powerpc64 · feb19eae
      Peter Trommler authored
      The following tests fail on powerpc64 and have a ticket.
      Mark those tests as expect_broken.
      
      Here are the details:
      The PowerPC native code generator does not support DWARF debug
      information. This is tracked in ticket #11261. Mark the respective
      tests broken on powerpc64.
      
      testsuite: mark print022 broken on powerpc64
      Ticket #11262 tracks difference in stdout for print022.
      
      testsuite: mark recomp015 broken on powerpc64
      testsuite: mark recomp011 broken on powerpc64
      This is tracked as ticket #11323 and #11260.
      
      testsuite: mark linker tests broken on powerpc64
      Ticket #11259 tracks tests failing because there is no RTS
      linker on powerpc64.
      
      Test Plan: validate
      
      Reviewers: erikd, austin, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1928
      
      GHC Trac Issues: #11259, #11260, #11261, #11262, #11323
      feb19eae
    • Facundo Domínguez's avatar
      Overload the static form to reduce verbosity. · c1efdcc4
      Facundo Domínguez authored
      Static pointers are rarely used naked: most often they are defined at
      the base of a Closure, as defined in e.g. the distributed-closure and
      distributed-static packages. So a typical usage pattern is:
      
          distributeMap (closure (static (\x -> x * 2)))
      
      which is more verbose than it needs to be. Ideally we'd just have to
      write
      
          distributeMap (static (\x -> x * 2))
      
      and let the static pointer be lifted to a Closure implicitly. i.e.
      what we want is to overload static literals, just like we already
      overload list literals and string literals.
      
      This is achieved by introducing the IsStatic type class and changing
      the typing rule for static forms slightly:
      
          static (e :: t) :: IsStatic p => p t
      
      Test Plan: ./validate
      
      Reviewers: austin, hvr, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: simonpj, mboes, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1923
      
      GHC Trac Issues: #11585
      c1efdcc4
    • Ben Gamari's avatar
      TyCoRep: Add haddock sections · 009a9997
      Ben Gamari authored
      009a9997
  2. 24 Feb, 2016 2 commits
    • Ömer Sinan Ağacan's avatar
      Remove "use mask" from StgAlt syntax · a9dc62ae
      Ömer Sinan Ağacan authored
      Reviewers: austin, bgamari, simonpj
      
      Reviewed By: simonpj
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1933
      a9dc62ae
    • eir@cis.upenn.edu's avatar
      Address #11471 by putting RuntimeRep in kinds. · d8c64e86
      eir@cis.upenn.edu authored
      See Note [TYPE] in TysPrim. There are still some outstanding
      pieces in #11471 though, so this doesn't actually nail the bug.
      
      This commit also contains a few performance improvements:
      
      * Short-cut equality checking of nullary type syns
      
      * Compare types before kinds in eqType
      
      * INLINE coreViewOneStarKind
      
      * Store tycon binders separately from kinds.
      
      This resulted in a ~10% performance improvement in compiling
      the Cabal package. No change in functionality other than
      performance. (This affects the interface file format, though.)
      
      This commit updates the haddock submodule.
      d8c64e86
  3. 23 Feb, 2016 17 commits
  4. 22 Feb, 2016 1 commit
  5. 21 Feb, 2016 3 commits
  6. 20 Feb, 2016 5 commits
    • thomie's avatar
      Add test for #6132: hash bang + CPP · 0b00add0
      thomie authored
      0b00add0
    • thomie's avatar
      unexport MAKEFLAGS when running tests (#11569) · 9634e245
      thomie authored
      9634e245
    • nushio's avatar
      Add test (only) to assure that #11535 is fixed · 1ef7add0
      nushio authored
      Ticket #11535 dealt with derived Read instances of infix Unicode
      value constructors. GHC 7.10.3 used to derive (Read/Show)
      instances so that `read . show` for values of such types had no
      parse.
      
      The issue has been fixed by other compiler update. This patch
      adds only tests, so that derived instance of Read/Show for infix
      Unicode value constructors has correct parse, satisfying Haskell
      2010 Specification.
      
      Resolves: #11535
      
      Test Plan: `make test TEST=T11535`
      
      Reviewers: austin, rwbarton, thomie, bgamari
      
      Reviewed By: rwbarton, thomie, bgamari
      
      Subscribers: rwbarton, thomie
      
      Projects: #ghc
      
      Differential Revision: https://phabricator.haskell.org/D1884
      
      GHC Trac Issues: #11535
      1ef7add0
    • Simon Marlow's avatar
      Use a better test for profiling · 80d35be1
      Simon Marlow authored
      The previous test failed for me because I had
      
          GhcRTSWays += thr_debug_p
      
      in my validate.mk, which doesn't enable profiling by itself.
      80d35be1
    • Simon Marlow's avatar
      Fix a double-free bug in -fexternal-interpreter · 23404857
      Simon Marlow authored
      Originally I planned to make this reference manually managed, but it
      looks like at some point I gave it a finalizer on the GHC side, but
      forgot to remove the manual free here.  The result is that ghc-iserv
      could crash in getStablePtr sometimes when using TH.
      23404857