summaryrefslogtreecommitdiff
path: root/compiler/parser/Lexer.x
Commit message (Collapse)AuthorAgeFilesLines
...
* | Initial commit for Pedro's new generic default methodssimonpj2011-04-121-1/+3
|/ | | | | (See his Haskell Symposium 2010 paper "A generic deriving mechaism for Haskell")
* Added a VECTORISE pragmaManuel M T Chakravarty2011-02-201-3/+7
| | | | | | | | | | | | | | | - Added a pragma {-# VECTORISE var = exp #-} that prevents the vectoriser from vectorising the definition of 'var'. Instead it uses the binding '$v_var = exp' to vectorise 'var'. The vectoriser checks that the Core type of 'exp' matches the vectorised Core type of 'var'. (It would be quite complicated to perform that check in the type checker as the vectorisation of a type needs the state of the VM monad.) - Added parts of a related VECTORISE SCALAR pragma - Documented -ddump-vect - Added -ddump-vt-trace - Some clean up
* multiline commands in GHCi #4316Vivian McPhail2010-11-051-0/+22
| | | | | | | | | | | | | This patch adds support for multiline commands in GHCi. The first line of input is lexed. If there is an active layout context once the lexer reaches the end of file, the user is prompted for more input. Multiline input is exited by an empty line and can be escaped with a user interrupt. Multiline mode is toggled with `:set +m`
* Rename -XPArr to -XParallelArraysBen Lippmeier2010-11-301-8/+8
|
* Remove NewQualifiedOperatorsIan Lynagh2010-12-011-11/+2
| | | | The extension was rejected by Haskell', and deprecated in 7.0.
* Unicide OtherNumber category should be allowed in identifiers (#4373)Simon Marlow2010-11-151-1/+1
|
* Separate NondecreasingIndentation out into its own extensionIan Lynagh2010-11-241-2/+7
|
* Add another GHC layout rule relaxation to RelaxedLayoutIan Lynagh2010-11-241-1/+14
|
* Add an extension for GHC's layout-rule relaxationsIan Lynagh2010-11-201-2/+9
| | | | | Still TODO: Add the other relaxation (#1060) and update the alternative layout rule to use the extension.
* More modules that need LANGUAGE BangPatternssimonpj@microsoft.com2010-11-121-0/+1
|
* Allow the old [$foo| ... |] syntax for quasi-quotessimonpj@microsoft.com2010-11-121-0/+4
| | | | | This is just a backward-compatibility thing, to be removed eventually.
* Interruptible FFI calls with pthread_kill and CancelSynchronousIO. v4Edward Z. Yang2010-09-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | This is patch that adds support for interruptible FFI calls in the form of a new foreign import keyword 'interruptible', which can be used instead of 'safe' or 'unsafe'. Interruptible FFI calls act like safe FFI calls, except that the worker thread they run on may be interrupted. Internally, it replaces BlockedOnCCall_NoUnblockEx with BlockedOnCCall_Interruptible, and changes the behavior of the RTS to not modify the TSO_ flags on the event of an FFI call from a thread that was interruptible. It also modifies the bytecode format for foreign call, adding an extra Word16 to indicate interruptibility. The semantics of interruption vary from platform to platform, but the intent is that any blocking system calls are aborted with an error code. This is most useful for making function calls to system library functions that support interrupting. There is no support for pre-Vista Windows. There is a partner testsuite patch which adds several tests for this functionality.
* -fwarn-tabs: add "Warning" to the messageSimon Marlow2010-10-021-1/+1
|
* Add separate functions for querying DynFlag and ExtensionFlag optionsIan Lynagh2010-09-181-22/+22
| | | | and remove the temporary DOpt class workaround.
* Allow "INLINEABLE" as a synonymsimonpj@microsoft.com2010-09-151-0/+2
|
* Implement INLINABLE pragma simonpj@microsoft.com2010-09-151-6/+7
| | | | Implements Trac #4299. Documentation to come.
* Fix numeric escape sequences parsingAnton Nikishaev2010-07-211-4/+6
| | | | This fixes trac bug #1344
* Make datatype contexts an extension (on by default) (DatatypeContexts)Ian Lynagh2010-07-071-1/+6
|
* Handle haddock headers when looking for LANGUAGE/OPTIONS_GHC pragmasIan Lynagh2010-07-071-1/+1
|
* Make pragState call mkPState, rather than duplicating everythingIan Lynagh2010-07-061-19/+3
| | | | | This also means that extsBitmap gets set, whereas is was just being set to 0 before.
* Make mkPState and pragState take their arguments in the same orderIan Lynagh2010-07-061-3/+4
|
* Remove an out-of-date commentIan Lynagh2010-07-061-1/+0
|
* Remove dead code (standalone deriving flag no longer used in parser)Ian Lynagh2010-07-011-6/+1
|
* Remove the Unicode alternative for ".." (#3894)Simon Marlow2010-05-051-1/+0
|
* Add handling for | to the transitional alternative layout ruleIan Lynagh2010-03-021-0/+12
|
* Tweak alternative layout ruleIan Lynagh2010-03-021-8/+19
| | | | Now not only is if/then a bracketting pair, but then/else is too
* Add transitional rules for the alternative layout ruleIan Lynagh2010-03-021-1/+20
| | | | If enabled, these accept more layout, but give warnings
* Fix the alternative layout rule to handle explicit let/inIan Lynagh2010-03-021-8/+31
| | | | | | | It used to break on let {x = 'a'} in x as the 'in' token would keep closing contexts looking for an implicit 'let' layout.
* Simplify syntax for quasi-quotationsimonpj@microsoft.com2010-02-101-3/+4
| | | | | | | | | | | | | After some discussion we decided to make a quasi-quote look like [pads| ...blah... |] rather than [$pads| ...blah... |] as before. The new syntax is quieter, although it does not signal quite as clearly that there is a splice going on.
* Teach the alternative layout rule about mdo and recIan Lynagh2010-01-161-0/+2
|
* Teach the alternative layout rule about $( ... )Ian Lynagh2010-01-161-7/+8
| | | | | It thought the ) needed to close something, but the $( hadn't opened anything.
* Fix #3751, also fix some lexical error SrcLocsSimon Marlow2009-12-171-35/+34
|
* Fix #3741, simplifying things in the processSimon Marlow2009-12-101-72/+46
| | | | | | | | | The problem in #3741 was that we had confused column numbers with byte offsets, which fails in the case of UTF-8 (amongst other things). Fortunately we're tracking correct column offsets now, so we didn't have to make a calculation based on a byte offset. I got rid of two fields from the PState (last_line_len and last_offs).and one field from the AI (alex input) constructor.
* Add some comments on the alternative layout rule stateIan Lynagh2009-12-051-0/+9
|
* Tweak layout for alternative layout ruleIan Lynagh2009-12-031-1/+1
|
* Add a GHC layout extension to the alternative layout ruleIan Lynagh2009-12-031-0/+9
|
* Tweak the alternative layout rule: {} contains commasIan Lynagh2009-11-291-0/+4
|
* Tweak alternative layout ruleIan Lynagh2009-11-291-2/+2
|
* Make the alternative layout rule cope with file pragmasIan Lynagh2009-11-291-1/+3
|
* Columns now start at 1, as lines already didIan Lynagh2009-11-271-1/+1
| | | | Also corrected a couple of line 0's to line 1
* Implement non-decreasing do indentation in the alternative layout ruleIan Lynagh2009-11-271-1/+7
|
* Apply patch from #2978: add more Unicode syntaxSimon Marlow2009-09-181-0/+8
|
* Fix a bug in alternative layout ruleIan Lynagh2009-11-251-0/+1
|
* Fix a bug in alternative layoutIan Lynagh2009-11-251-16/+9
| | | | And make the code simpler in the process!
* Bug fix for alternative layout ruleIan Lynagh2009-11-251-1/+1
|
* Tweak alternative layout ruleIan Lynagh2009-11-251-8/+11
|
* Add unboxed parentheses to the alternative layout ruleIan Lynagh2009-11-251-0/+6
|
* Tweak the warning suppression flags used in LexerIan Lynagh2009-11-251-9/+9
|
* Implement the alternative layout ruleIan Lynagh2009-11-251-11/+230
| | | | Caution: Largely untested
* Fix some warning in LexerIan Lynagh2009-11-241-9/+11
|