<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi. I'm trying to get into haskell in my free time. I have already
covered some syntax, but there's plenty to do yet, and when I'm
consulting other people's stuff, I find lots of unknown constructs
to me, which turns harder to lookup for, due to the very "symbolic"
nature of Haskell.<br>
<br>
For instance, on this
<a class="moz-txt-link-freetext" href="http://www.yesodweb.com/blog/2012/04/yesod-js-todo">http://www.yesodweb.com/blog/2012/04/yesod-js-todo</a> they have a few
constructs like this:<br>
<br>
<pre><code class="haskell"><span class="title">mkYesod</span> <span class="string">"App"</span> [parseRoutes|
/ <span class="label">HomeR</span> <span class="label">GET</span>
/todo <span class="label">TodosR</span> <span class="label">GET</span> <span class="label">PUT</span>
/todo/#<span class="label">TodoId</span> <span class="label">TodoR</span> <span class="label">GET</span> <span class="label">DELETE</span>
|]</code></pre>
<br>
It seems that the inline text is going to be fed to parseRoutes. How
does that constructs work (links?)? I already know list
comprehensions which appear to be related with this. <br>
<br>
Thanks.<br>
</body>
</html>