Re: [Haskell-cafe] simple parsec question

2013-03-03 Thread Andrey Chudnov
Immanuel, Since a heading always starts with a new line (and ends with a colon followed by a carriage return or just a colon?), I think it might be useful to first separate the input into lines and then classify them depending on whether it's a heading or not and reassemble them into the value

Re: [Haskell-cafe] simple parsec question

2013-03-03 Thread Andrey Chudnov
seFromFile section "/tmp/test.txt" > Right (Section (Top "top 1") (Content "")) > > I don't understand the behaviour of the content parser here. Why does > it return ""? Or perhaps more generally, I don't understand the > manyTill c

[Haskell-cafe] Design of extremely usable programming language libraries

2013-05-28 Thread Andrey Chudnov
Ts). Am I missing some library, or is my understanding correct? If it's the latter, is there any fundamental limitation that prevents creating such a library? Maybe there are other (but still elegant) ways to satisfy my requirements without using GADTs? 3) 'gdiff' doesn't support polymorphic datatypes. Is there any other library that does? [1] http://www.serpentine.com/blog/2010/03/03/whats-in-a-parsing-library-1/ [2] http://en.wikibooks.org/wiki/Haskell/GADT PS: My attempts so far are in https://github.com/achudnov/language-nextgen/blob/master/Language/Nextgen/Syntax.hs Regards, Andrey Chudnov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Design of extremely usable programming language libraries

2013-05-28 Thread Andrey Chudnov
Thanks for a prompt reply, Roman. On 05/28/2013 04:52 PM, Roman Cheplyaka wrote: > Any syb-style library works with GADTs, by the virtue of dealing with > value representations instead of type representations. I tried to use syb, but the following code fails to typecheck for me. What am I doing w

Re: [Haskell-cafe] ANNOUNCE: tasty, a new testing framework

2013-08-05 Thread Andrey Chudnov
On 08/05/2013 02:48 PM, Roman Cheplyaka wrote: (which is unmaintained). Has this been confirmed by the author/maintainer? Tasty supports HUnit, SmallCheck, QuickCheck, and golden tests out of the box (through the standard packages), but it is very extensible, so you can write your own test pr

Re: [Haskell-cafe] HSpec vs Tasty (was: ANN: hspec-test-framework - Run test-framework tests with Hspec)

2013-08-21 Thread Andrey Chudnov
So is there a high-level comparison of HSpec and tasty? The only difference I've glimpsed so far was that HSpec has a syntactic sugar for describing tests which, honestly, I haven't found very useful. So, could someone write up a quick comparison of the two for the benefit of the folks like me w

[Haskell-cafe] Deprecating packages on Hackage

2012-08-04 Thread Andrey Chudnov
Hello. What are the best practices in deprecating packages on Hackage? I've seen packages marked "DEPRECATED" in the synopsis field on Hackage, and one could add GHC "deprecated" pragmas for every module, but is that the best one can do? Thank you i