Compiling the following code,
\documentclass{article}
%include lhs2TeX.fmt
%include lhs2TeX.sty
%include polycode.fmt
%{
%format abs (a) = "\mathopen{|}" a "\mathclose{|}"
\begin{document}
\begin{code}
abs(1) = abs(2)
\end{code}
\end{document}
%}
with lhs2TeX --poly produces the expected result, |1| = |2|, whereas lhs2TeX --agda does not recognize the argument to the second use of abs producing |1| = |.| (2) .
Compiling the following code,
with
lhs2TeX --polyproduces the expected result,|1| = |2|, whereaslhs2TeX --agdadoes not recognize the argument to the second use ofabsproducing|1| = |.| (2).