summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T5236.stderr
Commit message (Collapse)AuthorAgeFilesLines
* Be less picky about reporing inaccessible codeSimon Peyton Jones2016-09-121-15/+0
| | | | | | | | | | | | | Triggered by the discussion on Trac #12466, this patch makes GHC less aggressive about reporting an error when there are insoluble Givens. Being so agressive was making some libraries fail to compile, and is arguably wrong in at least some cases. See the discussion on the ticket. Several test now pass when they failed before; see the files-modified list for this patch.
* Testsuite: accept output without Windows line endings (#11631)Thomas Miedema2016-02-231-14/+15
|
* Refactor treatment of wildcardsSimon Peyton Jones2015-12-011-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch began as a modest refactoring of HsType and friends, to clarify and tidy up exactly where quantification takes place in types. Although initially driven by making the implementation of wildcards more tidy (and fixing a number of bugs), I gradually got drawn into a pretty big process, which I've been doing on and off for quite a long time. There is one compiler performance regression as a result of all this, in perf/compiler/T3064. I still need to look into that. * The principal driving change is described in Note [HsType binders] in HsType. Well worth reading! * Those data type changes drive almost everything else. In particular we now statically know where (a) implicit quantification only (LHsSigType), e.g. in instance declaratios and SPECIALISE signatures (b) implicit quantification and wildcards (LHsSigWcType) can appear, e.g. in function type signatures * As part of this change, HsForAllTy is (a) simplified (no wildcards) and (b) split into HsForAllTy and HsQualTy. The two contructors appear when and only when the correponding user-level construct appears. Again see Note [HsType binders]. HsExplicitFlag disappears altogether. * Other simplifications - ExprWithTySig no longer needs an ExprWithTySigOut variant - TypeSig no longer needs a PostRn name [name] field for wildcards - PatSynSig records a LHsSigType rather than the decomposed pieces - The mysterious 'GenericSig' is now 'ClassOpSig' * Renamed LHsTyVarBndrs to LHsQTyVars * There are some uninteresting knock-on changes in Haddock, because of the HsSyn changes I also did a bunch of loosely-related changes: * We already had type synonyms CoercionN/CoercionR for nominal and representational coercions. I've added similar treatment for TcCoercionN/TcCoercionR mkWpCastN/mkWpCastN All just type synonyms but jolly useful. * I record-ised ForeignImport and ForeignExport * I improved the (poor) fix to Trac #10896, by making TcTyClsDecls.checkValidTyCl recover from errors, but adding a harmless, abstract TyCon to the envt if so. * I did some significant refactoring in RnEnv.lookupSubBndrOcc, for reasons that I have (embarrassingly) now totally forgotten. It had to do with something to do with import and export Updates haddock submodule.
* Modify a couple of error messages slightlySimon Peyton Jones2015-01-061-11/+11
| | | | | | | | | | | | In particular In the type signature for: f :: Int -> Int I added the colon Also reword the "maybe you haven't applied a function to enough arguments?" suggestion to make grammatical sense. These tiny changes affect a lot of error messages.
* Wibbles (usually improvements) to error messagesSimon Peyton Jones2014-11-211-10/+11
|
* Testsuite error message changesSimon Peyton Jones2014-11-041-10/+10
|
* Improve error messages from functional dependenciesSimon Peyton Jones2014-09-261-5/+10
| | | | | | | | | | | | Reponding to Trac #9612: * Track the CtOrigin of a Derived equality, arising from a functional dependency * And report it clearly in the error stream This relies on a previous commit, in which I stop dropping Derived insolubles on the floor.
* Use U+2018 instead of U+201B quote mark in compiler messagesHerbert Valerio Riedel2014-02-251-2/+2
| | | | | | | This matches GCC's choice of Unicode quotation marks (i.e. U+2018 and U+2019) and therefore looks more familiar on the console. This addresses #2507. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Error message wibbles, following TcErrors refactoringSimon Peyton Jones2013-04-221-12/+5
|
* Update outputs following the unicode quote change in GHC's outputIan Lynagh2013-02-241-12/+12
|
* Wibbles to error messages and tests, following ambiguity-check changesSimon Peyton Jones2013-01-081-10/+12
|
* Lots of error message wibbling, following theSimon Peyton Jones2012-01-121-20/+10
| | | | major TcErrors refactoring
* Error message modifications for the new constraint solver.Dimitrios Vytiniotis2011-11-161-8/+8
|
* Move tests from tests/ghc-regress/* to just tests/*David Terei2011-07-201-0/+20