[Haskell-cafe] How to use IndentParser. Any example/tutorial?

2012-01-08 Thread Sukit Tretriluxana
Hi, I need to construct a parser that parse a language that use indentation to define blocks as Python does. I ran into Text.ParserCombinators.Parsec.IndentParser module but have no idea how to use it. Can anyone point me out to how to use this module? Any short example, tutorial, or whatever

[Haskell-cafe] Announcement: SiteBridge version 1.0

2011-01-17 Thread Sukit Tretriluxana
Dear all, I am proudly announcing SiteBridge version 1.0. Briefly about it, SiteBridge is a site bridging system that allows developers to connect his/her locally developed app to an externally accessible site. It's aimed to get rid of the pain of the fact that you are still internally

[Haskell-cafe] Any comments about Clojure language?

2009-08-10 Thread Sukit Tretriluxana
Hi all, I start reading about Closure language (http://clojure.org) and it seems an interesting language. I don't know much about this language especially in comparison to Haskell feature by feature. Could it perhaps be what Haskell on JVM would have been with the dressing of Lisp syntax? Any

[Haskell-cafe] Haskell and C++ program

2009-01-14 Thread Sukit Tretriluxana
Hi all, I was looking around Stroustrup's website and found a simple program that he showed how standard library can be used to make the program succinct and safe. See http://www.research.att.com/~bs/bs_faq2.html#simple-program. I wondered how a Haskell program equivalent to it looks like and I

Re: [Haskell-cafe] Language.Haskell and strings

2008-09-21 Thread Sukit Tretriluxana
I'm not a Haskell expert but here the solution to your problem that I can think of. import Data.List prettyStr :: Int - String - IO () prettyStr maxlen str = do putStr (\ ++ head brokenStr) mapM_ (\str - putStr (\\\n\\ ++ str)) (tail brokenStr) putStr \\n where brokenStr = map

Re: [Haskell-cafe] Currying function using values from array

2008-08-08 Thread Sukit Tretriluxana
to rescue this situation. And if so, I wonder how it looks like. Ed On Fri, Aug 8, 2008 at 2:39 PM, Lemming [EMAIL PROTECTED]wrote: Sukit Tretriluxana schrieb: Thanks Tom and Henning for your response. Let me put the question in another way by generalizing and tweaking it a little bit. How

[Haskell-cafe] Currying function using values from array

2008-08-07 Thread Sukit Tretriluxana
Dear Haskell experts, I am currently studying Groovy language. An experiment I did with its closure is to perform closure/function curry using an array containing the values for the parameter binding. See the sample below. int addThemUp(a,b,c,d,e) { a+b+c+d+e } def arrayCurry(arr, cls) {

Re: [Haskell-cafe] Currying function using values from array

2008-08-07 Thread Sukit Tretriluxana
:: ([a]-b)-[a]-([a]-b) curryWithList f lst1= \lst2 -f (lst1++lst2) addThemUp = sum curried = curryWithList addThemUp [1,2,3,4] curried [5] =15 On Thu, Aug 7, 2008 at 8:35 PM, Henning Thielemann [EMAIL PROTECTED] wrote: On Thu, 7 Aug 2008, Sukit Tretriluxana wrote: Dear Haskell experts

Re: [Haskell-cafe] One-line haskell program with GHC

2008-01-19 Thread Sukit Tretriluxana
Thanks all. This really helps me a lot! On Jan 18, 2008 6:24 PM, Jonathan Cast [EMAIL PROTECTED] wrote: On 18 Jan 2008, at 2:00 PM, Clifford Beshers wrote: 2008/1/18 Sukit Tretriluxana [EMAIL PROTECTED]: Hi, I don't know if it's been asked before. I just wonder if GHC supports some

[Haskell-cafe] One-line haskell program with GHC

2008-01-18 Thread Sukit Tretriluxana
Hi, I don't know if it's been asked before. I just wonder if GHC supports some sort of one-liner program that can be specify right as the argument to either ghci or runghc program. In perl, they have something like perl *-e* 'print Hello' Do we have similar thing with GHC? Thanks, Ed

Re: [Haskell-cafe] One-line haskell program with GHC

2008-01-18 Thread Sukit Tretriluxana
Thanks a lot! I thought that option resided in ghci or runghc apps. On Jan 18, 2008 2:00 PM, Clifford Beshers [EMAIL PROTECTED] wrote: 2008/1/18 Sukit Tretriluxana [EMAIL PROTECTED]: Hi, I don't know if it's been asked before. I just wonder if GHC supports some sort of one-liner

[Haskell-cafe] GHC 6.6.1 binary package for Ubuntu available?

2007-08-31 Thread Sukit Tretriluxana
Hi, I am wondering if there is the binary package for GHC 6.6.1 for Ubuntu. I searched in the package manager and I only see the version 6.6. Thanks, Ed ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] GHC 6.6.1 binary package for Ubuntu available?

2007-08-31 Thread Sukit Tretriluxana
Thanks! On 8/31/07, Thomas Hartman [EMAIL PROTECTED] wrote: you may find this helpful. (with link) http://www.haskell.org/pipermail/haskell-cafe/2007-April/024137.html *Sukit Tretriluxana [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 08/31/2007 12:19 PM To haskell-cafe

[Haskell-cafe] darcs behind firewall

2007-08-30 Thread Sukit Tretriluxana
Hi all, Does anyone know how to specify proxy server and port for darcs to use when it connects to servers? I am behind firewall most of the time and all requests have to go through a proxy. Thanks, Ed ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] darcs behind firewall

2007-08-30 Thread Sukit Tretriluxana
case, these are set to the same var that permits me to use firefox via the proxy, in firefox - edit- preferences - network tab - connection settings, http proxy. and darcs should just work thomas. *Sukit Tretriluxana [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 08/30/2007 03:54 PM