<div dir="ltr">You can use C-u C-u C-c C-n. This normalises `show TERM` and<div>prints the resulting string without quotes and escapes. It grabs</div><div>whatever `show` happens to be in scope, so in your case you could</div><div>define `show = id`.<div><br></div><div>/ Ulf</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 3:37 AM, Guillaume Brunerie <span dir="ltr"><<a href="mailto:guillaume.brunerie@gmail.com" target="_blank">guillaume.brunerie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I’m using an Agda program to generate some Agda code. I’m not using<br>
reflection, I’m just using Agda as a regular functional programming<br>
language to generate strings, that I then want to copy-paste in a<br>
different file.<br>
<br>
For now, I didn’t bother with compilation, so I’m just defining terms<br>
of type String (from the standard library), and then I use C-c C-n in<br>
order to get their normal form.<br>
<br>
My problem is that in the result of C-c C-n, the string is surrounded<br>
by quotes, and the new lines are escaped as \n, which makes it a bit<br>
annoying to copy-paste, as I have to do a search and replace<br>
afterwards.<br>
<br>
Is there a way to use something like C-c C-n in order to get the<br>
normal form of a term of type String, but have it printed properly,<br>
without escaping the new lines and without the quotes before and<br>
after?<br>
<br>
Thanks,<br>
Best,<br>
Guillaume<br>
______________________________<wbr>_________________<br>
Agda mailing list<br>
<a href="mailto:Agda@lists.chalmers.se">Agda@lists.chalmers.se</a><br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda" rel="noreferrer" target="_blank">https://lists.chalmers.se/<wbr>mailman/listinfo/agda</a><br>
</blockquote></div><br></div>