summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser
Commit message (Collapse)AuthorAgeFilesLines
* Make Applicative a superclass of MonadAustin Seipp2014-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | Summary: This includes pretty much all the changes needed to make `Applicative` a superclass of `Monad` finally. There's mostly reshuffling in the interests of avoid orphans and boot files, but luckily we can resolve all of them, pretty much. The only catch was that Alternative/MonadPlus also had to go into Prelude to avoid this. As a result, we must update the hsc2hs and haddock submodules. Signed-off-by: Austin Seipp <austin@well-typed.com> Test Plan: Build things, they might not explode horribly. Reviewers: hvr, simonmar Subscribers: simonmar Differential Revision: https://phabricator.haskell.org/D13
* StringBuffer should not contain initial byte-order mark (BOM)Thomas Miedema2014-09-012-0/+35
| | | | | | | | | | | | | | | | | | | | Summary: Just skipping over a BOM, but leaving it in the Stringbuffer, is not sufficient. The Lexer calls prevChar when a regular expression starts with '^' (which is a shorthand for '\n^'). It would never match on the first line, since instead of '\n', prevChar would still return '\xfeff'. Test Plan: validate Reviewers: austin, ezyang Reviewed By: austin, ezyang Subscribers: simonmar, ezyang, carter Differential Revision: https://phabricator.haskell.org/D176 GHC Trac Issues: #6016
* Entirely re-jig the handling of default type-family instances (fixes Trac #9063)Simon Peyton Jones2014-07-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | In looking at Trac #9063 I decided to re-design the default instances for associated type synonyms. Previously it was all jolly complicated, to support generality that no one wanted, and was arguably undesirable. Specifically * The default instance for an associated type can have only type variables on the LHS. (Not type patterns.) * There can be at most one default instances declaration for each associated type. To achieve this I had to do a surprisingly large amount of refactoring of HsSyn, specifically to parameterise HsDecls.TyFamEqn over the type of the LHS patterns. That change in HsDecls has a (trivial) knock-on effect in Haddock, so this commit does a submodule update too. The net result is good though. The code is simpler; the language specification is simpler. Happy days. Trac #9263 and #9264 are thereby fixed as well.
* Add -XBinaryLiterals language extension (re #9224)Herbert Valerio Riedel2014-06-2714-0/+125
| | | | | | | | | | | | | | | | | | | | | | | Haskell2010 supports - base-10 (prefix-less), - base-8 (via `0[oO]`-prefix), and - base-16 (via `0[xX]`-prefix) integer literals. This commit adds syntax support for base-2 integer literals via the new `0[bB]` prefix. The use of a `0b` prefix for indicating binary literals is known from popular programming languages such as C++14, Perl, Python, Ruby, and Java. This syntax extension is disabled by default and can be enabled via the new `{-# LANGUAGE BinaryLiterals #-}` pragma and/or the new `-XBinaryLiterals` This new extensions requires to upgrade the `ExtsBitmap` type from `Word` to `Word64` as this adds a 33th flag which is not guaranteed to fit into a `Word`. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> Differential Revision: https://phabricator.haskell.org/D22
* Derive Typable for promoted data constructors (Trac #8950)Simon Peyton Jones2014-04-071-1/+1
| | | | | | | | | I got sucked into a significant refactoring of the way that Typeable instances are derived. This makes it simpler and more uniform. I also improved the documentation in the user manual. Typeable really is different to other classes, and now gets its own subsection.
* Use U+2018 instead of U+201B quote mark in compiler messagesHerbert Valerio Riedel2014-02-2536-80/+80
| | | | | | | 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>
* Add a test for d3af980 (#5682)Austin Seipp2014-02-201-2/+3
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Fix #5682. Now, '(:) parses.Richard Eisenberg2014-02-132-0/+13
|
* More different quotes in error messages following lexer clean-upJoachim Breitner2013-12-051-1/+1
|
* Different quotes in error messages following lexer clean-upSimon Peyton Jones2013-12-0514-14/+14
|
* WibbleKrzysztof Gogolewski2013-11-172-2/+2
|
* Error message wibblesSimon Peyton Jones2013-11-062-4/+8
|
* Test Trac #8506Simon Peyton Jones2013-11-063-0/+11
|
* Error messsage wibblesSimon Peyton Jones2013-11-062-37/+5
|
* Add a timeout for #8431Krzysztof Gogolewski2013-10-121-1/+1
|
* Test #8431Krzysztof Gogolewski2013-10-123-0/+4
|
* Test #8430Krzysztof Gogolewski2013-10-123-0/+9
|
* new test cases for MultiWayIf w/ layoutSimon Marlow2013-10-011-2/+7
|
* Follow changes in [7ab62490/base] (re #7633)Herbert Valerio Riedel2013-09-181-2/+4
|
* Update to new missing-method-decl warning styleHerbert Valerio Riedel2013-09-182-35/+6
| | | | | | | | | | | | | | | | | | | | | | | As a side-effect, the new `{-# MINIMAL #-}` facility (see #7633) changes the existing separate warnings for each missing method declaration: {{{ No explicit method or default declaration for ‛+’ In the instance declaration for ‛Num T’ }}} to a single warning per class of the following form: {{{ No explicit implementation for ‛+’, ‛*’, ‛abs’, ‛signum’, and ‛fromInteger’ In the instance declaration for ‛Num T’ }}} This commit adapts the reference output files in the testsuite to follow this change in GHC's warnings messages. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Adjust test suite to new Language Pragma warnignsJoachim Breitner2013-09-1417-25/+24
| | | | (this is related to #3647)
* Error message wibblesSimon Peyton Jones2013-09-102-9/+9
| | | | | | | | | | | | Almost all are re-orderings of relevant-binding output Relevant bindings include + m :: Map (a, b) elt (bound at T3169.hs:12:17) + b :: b (bound at T3169.hs:12:13) lookup :: (a, b) -> Map (a, b) elt -> Maybe elt (bound at T3169.hs:12:3) - b :: b (bound at T3169.hs:12:13) - m :: Map (a, b) elt (bound at T3169.hs:12:17)
* Test case for #7901.Anders Papitto2013-08-183-0/+12
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Add a test for 2 trailing commas in the module export listIan Lynagh2013-05-193-0/+6
|
* Add a test for #7848Ian Lynagh2013-04-213-0/+31
|
* Wibbles to "main is not defined in Main" messagseSimon Peyton Jones2013-04-151-1/+1
|
* Add a test for #7776Ian Lynagh2013-03-182-0/+7
|
* T7671 / #7671 is now fixedIan Lynagh2013-02-261-1/+1
|
* Update outputs following the unicode quote change in GHC's outputIan Lynagh2013-02-2419-100/+101
|
* Add a test for #7671Ian Lynagh2013-02-232-0/+9
|
* Convert more helper functionsIan Lynagh2013-02-113-7/+7
|
* Accept output for readFail007Ian Lynagh2013-02-011-1/+3
|
* Add a test for #984Ian Lynagh2013-02-013-0/+14
|
* Rename some numeric tests: nnnn -> TnnnnIan Lynagh2013-01-258-6/+6
|
* Add a test for #7476Ian Lynagh2012-12-084-0/+19
|
* A ton of error message wibblesSimon Peyton Jones2012-09-211-3/+15
| | | | | | Notably * Showing relevant bindings * Not suggesting add instance (Num T); see Trac #7222
* Add test case for #7118.Paolo Capriotti2012-08-082-1/+3
|
* Added MultiWayIf tests.Mikhail Vorozhtsov2012-07-166-0/+28
|
* Added LambdaCase tests.Mikhail Vorozhtsov2012-07-165-0/+20
|
* Adapt tests to change in a parser error message.Paolo Capriotti2012-06-294-4/+5
|
* Update test output for mdo changes (Trac #4148)Simon Peyton Jones2012-06-122-6/+0
|
* Use -fobject-code for tests that use UnboxedTuplesIan Lynagh2012-05-151-1/+1
| | | | | They were claiming to be broken because of #1257, but that is closed as wontfix.
* Wibbles to deprecation errorsSimon Peyton Jones2012-04-251-6/+5
|
* Error message modifications following ghc-new-solver modificationsDimitrios.Vytiniotis2012-04-041-12/+36
|
* Error message wibbles following TyClDecl/HsTyDefn refactoringSimon Peyton Jones2012-03-261-4/+4
|
* Modified error output and new tests for PolyKinds commitSimon Peyton Jones2012-03-021-2/+3
|
* Adapt test outputJose Pedro Magalhaes2012-01-161-2/+2
|
* Lots of error message wibbling, following theSimon Peyton Jones2012-01-122-2/+2
| | | | major TcErrors refactoring
* Error message wibbles for new CoAxiom storySimon Peyton Jones2012-01-041-0/+2
|
* Adjust test to handling of unit unboxed tupleSimon Peyton Jones2011-12-231-4/+4
|