It seems that pragma definitions in source are not only case insensitive, but can accept UK or US spelling variants. I am going to need to capture SourceText values in the tokens, and bring them through into the AST. Alan
I already have an open diff in D538, covering haddock doc changes for the API annotations, and bringing in a `SourceText` field for HsTyLit. Should I include the changes for SourceText in pragmas in D538, or create a new one? Alan On Thu, Dec 4, 2014 at 11:52 AM, Alan & Kim Zimmerman <alan.zimm@gmail.com> wrote:
It seems that pragma definitions in source are not only case insensitive, but can accept UK or US spelling variants.
I am going to need to capture SourceText values in the tokens, and bring them through into the AST.
Alan
I’d combine them; but make sure you add a Note explaining the purpose of the extra fields is. Maybe you can use the same Note S From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of Alan & Kim Zimmerman Sent: 05 December 2014 08:55 To: ghc-devs@haskell.org Subject: Re: API Annotations for pragmas I already have an open diff in D538, covering haddock doc changes for the API annotations, and bringing in a `SourceText` field for HsTyLit. Should I include the changes for SourceText in pragmas in D538, or create a new one? Alan On Thu, Dec 4, 2014 at 11:52 AM, Alan & Kim Zimmerman <alan.zimm@gmail.com<mailto:alan.zimm@gmail.com>> wrote: It seems that pragma definitions in source are not only case insensitive, but can accept UK or US spelling variants. I am going to need to capture SourceText values in the tokens, and bring them through into the AST. Alan
participants (2)
-
Alan & Kim Zimmerman -
Simon Peyton Jones