debug icon indicating copy to clipboard operation
debug copied to clipboard

Integrate location

Open ndmitchell opened this issue 8 years ago • 2 comments

The location function in TemplateHaskell can given me the source file, and location of the Debug block. Some kind of smart lexer and matching algorithm could give the original code, precisely, with exact locations and layout as per the original.

ndmitchell avatar Dec 18 '17 22:12 ndmitchell

It would probably be easier to just open the source file and copy the original code verbatim.

pepeiborra avatar Dec 25 '17 23:12 pepeiborra

Yep, that's what I'm suggesting - the remarks about a smart lexer are more about trying to match back assuming variables were not single atomic keywords (which was the original plan, but hasn't really happened, so can be ignored)

ndmitchell avatar Dec 28 '17 22:12 ndmitchell