[Haskell-cafe] building ghc on win with gcc of cygwin, without cygwin1.dll (-mno-cygwin flag) ?

2006-02-11 Thread Marc Weber
Hi.. I've found the nice documentation about building ghc on haskell.org/ghc -> documentation. There is one chapter (#1) about C compilers and environments to use: Either MSYS or cywin and gcc of MinGW because gcc of cygwin will link to cygwin1.dll by default which may change and therefore can b

[Haskell-cafe] Badly designed Parsec combinators?

2006-02-11 Thread Juan Carlos Arevalo Baeza
So... I see no reason why someone can't just do it themselves, but... I was playing around with Parsec (as included in GHC 6.4.1), and I found two functions that are... not quite what I believe they should be. optional :: GenParser tok st a -> GenParser tok st () optional p = do{ p;

Re: [Haskell-cafe] Haskell XSLT interpreter?

2006-02-11 Thread Colin Paul Adams
> "Neil" == Neil Mitchell <[EMAIL PROTECTED]> writes: Neil> Hi, I don't know of any, but there may well be, I've never Neil> looked. Neil> It probably wouldn't be that difficult to do, since XSLT is Neil> a functional language. There is probably lots of code in Neil> HaXml

Re: [Haskell-cafe] Haskell XSLT interpreter?

2006-02-11 Thread Neil Mitchell
Hi, I don't know of any, but there may well be, I've never looked. It probably wouldn't be that difficult to do, since XSLT is a functional language. There is probably lots of code in HaXml you could reuse (since the syntax for XSLT is XML). The only slightly taxing thing would be that XSLT is no

[Haskell-cafe] Haskell XSLT interpreter?

2006-02-11 Thread S. Alexander Jacobson
Has anyone written a pure haskell xslt interpreter? If not, how difficult would it be to do so? -Alex- __ S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com ___ Haskell-Cafe m

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-11 Thread Lennart Augustsson
Bulat Ziganshin wrote: Hello Wolfgang, Saturday, February 11, 2006, 3:17:12 PM, you wrote: each and every monadic operation is a function! WJ> What do you mean with "monadic operatation"? (>>=), (>>) and return are, of WJ> course, functions but an I/O action like getChar is *not* a functio

Re[2]: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-11 Thread Bulat Ziganshin
Hello Wolfgang, Saturday, February 11, 2006, 3:17:12 PM, you wrote: >> each and every monadic operation is a function! WJ> What do you mean with "monadic operatation"? (>>=), (>>) and return are, of WJ> course, functions but an I/O action like getChar is *not* a function. Also a WJ> list i

Re: [Haskell-cafe] Digrams

2006-02-11 Thread Dominic Steinitz
On Saturday 11 Feb 2006 1:09 pm, Jon Fairbairn wrote: > On 2006-02-11 at 12:25GMT Dominic Steinitz wrote: > > I've quickly put this together to measure frequencies of pairs of letters > > (e.g. 1st and 2nd) in words. It works fine on a small test data sets but > > I have a feeling that it will perf

Re: [Haskell-cafe] Digrams

2006-02-11 Thread Jon Fairbairn
On 2006-02-11 at 12:25GMT Dominic Steinitz wrote: > I've quickly put this together to measure frequencies of pairs of letters > (e.g. 1st and 2nd) in words. It works fine on a small test data sets but I > have a feeling that it will perform poorly as it spends a lot of time > updating a 26*26 ar

[Haskell-cafe] Digrams

2006-02-11 Thread Dominic Steinitz
I've quickly put this together to measure frequencies of pairs of letters (e.g. 1st and 2nd) in words. It works fine on a small test data sets but I have a feeling that it will perform poorly as it spends a lot of time updating a 26*26 array. Before I throw a dictionary at it, does anyone have

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-11 Thread Wolfgang Jeltsch
Am Sonntag, 5. Februar 2006 17:36 schrieb Bulat Ziganshin: > [...] > each and every monadic operation is a function! What do you mean with "monadic operatation"? (>>=), (>>) and return are, of course, functions but an I/O action like getChar is *not* a function. Also a list is not a function

Re: [Haskell-cafe] Compiling hdirect on windows with COM support

2006-02-11 Thread Marc Weber
On Mon, Feb 06, 2006 at 02:58:50PM +0100, Marc Weber wrote: > > echo "Press Ctrl-d when finished or enter exit to continue this script" > > bash dozip afterConfiguring > I did make a small mistake here: > it should look like this: > bash > dozip afterConfiguring > > Oh.. and I

[Haskell-cafe] Re: Matching constructors

2006-02-11 Thread Ben Rudiak-Gould
Mark T.B. Carroll wrote: Creighton Hogg <[EMAIL PROTECTED]> writes: data Patootie = Pa Int | Tootie Int and I want to pull out the indices of all elements of a list that have type constructor Tootie, how would I do that? x = [Pa 3, Tootie 5, Pa 7, Tootie 9, Pa 11] y = [ i |Tootie i <- x