Re: [Haskell-cafe] New Benchmark Under Review: Magic Squares

2006-07-01 Thread Bulat Ziganshin
Hello Brent, Sunday, July 2, 2006, 3:58:11 AM, you wrote: > We recently began considering another benchmark for the shootout, > namely a Magic Square via best-first search. This is fairly i've slightly beautified your printMatrix code: . where showMatrix n grid = join "\n

[Haskell-cafe] Re: Not in scope: type constructor or class

2006-07-01 Thread Joel Reymont
I should have opened my eyes real wide. This does the trick and makes TH look for HOC.Arguments.ObjCArgument which is proper. thModulePrefix mod id = "HOC." ++ mod ++ "." ++ id On Jul 1, 2006, at 10:33 PM, Joel Reymont wrote: Folks, I'm getting this error: ./HOC/StdArgumentTypes.hs:1:0:

[Haskell-cafe] New Benchmark Under Review: Magic Squares

2006-07-01 Thread Brent Fulgham
We recently began considering another benchmark for the shootout, namely a Magic Square via best-first search. This is fairly inefficient, and we may need to shift to another approach due to the extremely large times required to find a solution for larger squares. I thought the Haskell com

Re: [Haskell-cafe] Re: [haskell] ANNOUNCE: HNOP 0.1

2006-07-01 Thread Ian Lynagh
[resending as the original seems to have been silently eaten; attachements are at http://urchin.earth.li/~ian/splitting/ ] On Fri, Jun 30, 2006 at 03:45:57PM -0700, mvanier wrote: > > I'm at a loss here. Somehow, the SplitObjs option doesn't seem to be doing > the job. Any suggestions would be

[Haskell-cafe] Not in scope: type constructor or class

2006-07-01 Thread Joel Reymont
Folks, I'm getting this error: ./HOC/StdArgumentTypes.hs:1:0: Not in scope: type constructor or class `HOC.Arguments:ObjCArgument' But if you look through the output below you will see that HOC.Arguments is being loaded by ghc. I assume that's what the skipping of HOC.Arguments means

[Haskell-cafe] Re: ghc does not want to link statically

2006-07-01 Thread Joel Reymont
Please disregard the question. There's an opportunity to statically link the library at an earlier build step. There seems to be no way to link in static libraries when using ghc --make as the dynamic linker (ghci) is being used. On Jul 1, 2006, at 3:08 PM, Joel Reymont wrote: Folks, I'm

Re: [Haskell-cafe] JRegex on "large" input sizes

2006-07-01 Thread Chris Kuklewicz
Gregory Woodhouse wrote: On Jul 1, 2006, at 6:27 AM, David House wrote: Hi all. I need a decent regex library and JRegex seems the perfect choice: simple API, yet well-featured, as well as PCRE support. I want to use it on a simple project which involves input files a little larger than typ

Re: [Haskell-cafe] JRegex on "large" input sizes

2006-07-01 Thread Gregory Woodhouse
On Jul 1, 2006, at 6:27 AM, David House wrote:Hi all. I need a decent regex library and JRegex seems the perfect choice: simple API, yet well-featured, as well as PCRE support. I want to use it on a simple project which involves input files a little larger than typical -- between 100KB and 500KB --

Re: [Haskell-cafe] Re: [haskell] ANNOUNCE: HNOP 0.1

2006-07-01 Thread mvanier
Yup, that's the problem all right. Recompiling ghc with --with-gcc=/usr/bin/gcc-3.3 (on Debian) gives small executables. Thanks, Ian! What a relief -- I was running multiple instances of hnop and it was chewing up all of my memory ;-) Perhaps an hnop server might be a useful future direction

[Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-01 Thread Thiago Arrais
EclipseFP 0.10 has been released since last Friday. It is an open-source development environment for Haskell code. EclipseFP integrates GHC with an Haskell-aware code editor and also supports quick file browsing through an outline view, automatic building/compiling and quick one-button code execu

Re: [Haskell-cafe] JRegex on "large" input sizes

2006-07-01 Thread David House
On 01/07/06, Chris Kuklewicz <[EMAIL PROTECTED]> wrote: For fancier Regexes (such as using lazy pattern with ?? *? and +?) the Text.Regex.Lazy.Full extends Text.Regex.Lazy.Compat. The non-greedy modifier is really what I need, so I'll check it out. Thanks. -- -David House, [EMAIL PROTECTED] __

Re: [Haskell-cafe] JRegex on "large" input sizes

2006-07-01 Thread Chris Kuklewicz
David House wrote: > Hi all. I need a decent regex library and JRegex seems the perfect > choice: simple API, yet well-featured, as well as PCRE support. I "maintain" Text.Regex.Lazy ( http://sourceforge.net/projects/lazy-regex ) so I would mention it does not have full PCRE support. The module

Re: [Haskell-cafe] Re: ANNOUNCE: HNOP 0.1

2006-07-01 Thread Bill Wood
On Fri, 2006-06-30 at 21:20 -0700, Bjorn Bringert wrote: . . . > I guess this is related to the issue of exception handling. What if > the program is interrupted when it's halfway through doing nothing? > Ideally we would like to guarantee that it does nothing atomically. This may be diffic

Re[2]: [Haskell-cafe] System.FilePath, Request for comments

2006-07-01 Thread Bulat Ziganshin
Hello David, Saturday, July 1, 2006, 5:17:07 PM, you wrote: >> >The other important point regarding ADT's is what is a FilePath and >> >what is a String? If I set the extension of a FilePath, is that > My leaning (and you could search the archives for a post on the > subject by Ian Lynagh) is to

Re: [Haskell-cafe] JRegex on "large" input sizes

2006-07-01 Thread Donald Bruce Stewart
dmhouse: > Hi all. I need a decent regex library and JRegex seems the perfect > choice: simple API, yet well-featured, as well as PCRE support. I want > to use it on a simple project which involves input files a little > larger than typical -- between 100KB and 500KB -- but still small > enough so

[Haskell-cafe] ghc does not want to link statically

2006-07-01 Thread Joel Reymont
Folks, I'm trying to compile the Haskell Objective-C Binding (HOC) and it needs /usr/lib/libSystemStubs.a to find the missing _fprintf$LDBLStub symbol. I tried the following in the make file FOUNDATION_LIBS=-static -lSystemStubs -l dynamic -framework Foundation but ghc still tries to link

[Haskell-cafe] JRegex on "large" input sizes

2006-07-01 Thread David House
Hi all. I need a decent regex library and JRegex seems the perfect choice: simple API, yet well-featured, as well as PCRE support. I want to use it on a simple project which involves input files a little larger than typical -- between 100KB and 500KB -- but still small enough so as to not present

Re: [Haskell-cafe] System.FilePath, Request for comments

2006-07-01 Thread David Roundy
On Thu, Jun 29, 2006 at 11:14:46PM +0100, Brian Hulley wrote: > Neil Mitchell wrote: > >The other important point regarding ADT's is what is a FilePath and > >what is a String? If I set the extension of a FilePath, is that > >extension itself a FilePath or a String? What if I set the drive or > >th

Re: [Haskell-cafe] Re: ANNOUNCE: HNOP 0.1

2006-07-01 Thread David Roundy
On Fri, Jun 30, 2006 at 02:52:54PM -0700, Ashley Yakeley wrote: > I'm currently considering possible unit tests, since right now I rely > solely on code inspection. One possibility would be to simply time the > function to show that it didn't have time to do anything really long at > least. But

Re: [Haskell-cafe] lifting between two StateT monads

2006-07-01 Thread David House
Apologies to Alexander for the multiple copies, I forgot to hit 'Reply to all' again. On 01/07/06, Alexander Vodomerov <[EMAIL PROTECTED]> wrote: I've looked through StateT documentation and tutorial, but had not found any function from StateT X to StateT Y where Y is not the same as X. Try ru

[Haskell-cafe] lifting between two StateT monads

2006-07-01 Thread Alexander Vodomerov
Hello! I've just started learning Haskell and have a simple question regarding monads. Please, don't blame me if it is too obvious (any RTFM links are welcome). Suppose, we have two data types, X and Y. X represent local state, Y -- global one. In some sense, X is contained in Y. For example, Y

Re: [Haskell-cafe] Re: ANNOUNCE: HNOP 0.1

2006-07-01 Thread Bjorn Bringert
On Jun 30, 2006, at 2:58 PM, Ashley Yakeley wrote: Now we just need the Godot version, in which nothing happens twice. You may have to wait for that. Now, thanks to the polyvariadic nop, the wait is over: import Control.Nop main :: IO () main = nop "Yes, let's do something."