Re: [Haskell-cafe] Re: Pretty-printing peg solitaire boards

2007-11-25 Thread Bertram Felgenhauer
Maur??cio wrote: > I have to rebuild it due to a bug. However, I'm > doing that because there's a single position which > my brother could not solve, and he believes it to > be impossible, so we want to check: > > #0# > ###0### > ### > ### > ### > ### I guess you meant > #0# > #

[Haskell-cafe] SingHaskell, Nov 28 (Second Call)

2007-11-25 Thread Tom Schrijvers
What is SingHaskell? Sing(apore)Haskell is a Haskell (and related languages) meeting in Singapore. The meeting is organized by Tom Schrijvers ( [EMAIL PROTECTED] ) and Martin Sulzmann ( [EMAIL PROTECTED] ) and will be hosted by the National University of Singapore. Date and location Sing(

[Haskell-cafe] Re: problems building ycr2js (hopefully fixed)

2007-11-25 Thread Dimitry Golubovsky
Thomas, On Nov 25, 2007 5:50 PM, Thomas Hartman <[EMAIL PROTECTED]> wrote: > Thanks Dmitri, I also had to fix an issue with System.FilePath, > there's a message about this on haskell cafe. In fact, takeDirectory is the right replacement for getDirectory in older FilePath. I have pushed this chang

Re: [Haskell-cafe] Cabal and DB packages

2007-11-25 Thread Alistair Bayley
On 25/11/2007, Thomas Schilling <[EMAIL PROTECTED]> wrote: > On Sun, 2007-11-25 at 18:49 +0100, manu wrote: > > Hello, > > > > I'm trying to do something that should be fairly simple, installing > > some DB package so I can use MySQL or SQLite. > > > > with Takusen : > > > > $ runhaskell Setup.hs c

[Haskell-cafe] problems building ycr2js (hopefully fixed)

2007-11-25 Thread Dimitry Golubovsky
Hi, I have made the file `addtags.idl' part of the repo. Please do scons update and see if it compiles. PS If there are any other problems with Yhc/Javascript backend, please CC me, [EMAIL PROTECTED] Thanks -- Dimitry Golubovsky Anywhere on the Web

[Haskell-cafe] problems building ycr2js

2007-11-25 Thread Dimitry Golubovsky
Hi again, I'm thinking: if this all is about a small file, addtags.idl which is generated in some unusual way, I might just add it to the distributable source tree, and then nobody would have had problems with ${var:m:n} substitution. Thanks. -- Dimitry Golubovsky Anywhere on the Web _

Re: [Haskell-cafe] Libraries need a new owner

2007-11-25 Thread Don Stewart
bernardy: > On Nov 25, 2007 9:23 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > > > > What are the long term goals of the project? To merge key data > > structures into the containers library? > > > > They are a more like a replacement, with (almost) the same api, and > better performance (last time

[Haskell-cafe] problems building ycr2js

2007-11-25 Thread Dimitry Golubovsky
Hi, This is my stuff, and I am of course willing to fix this to make more compatible. I am not really deep into this "shell hell" (that is, used anything that worked for me not seeing much difference between shells in e. g. Archlinux vs. Ubuntu), but if there are any suggestions what could be fi

Re: [Haskell-cafe] Libraries need a new owner

2007-11-25 Thread Don Stewart
ahey: > Hello Folks, > > As some of you will be aware, I have been working on various Map > implementations that currently live here.. > > http://code.haskell.org/collections/collections-ghc6.8 > > The libs in question being Data.Tree.AVL, Data.Trie.General and a few > other bits like Data.COrde

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-25 Thread Richard Kelsall
Tillmann Rendel wrote: Andrew Coppin wrote: In general, I find *most* search functions to be fairly unhelpful. Google is the shining exception to this rule; it almost always seems to figure out what you're after. I guess doing text searching is just a fundamentally difficult problem, and the

[Haskell-cafe] Re: Pretty-printing peg solitaire boards

2007-11-25 Thread Maurí­cio
>> Hi, >> >> I'm trying to pretty-print (with Text >> . PrettyPrint . HughesPJ) a set of peg >> solitaire boards. No matter what I try, I >> always get this: (...) >> > > Just curious. Are you working on the algorithm > also? :) Sure. It's done already. I did generate a file with all possible (i.

Re: [Haskell-cafe] Cabal and DB packages

2007-11-25 Thread Thomas Schilling
On Sun, 2007-11-25 at 18:49 +0100, manu wrote: > Hello, > > I'm trying to do something that should be fairly simple, installing > some DB package so I can use MySQL or SQLite. > > However I've had troubles building HSQL, HaskellDB and Takusen before > giving up (I am using ghc 6.8.1 and Cabal

Re: [Haskell-cafe] An interesting monad: "Prompt"

2007-11-25 Thread Ryan Ingram
Also, I didn't realize this at first, but in order to use any of the MonadTrans instances, like having StateT s (Prompt p) automatically be a MonadPrompt, you sadly also need "-fallow-overlapping-instances". This is because MonadTrans monads looks a lot like Prompt. arbitrary MonadTrans monad:

[Haskell-cafe] Cabal and DB packages

2007-11-25 Thread manu
Hello, I'm trying to do something that should be fairly simple, installing some DB package so I can use MySQL or SQLite. However I've had troubles building HSQL, HaskellDB and Takusen before giving up (I am using ghc 6.8.1 and Cabal-1.2.2.0). -- with HSQL : Database/HSQL

Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-25 Thread Paulo J. Matos
Thanks all for your suggestions. On Nov 23, 2007 10:31 PM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-23 at 20:22 +, Paulo J. Matos wrote: > > Hi all, > > > > I'm curious about the best way to typeset haskell code in a wordpress > > blog. Using blockquote removes all indentatio

[Haskell-cafe] Re: Pretty-printing peg solitaire boards

2007-11-25 Thread John MacFarlane
You could use Text.Pandoc.Blocks (http://pandoc.googlecode.com/svn/trunk/Text/Pandoc/Blocks.hs). Something like this should do the trick: > boards = map (docToBlock 7) [a, b]-- 7 is width of block > colon = docToBlock 1 $ text "\n\n\n:" -- thin block for the colon > boardSet = render $ blockTo

Re: [Haskell-cafe] problems building ycr2js

2007-11-25 Thread Thomas Hartman
I was at least able to get things to build by doing [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>darcs whatsnew { hunk ./src/translator/js/ycr2js.hs 8 -import System.FilePath.Version_0_09 +import System.FilePath hunk ./src/translator/js/ycr2js.hs 40 -Just x ->

Re: [Haskell-cafe] problems building ycr2js

2007-11-25 Thread Thomas Hartman
I got through this hurdle following suggestions at https://wiki.ubuntu.com/DashAsBinSh SHELL = /bin/bash at the top of the main makefile did not work, and I did not bother going deeper down this route. Rather I did sudo dpkg-reconfigure dash and answered "no" when asked if sh should be dash. Th

Re: [Haskell-cafe] problems building ycr2js

2007-11-25 Thread Brandon S. Allbery KF8NH
On Nov 25, 2007, at 9:45 , Thomas Hartman wrote: Feisty devs suggest people fix the underlying problem, which is that /bin/sh should not assume bash as default, but specify bash explicitly. So I guess this is what should be done in the case of building ycr2js; either that or make it dash compat

Re: [Haskell-cafe] problems building ycr2js

2007-11-25 Thread Thomas Hartman
Thanks Brandon. I'm on ubuntu feisty. This breakage is a manifestation of https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463 Basically, feisty switched the default shell to "dash" (which I'd never heard of) from bash, because dash runs faster. But it's not 100% compatible. This was very

[Haskell-cafe] Libraries need a new owner

2007-11-25 Thread Adrian Hey
Hello Folks, As some of you will be aware, I have been working on various Map implementations that currently live here.. http://code.haskell.org/collections/collections-ghc6.8 The libs in question being Data.Tree.AVL, Data.Trie.General and a few other bits like Data.COrdering and the AVL based