- 21 Dec, 2015 7 commits
-
-
duairc authored
`Const` from `Control.Applicative` can trivially be made kind-polymorphic in its second argument. There has been a Trac issue about this for nearly a year now. It doesn't look like anybody objects to it, so I figured I might as well make a patch. Trac Issues: #10039, #10865, #11135 Differential Revision: https://phabricator.haskell.org/D1630 Reviewers: ekmett, hvr, bgamari Subscribers: RyanGlScott, thomie
-
msosn authored
The warnings are enabled with the flag -fwarn-unused-matches, the same one that enables warnings on the term level. Identifiers starting with an underscore are now always parsed as type variables. When the NamedWildCards extension is enabled, the renamer replaces those variables with named wildcards. An additional NameSet nwcs is added to LocalRdrEnv. It's used to keep names of the type variables that should be replaced with wildcards. While renaming HsForAllTy, when a name is explicitly bound it is removed from the nwcs NameSet. As a result, the renamer doesn't replace them in the quantifier body. (Trac #11098) Fixes #10982, #11098 Reviewers: alanz, bgamari, hvr, austin, jstolarek Reviewed By: jstolarek Subscribers: goldfire, mpickering, RyanGlScott, thomie Differential Revision: https://phabricator.haskell.org/D1576 GHC Trac Issues: #10982
-
dolio authored
The new instance resolves to `s ~ [Char]` as soon as we know that `s ~ [a]`, to avoid certain functions (like (++)) causing a situation where `a` is ambiguous and (currently) unable to be defaulted. Reviewers: #core_libraries_committee, hvr, austin, bgamari Reviewed By: hvr, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1572 GHC Trac Issues: #10814
-
Alan Zimmerman authored
Summary: Post #11019, there have been some new instances of RdrName that are not located, in particular ```#!hs data FieldOcc name = FieldOcc { rdrNameFieldOcc :: RdrName , selectorFieldOcc :: PostRn name name } data AmbiguousFieldOcc name = Unambiguous RdrName (PostRn name name) | Ambiguous RdrName (PostTc name name) deriving (Typeable) ``` Add locations to them Updates haddock submodule to match Test Plan: ./validate Reviewers: goldfire, hvr, bgamari, austin Reviewed By: hvr Subscribers: hvr, thomie, mpickering Differential Revision: https://phabricator.haskell.org/D1670 GHC Trac Issues: #11258
-
Ömer Sinan Ağacan authored
-
Ömer Sinan Ağacan authored
-
thomie authored
Instead of duplicating its logic. Refactoring only. For reference, `defaultWays` looks like this: defaultWays :: Settings -> [Way] defaultWays settings = if pc_DYNAMIC_BY_DEFAULT (sPlatformConstants settings) then [WayDyn] else [] Reviewed by: bgamari Differential Revision: https://phabricator.haskell.org/D1675
-
- 20 Dec, 2015 8 commits
-
-
Matthew Pickering authored
We can allow them if they contain no free variables. This patch just allows them in one direction and not to be used as builders as the original ticket suggests. Test Plan: ./validate Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1666 GHC Trac Issues: #9739 Conflicts: testsuite/tests/patsyn/should_fail/all.T
-
Matthew Pickering authored
Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1665 GHC Trac Issues: #10426
-
Herbert Valerio Riedel authored
Also, `binary` now is almost warning free (except for inlinePerformIO deprecation warnings) /cc @kolmodin
-
Herbert Valerio Riedel authored
Currently if llc/opt is missing, we get checking for llc-3.7... no checking for llc... no checking is version 3.7... ./configure[7417]: --version: not found no checking for opt-3.7... no checking for opt... no checking is version 3.7... ./configure[7664]: --version: not found no checking for llc... no checking for opt... no With this fix, the version is queried iff `llc`/`opt` has been detected at all, thereby avoiding the disturbing `--version: not found` error output. Reviewed By: thomie Differential Revision: https://phabricator.haskell.org/D1674
-
Edward Z. Yang authored
Signed-off-by:
Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, thomie, bgamari Reviewed By: thomie, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1662
-
Herbert Valerio Riedel authored
This is the new designated release to go with GHC 8.0.1 This is only a meta-data change relative to v0.5.7.0 /cc @foxik
-
Herbert Valerio Riedel authored
This adds the new commands `:all-types`, `:loc-at`, `:type-at`, and `:uses` designed for editor-integration (such as Emacs' `haskell-mode`). This was originally implemented by Chris Done on https://github.com/chrisdone/ghci-ng and has been in use by Emacs' `haskell-mode` for over a year already, and closely missed the GHC 7.10 release back then. I've squashed the commits, rebased to GHC HEAD, and heavily refactored and improved the patch. Tests will be added in a separate commit. Reviewed By: bgamari Differential Revision: https://phabricator.haskell.org/D1240
-
Herbert Valerio Riedel authored
This is the designated release to go with GHC 8.0.1 /cc @AshleyYakeley
-
- 19 Dec, 2015 7 commits
-
-
Herbert Valerio Riedel authored
The proper name for the define is `i386_HOST_ARCH` One was introduced back in 2011 via 035b8ebb / #4914 and the other one more recently via 4905b83a We may want to add some validation to catch such typos early on... Reviewed By: erikd Differential Revision: https://phabricator.haskell.org/D1664
-
Herbert Valerio Riedel authored
This prepares the meta-data of the new `ghci` package for Hackage
-
Herbert Valerio Riedel authored
[skip ci]
-
Herbert Valerio Riedel authored
GHC 7.8 / base-4.7 is the oldest GHC/base version compatible with this package, so let's declare this properly in the cabal file.
-
glaubitz authored
Explicitly pass "--no-relax" on ArchSPARC64 (as ArchSPARC does) where gcc's default specs set "-mrelax" which conflicts with "-Wl,-r". Known architecture will also help extending sparc NCG support 64-bit ABI. Signed-off-by:
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by:
Sergei Trofimovich <siarheit@google.com>
-
MarcelineVQ authored
Added maximum core use based on processors -Nmax<x> chooses the minimum of processor count or x Added documentation. Reviewed By: simonmar, thomie Differential Revision: https://phabricator.haskell.org/D1650
-
Ryan Scott authored
Adds two tests (one for Trac #4340 and one for Trac #10272), as well as advice on how to fix your code if `hsc2hs` emits warnings with GHC 8.0 due to a redefinition of `#alignment`. (I also put the advice in the [GHC 8.0 Migration Guide](https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0).) Reviewed By: thomie Differential Revision: https://phabricator.haskell.org/D1663 GHC Trac Issues: #4340, #10272
-
- 18 Dec, 2015 1 commit
-
-
Herbert Valerio Riedel authored
[skip-ci]
-
- 19 Dec, 2015 3 commits
-
-
Ben Gamari authored
Fixes #4340
-
thomie authored
-
- 18 Dec, 2015 14 commits
-
-
Herbert Valerio Riedel authored
This is the designated release to go with GHC 8.0.1 /cc @judah
-
Herbert Valerio Riedel authored
This is the designated release to go with GHC 8.0.1 /cc @judah
-
Erik de Castro Lopo authored
Test Plan: Build an AArch64 cross compiler. Reviewers: hvr, bgamari, austin Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1654
-
Ömer Sinan Ağacan authored
Summary: Before: [1 of 1] Compiling Main ( Main.hs, Main.o ) You are using a new version of LLVM that hasn't been tested yet! We will try though... After: [1 of 1] Compiling Main ( Main.hs, Main.o ) You are using an unsupported version of LLVM! Currently only 3.7 is supported. We will try though... Before: [1 of 1] Compiling Main ( Main.hs, Main.o ) <no location info>: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt After: [1 of 1] Compiling Main ( Main.hs, Main.o ) <no location info>: error: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM 3.7 ghc-stage1: could not execute: opt Reviewers: austin, rwbarton, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1658
-
Ben Gamari authored
Reviewers: austin Subscribers: thomie, ezyang Differential Revision: https://phabricator.haskell.org/D1653
-
Ben Gamari authored
Test Plan: validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1655 GHC Trac Issues: #11122
-
Ben Gamari authored
This type is occurs very often but previously had multiple, meaning it could not be unboxed. Even worse, these constructors didn't offer any compelling safety benefits. Thankfully, the type is abstract, so changing the representation to be a single-constructor type was quite straightforward. Reviewers: austin Subscribers: alanz, thomie, hvr Differential Revision: https://phabricator.haskell.org/D1657
-
Simon Peyton Jones authored
In the pattern-match check we are looking for a proof of *unsatisfiablity* among a bunch of givens. The unsat-ness might be hidden in the superclasses, so we must expand them. But in the common case where the constraints are satisfiable, we don't want to expand a recursive superclass forever. This is all a bit arbitrary, but then the whole question is undecidable anyway. The bug in Trac #10592 comment:12 was that I expanded superclasses forever. This patch fixes it.
-
Simon Peyton Jones authored
-
Ben Gamari authored
Last naming change... I promise.
-
-
Ben Gamari authored
-
Herbert Valerio Riedel authored
Turns out Win32 wasn't de-tabbed yet... sigh... [skip ci]
-
Simon Peyton Jones authored
-