\documentclass{article}

\usepackage{agda}

\begin{document}

\begin{code}     %
\>[0]\AgdaKeyword{module}\AgdaSpace{}%
\AgdaModule{AccidentalSpacesAfterBeginCode}\AgdaSpace{}%
\AgdaKeyword{where}\<%
\end{code}

\end{document}
