\documentclass{article} \begin{document} The string ``hello{{'' contains \evalhaskell{length ("hello{{" :: String)} characters. \end{document}