summaryrefslogtreecommitdiff
path: root/libraries/base/Foreign
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2014-11-21 13:24:30 -0600
committerAustin Seipp <austin@well-typed.com>2014-11-21 13:24:31 -0600
commitc0ad5bc03e02ce0d7d545599e4b1a68a6f727f2b (patch)
treee1033354c6514a3474d5c5f3f80aa3eaaf33b505 /libraries/base/Foreign
parenta97f90cecb6351a6db5a62c1551fcbf079b0acdd (diff)
downloadhaskell-c0ad5bc03e02ce0d7d545599e4b1a68a6f727f2b.tar.gz
Capture original source for literals
Summary: Make HsLit and OverLitVal have original source strings, for source to source conversions using the GHC API This is part of the ongoing AST Annotations work, as captured in https://ghc.haskell.org/trac/ghc/wiki/GhcAstAnnotations and https://ghc.haskell.org/trac/ghc/ticket/9628#comment:28 The motivations for the literals is as follows ```lang=haskell x,y :: Int x = 0003 y = 0x04 s :: String s = "\x20" c :: Char c = '\x20' d :: Double d = 0.00 blah = x where charH = '\x41'# intH = 0004# wordH = 005## floatH = 3.20# doubleH = 04.16## x = 1 ``` Test Plan: ./sh validate Reviewers: simonpj, austin Reviewed By: simonpj, austin Subscribers: thomie, goldfire, carter, simonmar Differential Revision: https://phabricator.haskell.org/D412 GHC Trac Issues: #9628
Diffstat (limited to 'libraries/base/Foreign')
0 files changed, 0 insertions, 0 deletions