Re: [Haskell-cafe] [web-devel] The promising world of Monadic formlets

2013-06-22 Thread Anton Tayanovskyy
. ___ web-devel mailing list web-de...@haskell.org http://www.haskell.org/mailman/listinfo/web-devel ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Kind Regards, Anton

Re: [Haskell-cafe] CFG specification and analysis directly in Haskell

2011-09-27 Thread Anton Tayanovskyy
for a Show instance. I am assuming there is no syntax sugar to recover the name of the variable used in a binder as a String. Thanks, Anton -- Kind Regards, Anton Tayanovskyy WebSharper™ - type-safe JavaScript in F# http://intellifactory.com ___ Haskell

[Haskell-cafe] CFG specification and analysis directly in Haskell

2011-09-25 Thread Anton Tayanovskyy
Hi, As a weekend hack, I just realized that Haskell has this wonderful DoRec syntax that among other things seems to be able to let the user express context-free grammars together with their processing rules in normal Haskell code, without template Haskell or anything like that, just like parser

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-18 Thread Anton Tayanovskyy
] http://code.google.com/p/re2/source/browse/util/sparse_array.h [4] http://t0yv0.blogspot.com/2011/07/combinatory-regular-expressions-in.html -- Roman I. Cheplyaka :: http://ro-che.info/ -- Kind Regards, Anton Tayanovskyy WebSharper™ - type-safe JavaScript in F# http://intellifactory.com

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-18 Thread Anton Tayanovskyy
makes it easy, I guess I am just an ML convert :) Thanks, Anton On Sun, Sep 18, 2011 at 11:28 AM, Brandon Allbery allber...@gmail.com wrote: On Sat, Sep 17, 2011 at 22:11, Anton Tayanovskyy anton.tayanovs...@gmail.com wrote: By the way, can Haskell have a type that admits regular expression

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-17 Thread Anton Tayanovskyy
/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Kind Regards, Anton Tayanovskyy WebSharper™ - type-safe JavaScript in F# http://intellifactory.com ___ Haskell-Cafe

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-17 Thread Anton Tayanovskyy
and error out for these kind of values? Thanks, A [1] http://existentialtype.wordpress.com/tag/recursion/ On Sat, Sep 17, 2011 at 9:46 PM, Anton Tayanovskyy anton.tayanovs...@gmail.com wrote: So you want to encode priorities efficiently as far as I understand from [1]? Could bit-packing

Re: [Haskell-cafe] F# mailing list?

2009-06-27 Thread Anton Tayanovskyy
that defected to F#? Not that I was I going to, just asking, absolutely hypothetically. Uhm. Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Kind Regards, Anton Tayanovskyy F

Re: [Haskell-cafe] Haskell/JS -- better through typeclasses?

2009-04-25 Thread Anton Tayanovskyy
For parsers, there is also a LALR(1) generator - http://jscc.jmksf.com/ - though I have not had personal experience with it. --A ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell Logo write-in candidate

2009-03-21 Thread Anton Tayanovskyy
I propose to use concordet voting to appoint a new king from the 100 aspiring candidates ... ;) Good point.. Just noticed that I managed to misspell Don Stewart's name :( Sorry! And thanks for pointing that out! Speaking of Concordet voiting.. :) Have you checked out Arrow's impossibility

Re: [Haskell-cafe] Re: Haskell Logo write-in candidate

2009-03-20 Thread Anton Tayanovskyy
Didn't Haskell have a syntax king? I vote for a logo king: let Don Steward decide which logo is best. --A ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] can GHC build an executable from a C source file?

2009-03-17 Thread Anton Tayanovskyy
Works for me without the --make, as `ghc foo.c` --A On Tue, Mar 17, 2009 at 6:32 PM, Manlio Perillo manlio_peri...@libero.it wrote: Hi. I'm checking if it possible to build an executable from C source files only. As an example: #include stdio.h int main () {    printf(hello world\n);  

[Haskell-cafe] building c-callable shared objects and dlls with Haskell

2009-03-14 Thread Anton Tayanovskyy
Hello, What's the current best practice to build shared objects / dlls to call Haskell from C? I think I figured out the basics, but I would like to understand the picture completely and document the current state of affairs in the Haskell wiki. In particular, I'd like to make sure that the

Re: [Haskell-cafe] Flexible instances

2008-10-15 Thread Anton Tayanovskyy
Thanks for the portable solution. I'd also like to know how is the following different from -XFlexibleInstances with [Char]? Stronger, weaker, same thing? {-# OPTIONS -XTypeSynonymInstances #-} class Stringable a where toString :: a - String instance Stringable String where

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Anton Tayanovskyy
If you want to make Haskell more widely used, do pick a name for Haskell Prime that starts with an A. I first heard of Haskell when exploring the list of computer languages that Gedit could highlight. Just imagine going through all those A,B,C,D,E,F,G before I came to Haskell. Those programmers

Re: [Haskell-cafe] Web application from the ground up

2008-10-09 Thread Anton Tayanovskyy
Hi Arnaud, Here's a simple counter program. I mount this to /ws/ with mod_scgi, and can then do requests http://localhost/ws/ or http://localhost/ws/?amount=19 (increment by 19 not 1). http://hpaste.org/11033 I'm no expert but I'm also working on web applications in Haskell now. If you are

Re: [Haskell-cafe] mysql (hsql-mysql-1.7) on Linux with GHC 8.3 - cabal issues

2008-10-03 Thread Anton Tayanovskyy
John, Thank you for your reply. I benchmarked HDBC.ODBC with MySQL and it is indeed working well. So whatever slow results I used to get were due to that particular setup. It looks that HDBC will suit my needs as well. Thanks, --A What's more, HDBC has a stronger and more versatile API than

[Haskell-cafe] SCGI module

2008-10-02 Thread Anton Tayanovskyy
Hello, SCGI module from Hackage is not working for me with Apache mod_scgi, I think because it uses LazyBytestring to hGetContents on a socket handle and the Apache side does not close the socket. Also, looking at the source I didn't see any fork* calls, so I assume it is not doing concurrency.

[Haskell-cafe] mysql (hsql-mysql-1.7) on Linux with GHC 8.3 - cabal issues

2008-10-02 Thread Anton Tayanovskyy
Hello, I had some difficulty building hsql and hsql-mysql (native driver) packages under GHC 8.3 on Fedora 9. Namely, they do not install with cabal install, because of a few API changes. Is this considered all right as GHC 8.3 is still experimental, or should the packages be updated? If so, can

Re: [Haskell-cafe] mysql (hsql-mysql-1.7) on Linux with GHC 8.3 - cabal issues

2008-10-02 Thread Anton Tayanovskyy
On Thu, Oct 2, 2008 at 6:39 PM, Duncan Coutts [EMAIL PROTECTED] wrote: The problem here really is that HSQL has no maintainer and has not been updated for about two years if my memory serves me correctly. Some distros, Fedora, Gentoo etc have patched HSQL to keep it working with ghc-6.8. I

Re: [Haskell-cafe] number-parameterized types and heterogeneous lists

2008-06-23 Thread Anton Tayanovskyy
Alfonso, Thanks! For didactic purposes I will defer looking into your code. It does not always help to know the correct solution :) Bests, --A On Mon, Jun 23, 2008 at 11:26 AM, Alfonso Acosta [EMAIL PROTECTED] wrote: Inspired in Oleg's ideas, I implemented the packages type-level and

Re: [Haskell-cafe] number-parameterized types and heterogeneous lists

2008-06-20 Thread Anton Tayanovskyy
Hi Harald, Can you give a link to the paper? Interesting stuff. Thanks. This is stretching my abilities a bit, but is this what you are after? data Digit = forall b.(Digits (b Sz)) = Digit (Sz - b Sz) instance Digits [Digit] where d2num [] acc = acc d2num (Digit x:xs) acc =