<div dir="ltr"><div>To be exact, the syntax is Gherkin not cucumber.</div><div><a href="https://github.com/cucumber/cucumber/wiki/Gherkin">https://github.com/cucumber/cucumber/wiki/Gherkin</a></div><div><br></div><div>And, there&#39;s already a library to run specs written in Gherkin.</div>
<div><a href="https://github.com/marcotmarcot/chuchu">https://github.com/marcotmarcot/chuchu</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 7:08 PM, Edward Z. Yang <span dir="ltr">&lt;<a href="mailto:ezyang@mit.edu" target="_blank">ezyang@mit.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">This is completely irrelevant, but the .chs extension is<br>

already taken by the c2hs tool.<br>
<br>
Cheers,<br>
Edward<br>
<br>
Excerpts from Niklas Hambüchen&#39;s message of Tue Sep 10 00:30:<a href="tel:41%20-0700%202013" value="+14107002013">41 -0700 2013</a>:<br>
<div class=""><div class="h5">&gt; Impressed by the productivity of my Ruby-writing friends, I have<br>
&gt; recently come across Cucumber: <a href="http://cukes.info" target="_blank">http://cukes.info</a><br>
&gt;<br>
&gt;<br>
&gt; It is a great tool for specifying tests and programs in natural<br>
&gt; language, and especially easy to learn for beginners.<br>
&gt;<br>
&gt; I propose that we add a Cucumber syntax for Haskell, with the extension<br>
&gt; &quot;.chs&quot;, next to .hs and .lhs.<br>
&gt;<br>
&gt;<br>
&gt; Code written in cucumber syntax is concise and easy to read: You can<br>
&gt; find some example code in <a href="https://gist.github.com/nh2/6505995" target="_blank">https://gist.github.com/nh2/6505995</a>. Quoting<br>
&gt; from that:<br>
&gt;<br>
&gt;   Feature: The Data.List module<br>
&gt;<br>
&gt;     In order to be able to use lists<br>
&gt;     As a programmer<br>
&gt;     I want a module that defines list functions<br>
&gt;<br>
&gt;     Scenario: Defining the function foldl<br>
&gt;       Given I want do define foldl<br>
&gt;       Which has the type (in brackets) a to b to a (end of brackets),<br>
&gt;                          to a, to list of b, to a<br>
&gt;       And my arguments are called f, acc, and l<br>
&gt;       When l is empty<br>
&gt;       Then the result better be acc<br>
&gt;       Otherwise l is x cons xs<br>
&gt;       Then the result should be foldl f (in brackets) f acc x<br>
&gt;                                 (end of brackets) xs<br>
&gt;<br>
&gt;<br>
&gt; PS: People even already started a testing framework for Haskell in it:<br>
&gt; <a href="https://github.com/sol/cucumber-haskell#cucumber-for-haskell" target="_blank">https://github.com/sol/cucumber-haskell#cucumber-for-haskell</a><br>
&gt;<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div></div>