- 04 Oct, 2013 20 commits
-
-
gmainland authored
-
gmainland authored
-
gmainland authored
-
gmainland authored
-
gmainland authored
-
gmainland authored
Also check for illegal typed/untyped bracket/splice combinations.
-
gmainland authored
-
gmainland authored
-
gmainland authored
Right now the syntax for typed expression brackets and splices maps to conventional brackets and splices, i.e., they are not typed.
-
gmainland authored
-
gmainland authored
This structure now matches that of the type checker.
-
Simon Peyton Jones authored
Instead of walking over the source decls, and looking up the Name to find the TyCon or whatever, we just walk over the list of TyThings that have been brought into scope. This is much tidier. The only wrinkle is that, since we don't have the original declaration, we don't have its SrcSpan to put in the error message. I fixed this by making the SrcSpan for the TyCon itself be the span of the whole declaration. This actually makes sense anyway. There are bunch of error message wibbles in consequence.
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
In particular, don't import GHC (a historical hangover), which makes this module live much lower down in the module hierarchy. This in turn means we can call it from TcRnDriver
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
Reid Barton's diagnosis was right on the mark, though the fix wasn't quite right. See Note [Implementing tagToEnum#]. As usual I did some refactoring.
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
-
Herbert Valerio Riedel authored
-
- 03 Oct, 2013 8 commits
-
-
Edward Z. Yang authored
Signed-off-by:
Edward Z. Yang <ezyang@mit.edu>
-
Edward Z. Yang authored
Signed-off-by:
Edward Z. Yang <ezyang@mit.edu>
-
eir@cis.upenn.edu authored
Two different fixes were necessary here. First, we need to fail eagerly in kcConDecl, to prevent the return-type error in tcConDecl from firing twice. (This wasn't caught earlier because of the eager fail in the datatype kind-checking code -- which isn't used for data instances!) We also must check again in tcDataFamInstDecl, because it's possible for a data instance return type to have the right head but the wrong body (i.e., doesn't conform to the data instance type patterns). This check is only possible *after* desugaring from HsType to Type, so it can't be done in tcConRes with the first check. This is documented in a comment at check_valid_data_con, a local function within tcDataFamInstDecl.
-
Simon Peyton Jones authored
See Note [Closing over kinds in coverage] in FunDeps
-
Simon Peyton Jones authored
c.f. commit 0b0fec53
-
Simon Peyton Jones authored
* Add a suggestion to add AllowAmbiguousTypes when there is an ambiguity error * Move some of the logic to tcSimplifyAmbiguityCheck * Report inaccessible code regardless of the ambiguity check
-
Simon Peyton Jones authored
In particular, the mi_ann_fn field in ModIface was only being used totally locally in MkIface, so I made it local. Other than that I just refactored data types slightly, * Adding synonym Annotations.AnnPayload for the cryptic Serialized * Adding MkIface.IfaceIdExtras to common up some of the identical code
-
Simon Peyton Jones authored
Fixes Trac #8334
-
- 02 Oct, 2013 9 commits
-
-
parcs authored
-
Krzysztof Gogolewski authored
Since 7.6 they can be used as function arguments
-
Krzysztof Gogolewski authored
It's deprecated
-
Austin Seipp authored
Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
Austin Seipp authored
This patch adds support for several new primitive operations which support using processor-specific instructions to help guide data and cache locality decisions. We have levels ranging from [0..3] For LLVM, we generate llvm.prefetch intrinsics at the proper locality level (similar to GCC.) For x86 we generate prefetch{NTA, t2, t1, t0} instructions. On SPARC and PowerPC, the locality levels are ignored. This closes #8256. Authored-by:
Carter Tazio Schonwald <carter.schonwald@gmail.com> Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
Austin Seipp authored
Authored-by:
Gergely Risko <gergely@risko.hu> Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
leroux authored
This fixes the fingerprint script on windows, since we can't rely on using '#!/usr/bin/perl' Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
Austin Seipp authored
Authored-by:
Gergely Risko <gergely@risko.hu> Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
Austin Seipp authored
As Herbert pointed it, it was removed a long time ago. Authored-by:
Kazu Yamamoto <kazu@iij.ad.jp> Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
- 01 Oct, 2013 3 commits
-
-
Gabor Greif authored
-
Simon Peyton Jones authored
-
Simon Peyton Jones authored
-