\documentclass{article} \usepackage{agda} \begin{document} \begin{code} module AccidentalSpacesAfterBeginCode where \end{code} \end{document}