Re: [Haskell-cafe] Proposal: New syntax for Haskell

2013-09-10 Thread Daisuke Fujimura
To be exact, the syntax is Gherkin not cucumber.
https://github.com/cucumber/cucumber/wiki/Gherkin

And, there's already a library to run specs written in Gherkin.
https://github.com/marcotmarcot/chuchu


On Tue, Sep 10, 2013 at 7:08 PM, Edward Z. Yang  wrote:

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


[Haskell-cafe] ANN: hi-0.0.2, a Haskell project generator

2013-08-09 Thread Daisuke Fujimura
Hello cafe,

I'm very happy to announce the release of hi, a Haskell project generator.

http://hackage.haskell.org/package/hi

This application will generate a scaffold for new Haskell project with
given command line argument(or value in configuration file), using git
repository as a template.

If you frequently create new project which has test suite in hspec,
generating new project by hi will be a good alternative to cabal-init. It
comes with test suite in hspec and already buildable.

A project made by the default configuration is here.
https://github.com/fujimura/hi-example

More details is in the README:
https://github.com/fujimura/hi

Hope you enjoy it :-)

--
Fujimura Daisuke
http://fujimuradaisuke.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe