- 01 Jan, 2016 4 commits
-
-
Simon Peyton Jones authored
runRW# isn't inlined until CorePrep, so it's good to expose its strictness. Moreover, if we don't we can get obscure failures in coreToStg; see Note [runRW arg] in CorePrep. This fixes Trac #11291, and makes DfltProb1 compile with -O always in order to expose it more vigorously
-
Alan Zimmerman authored
Troublesome commit in Cabal was reverted.
-
Herbert Valerio Riedel authored
This fixes the instance to be semantically cleaner but other than that this fix has no practical consequences as the implementations of `Monad(fail)` and `MonadFail(fail)` for `ReadP` coincide.
-
Herbert Valerio Riedel authored
This refactoring exploits the fact that since AMP, in most cases, `instance MonadPlus` can be automatically derived from the respective `Alternative` instance. This is because `MonadPlus`'s default method implementations are fully defined in terms of `Alternative(empty, (<>))`.
-
- 31 Dec, 2015 14 commits
-
-
Herbert Valerio Riedel authored
-
Herbert Valerio Riedel authored
This pulls in a fix to suppress a `hsc2hs`-related warning in the windows backend.
-
Herbert Valerio Riedel authored
As we're requiring GHC >= 7.10 now, the conditional handling introduced in 9e133b9d for addressing #8182 can be made unconditional, and thus simplify the build-system a little bit.
-
Herbert Valerio Riedel authored
This code was introduced in 66218d15 to use `-package-name` for GHC 7.8, whereas GHC 7.10 needs the new `-this-package-key` flag.
-
Herbert Valerio Riedel authored
Starting with GHC 7.10 and base-4.8, `Monad` implies `Applicative`, which allows to simplify some definitions to exploit the superclass relationship. This a first refactoring to that end.
-
Herbert Valerio Riedel authored
Since GHC 8.1/8.2 only needs to be bootstrap-able by GHC 7.10 and GHC 8.0 (and GHC 8.2), we can now finally drop all that pre-AMP compatibility CPP-mess for good! Reviewers: austin, goldfire, bgamari Subscribers: goldfire, thomie, erikd Differential Revision: https://phabricator.haskell.org/D1724
-
Herbert Valerio Riedel authored
Quoting the POSIX standard for the `-D` C compiler flag: -D name[=value] Define name as if by a C-language #define directive. If no `=value` is given, a value of 1 shall be used. [...] Removing this explicit `=1` definition from `-D` flags which are used to define boolean macro constants makes the CLI invocation a bit more idiomatic and reduces visual noise in debugging output (flags containing `=`s are additionally put in single-quotes by GHC)
-
Herbert Valerio Riedel authored
Using `YES`/`NO` causes all sorts of problems as CPP doesn't work on symbolic tokens but rather on scalar values. A use like #if __GLASGOW_HASKELL_TH__==YES {-# LANGUAGE TemplateHaskell #-} #endif doesn't do what one may naively expect, and neither does #if __GLASGOW_HASKELL_TH__ {-# LANGUAGE TemplateHaskell #-} #endif *unless* `YES` happens to evaluate to a non-zero scalar. `__GLASGOW_HASKELL_TH__ was originally introduced via D396 / #9734. Fixes #11322 Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D1723
-
Herbert Valerio Riedel authored
In 3549c952 a `include/ghcversions.h` include file was introduced which defines `__GLASGOW_HASKELL__` as well. So there's no need to define it twice.
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
This fixes Trac #11290, by being sligthtly cleverer about finding what expressions are bottom. Actually this might have minor other side benefits.
-
Sergei Trofimovich authored
Observed failure on ia64 as: "inplace/bin/hsc2hs" \ ... \ --cflag=-Dia64_HOST_ARCH=1 --cflag=-Dlinux_HOST_OS=1 \ ... \ libraries/ghci/./GHCi/InfoTable.hsc \ -o libraries/ghci/dist-install/build/GHCi/InfoTable.hs InfoTable.hsc:84:2: error: #error Unknown architecture Signed-off-by:
Sergei Trofimovich <siarheit@google.com>
-
Alan Zimmerman authored
- Export unicodeAnn from GHC - unicodeAnn for Annlarrowtail was wrong - Use actual source for a CImport SourceText
-
- 30 Dec, 2015 11 commits
-
-
Georgios Karachalias authored
When there is an uncovered vector of length 0 (which in turn means that it represents a guard failure) print "(incomplete guards)" instead of an empty list of non-covered vectors. Test Plan: validate Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1717 GHC Trac Issues: #11245
-
Herbert Valerio Riedel authored
This updates the haddock submodule
-
Sergei Trofimovich authored
Detected by sphinx as: ERROR: Unexpected indentation. Signed-off-by:
Sergei Trofimovich <siarheit@google.com>
-
Sergei Trofimovich authored
Signed-off-by:
Sergei Trofimovich <siarheit@google.com>
-
Sergei Trofimovich authored
Brought 'CCS_MAIN' into scope, otherwise UNREG prof build is unhappy: rts_dist_HC rts/dist/build/PrimOps.p_o /tmp/ghc25593_0/ghc_3.hc: In function 'clB_entry': /tmp/ghc25593_0/ghc_3.hc:2983:24: error: error: 'CCS_MAIN' undeclared (first use in this function) *((P_)(_cly+8)) = (W_)&CCS_MAIN; ^ Signed-off-by:
Sergei Trofimovich <siarheit@google.com>
-
Gabor Greif authored
-
thomie authored
-
Ben Gamari authored
-
Ben Gamari authored
As suggested by @thomie.
-
Herbert Valerio Riedel authored
-
eir@cis.upenn.edu authored
Summary: In the fallthrough case when doing a subsumption case, we need to deeply instantiate to remove any buried foralls in the "actual" type. Once this validates, please feel free to commit it; I may not have the chance to do this on Tuesday. Back in full action on Wed. Test Plan: ./validate, typecheck/should_compiler/T11305 Reviewers: austin, bgamari, hvr Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1715 GHC Trac Issues: #11305
-
- 29 Dec, 2015 11 commits
-
-
Herbert Valerio Riedel authored
On AIX, `ld` doesn't support `-x` and ignores it. However, a warning is emitted to stderr which ends up triggering false positives in some of GHC's testsuite tests. So we simply filter out that noise as part of normalising stderr.
-
Herbert Valerio Riedel authored
This test is no longer legitimate as the feature it tests was removed from Cabal via https://git.haskell.org/packages/Cabal.git/commitdiff/5d20551e44e565bad6335fa213fc4ad592db7225
-
Herbert Valerio Riedel authored
-
Ben Gamari authored
Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1719 GHC Trac Issues: #11303
-
Ben Gamari authored
D1629 introduced this normalization which was not Python 2.6 compatible due to the use of the `flags` argument of `re.sub`. Fix this. Test Plan: Validate Reviewers: austin, thomie Differential Revision: https://phabricator.haskell.org/D1718
-
Georgios Karachalias authored
Introduce negative patterns for literals. In addition to storing term constraints for literals (checked at the end by the term oracle), also check eagerly, using negative patterns. This means generation of smaller sets (covered, uncovered, and divergent), instead of generating big sets and pruning afterwards. Test Plan: validate Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1716 GHC Trac Issues: #11303
-
Gabor Greif authored
-
Rik Steenkamp authored
Fixes an inconsistency of `getFullArgs` across operating systems. On non-Windows systems the returning list did not include the program name as the first element, while on Windows systems it did. As `System.Environment` depends on this behaviour of `getFullArgs` under Windows, this is now the behaviour across all operating systems. Computation `getFullArgs` is now like the "raw" version of `getArgs`, similar to `argv` in other languages. This patch also fixes T10728 under Windows. Reviewers: austin, hvr, erikd, #ghc_windows_task_force, Phyx, bgamari Reviewed By: #ghc_windows_task_force, Phyx, bgamari Subscribers: Phyx, thomie Differential Revision: https://phabricator.haskell.org/D1713
-
Ben Gamari authored
-
Ben Gamari authored
-
Ryan Scott authored
When optimizations are enabled, primitive string literals can be inlined, which can create two copies of a string constant with different addresses. We want to avoid this behavior at all costs in the `GEq1` test, since the output depends on the result of `eqAddr#`. We prevent such inlining through use of the `{-# NOINLINE #-}` pragma. Fixes #11292. Test Plan: Validate with T11292 Reviewers: thomie, austin, bgamari Reviewed By: bgamari Differential Revision: https://phabricator.haskell.org/D1714 GHC Trac Issues: #11292
-