Re: [Haskell-cafe] Re: Pretty-printing peg solitaire boards
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# > #0# > ###0### > ### > ### > ### > ### This indeed can not be solved. Color the Solitaire board as follows, abc bca abcabca bcabcab bca cab Let A, B, and C be the number of pegs that have color a, b, and c, respectively. Every move replaces a peg of two of the colors by a peg of the third color. So no move changes the parities of A+B, B+C or C+A. Now for your example, A+B, B+C and C+A are initially even. It's easy to see that with a single peg left two of these numbers must be odd, and therefore there is no solution. (I think you can find this argument in "Winnning Ways for your mathematical plays" by Berlekamp, Conway and Guy somewhere.) HTH, Bertram ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] SingHaskell, Nov 28 (Second Call)
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(apore)Haskell takes place on Wed 28 Nov 2007 (right before APLAS'07 http://flint.cs.yale.edu/aplas2007/). The meeting will be held on the National University of Singapore campus at COM1-02-VC (2nd floor video conference room, School of Computing) Further location details: http://www.comp.nus.edu.sg/aboutsoc/getting_to_soc_at_com1.htm http://www.comp.nus.edu.sg/corpcomm/location/maps.htm#com1 http://www.comp.nus.edu.sg/corpcomm/location/COM1_L2.htm The meeting starts at 9:30am and should end around 2pmish (with a lunch-break, on your own, in between) Let Tom or Martin know if you are interested in coming. Either to attend the meeting or even give a talk. Programme 9:30-9:55 Welcome, Quick intro to Haskell, Martin Sulzmann 10:00-10:25 First Class Constraint Programming in Haskell, Tom Schrijvers 10:30-10:55 Implementing STM in Concurrent Haskell, Frank Huch 11:00-11:25 Rule-based concurrent programming in Haskell, Edmund Lam 11:30-11:55 XHaskell - Adding regular expression types to Haskell, Kenny 12:00 - 12:25 Static Contract Checking for Haskell, Dana Xu 12:30 - 13:20 Lunch break 13:30 - 13:25 Functional dependencies versus type functions and beyond, Martin Sulzmann 13:30-13:55 Bernd Brassel For more information, see http://taichi.ddns.comp.nus.edu.sg/taichiwiki/SingHaskell2007 -- Tom Schrijvers Department of Computer Science K.U. Leuven Celestijnenlaan 200A B-3001 Heverlee Belgium tel: +32 16 327544 e-mail: [EMAIL PROTECTED] url: http://www.cs.kuleuven.be/~toms/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: problems building ycr2js (hopefully fixed)
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 change too. Thanks. -- Dimitry Golubovsky Anywhere on the Web ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Cabal and DB packages
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 configure > > > > Setup.hs:26:7: > > Could not find module `Distribution.Program': > >Use -v to see a list of the files searched for. > > > > I give up... > > > > > > That means that Takusen requires an older Cabal. I'd have to look at > the code to see how hard it would be to fix this. Um, yes. We haven't tested Takusen with ghc-6.8.1 yet, but it's on the list... Our Setup.hs is a bit involved at present, and soon I hope to simplify it quite a bit. There's a load of stuff in there just to get it to build Haddock docs, which will be gone soon. Alistair ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] problems building ycr2js (hopefully fixed)
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 mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] problems building ycr2js
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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Libraries need a new owner
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 we checked). > > Besides, I maintain a common class framework API to use (and test, etc.) > all those beasts uniformly. Can you give an overview of which data structures we now have better replacements for, and what is preventing them being replaced? Perhaps a good next step would be to break containers up into smaller pieces, so that individual parts of the containers library can be selectively replaced? Once we have experience with what breaks, and what is faster, then we can proceed to replace components? -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] problems building ycr2js
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 fixed (if at all) please let me know. Thanks. -- Dimitry Golubovsky Anywhere on the Web ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Libraries need a new owner
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.COrdering and the AVL based Data.Map/Set clones. > > Well, I have decided to stop work on these. So they need a new owner if > they're going to go anywhere. If anyone is interested in the job then I > suggest they contact myself or Jean-Philippe Bernardy. > > Of course I will be happy to provide any help or advise anyone who takes > over these libs may feel they need from me. I might even contribute a > few patches from time to time myself :-) > What are the long term goals of the project? To merge key data structures into the containers library? -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.
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 guys at Google have spent a hell of a long time on it. text searching is a well-known problem. ranking search results by relevance is the key to google's success. read the paper about google to learn more: Sergey Brin and Lawrence Page, "The Anatomy of a Large-Scale Hypertextual Web Search Engine" in: Proceedings of the 7th International WWW Conference, 1998, Brisbane http://infolab.stanford.edu/~backrub/google.html http://infolab.stanford.edu/pub/papers/google.pdf Thank you for that link. An interesting paper. I hadn't seen it before. I've added a link to a Google site search to the haskell.org front page. I can't find a way to link the existing search box at the top directly to it and can't create a 'form' element, so I've created a link labelled 'Search haskell.org' to this intermediate page on my site http://www.millstream.com/haskellorgsearch.html If someone can point the haskell.org search box directly at the Google site search please do so. It currently searches *.haskell.org/* which may be too broad? I can adjust as required. Richard. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Pretty-printing peg solitaire boards
>> 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.e., solvable) positions, but 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### ### ### ### ### If you are not interested in that very particular situation, there are many solutions in the net, including references for a math analysis (textbook only, I could not find it on P2P). Just check for peg solitaire in wikipedia. If you ever prefer my messy, Portuguese documented code to that, just ask me and I'll send it with a few explanations :) Best, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Cabal and DB packages
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-1.2.2.0). > > -- > > with HSQL : > > Database/HSQL.hsc:66:7: > Could not find module `System.Time': >it is a member of package old-time-1.0.0.0, which is hidden > > so I added 'old-time' to the 'build-depends' line in the .cabal file > > but then it fails building with > > Building hsql-1.7... > [1 of 2] Compiling Database.HSQL.Types ( Database/HSQL/Types.hs, dist/ > build/Database/HSQL/Types.o ) > > Database/HSQL/Types.hs:134:18: Not in scope: type variable `forall' > > Database/HSQL/Types.hs:134:25: Not in scope: type variable `a' > > Database/HSQL/Types.hs:134:27: > Illegal operator `.' in type `forall a . (Int >-> FieldDef > -> (FieldDef -> > CString -> Int -> IO a) -> IO a)' >(Use -XTypeOperators to allow operators in types) > This means you need -XRank2Polymorphism or maybe -XExistentialQuantification. > etc... > > At this point, it goes over my head... > > --- > > What the hell, I'll use HaskellDB and FlatDB, but then I get this > message while building HaskellDB : > > src/Database/HaskellDB/HDBRec.hs:106:11: > Illegal signature in pattern: l f a > Use -XPatternSignatures to permit it > > when I add 'PatternSignatures' to the 'Extensions:' line in .cabal, > it fails configuring with : > > Setup.hs: haskelldb.cabal:8: Parse of field 'extensions' failed: > > Jsus, nevermind, I'll try Takusen Are you sure you specified the right extensions? (correct spelling, correct separators) Unfortunately readP doesn't give you nice error messages. > > --- > > with Takusen : > > $ runhaskell Setup.hs configure > > Setup.hs:26:7: > Could not find module `Distribution.Program': >Use -v to see a list of the files searched for. > > I give up... > > That means that Takusen requires an older Cabal. I'd have to look at the code to see how hard it would be to fix this. > Is there any simple way to do it though ? Is there any problems with > Cabal that I need to work around ? > > Help !! > > Manu > > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] An interesting monad: "Prompt"
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: t (m :: * -> *) (a :: *) Prompt: Prompt (p :: * -> *) (a :: *) Since you can substitute "Prompt" for t and rename m to p, they look like they match the some of the same types to the compiler. However, since Prompt won't ever be declared as an instance of MonadTrans, the overlap is safe. The alternative is to declare all the instances you need manually: instance MonadPrompt p (StateT s (Prompt p)) where prompt = lift . prompt -- etc. -- ryan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Cabal and DB packages
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.hsc:66:7: Could not find module `System.Time': it is a member of package old-time-1.0.0.0, which is hidden so I added 'old-time' to the 'build-depends' line in the .cabal file but then it fails building with Building hsql-1.7... [1 of 2] Compiling Database.HSQL.Types ( Database/HSQL/Types.hs, dist/ build/Database/HSQL/Types.o ) Database/HSQL/Types.hs:134:18: Not in scope: type variable `forall' Database/HSQL/Types.hs:134:25: Not in scope: type variable `a' Database/HSQL/Types.hs:134:27: Illegal operator `.' in type `forall a . (Int -> FieldDef -> (FieldDef -> CString -> Int -> IO a) -> IO a)' (Use -XTypeOperators to allow operators in types) etc... At this point, it goes over my head... --- What the hell, I'll use HaskellDB and FlatDB, but then I get this message while building HaskellDB : src/Database/HaskellDB/HDBRec.hs:106:11: Illegal signature in pattern: l f a Use -XPatternSignatures to permit it when I add 'PatternSignatures' to the 'Extensions:' line in .cabal, it fails configuring with : Setup.hs: haskelldb.cabal:8: Parse of field 'extensions' failed: Jsus, nevermind, I'll try Takusen --- with Takusen : $ runhaskell Setup.hs configure Setup.hs:26:7: Could not find module `Distribution.Program': Use -v to see a list of the files searched for. I give up... Is there any simple way to do it though ? Is there any problems with Cabal that I need to work around ? Help !! Manu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell code in Wordpress
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 indentation. :-( > > For the Gtk2Hs website I used a program (partly derived from hscolour) > to highlight and adds links to documentation. It generates xhtml which > one can just paste in. > > See the hello world example on this page: > > http://haskell.org/gtk2hs/documentation/ > > The program is here: > > http://darcs.haskell.org/gtk2hs/docs/tools/AddLinks.hs > > > Duncan > > > -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Pretty-printing peg solitaire boards
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 $ blockToDoc $ hsepBlocks $ intersperse colon boards John +++ Maurício [Nov 25 07 03:40 ]: > 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: > > 00# > 00# > #00 > 000 > 000 > 000 > 000 : 00# > 00# > 000 > 000 > 000 > 000 > 000 > > but what I really want is this: > > 00# 00# > 00# 00# > #00 000 > 000 : 000 > 000 000 > 000 000 > 000 000 > > What I'm I doing wrong? When I have two boards > a,b::Doc, I'm composing them with > > a <+> colon <+> b > > and rendering them with just 'render'. Should I > try something else? > > Thanks, > Maurício > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] problems building ycr2js
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 -> return $ getDirectory $ getDirectory x +Just x -> return $ dropFileName x } 2007/11/25, Thomas Hartman <[EMAIL PROTECTED]>: > 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. Thereafter, sh was bash. > > Beh. > > I also had to rm -rf ghc and run make again; ((cd src/translator/js; > make clean) was not sufficient. (Something wrong with clean?) > > So this got me past the sh mis-aliasing issue but I'm now having > problems on the final ghc make command. > > What is System.FilePath.Version_0_09 ? > > t. > > [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>ghc > --make -i../../compiler98 -i../../libraries/core > -i../../libraries/general -i../../../depends/filepath > -i../../../depends/play -i../../../depends/uniplate ycr2js.hs -o > /home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/inst/bin/ycr2js > > ycr2js.hs:8:7: > Could not find module `System.FilePath.Version_0_09': > Use -v to see a list of the files searched for. > > [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>ghc > --version > The Glorious Glasgow Haskell Compilation System, version 6.8.1 > [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>ghc-pkg > list | grep -i filepath > filepath-1.1.0.0, (ghc-6.8.1), haskell-src-1.0.1.1, > > > > 2007/11/25, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]>: > > > > 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 compatible. > > > > They're correct. I now know there is no point in even thinking about > > YHC on Solaris or FreeBSD because it knows that /bin/sh is always > > bash. But then, portability is generally not considered a useful > > feature in the Linux world > > > > -- > > brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED] > > system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED] > > electrical and computer engineering, carnegie mellon universityKF8NH > > > > > > > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] problems building ycr2js
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. Thereafter, sh was bash. Beh. I also had to rm -rf ghc and run make again; ((cd src/translator/js; make clean) was not sufficient. (Something wrong with clean?) So this got me past the sh mis-aliasing issue but I'm now having problems on the final ghc make command. What is System.FilePath.Version_0_09 ? t. [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>ghc --make -i../../compiler98 -i../../libraries/core -i../../libraries/general -i../../../depends/filepath -i../../../depends/play -i../../../depends/uniplate ycr2js.hs -o /home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/inst/bin/ycr2js ycr2js.hs:8:7: Could not find module `System.FilePath.Version_0_09': Use -v to see a list of the files searched for. [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.1 [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js>ghc-pkg list | grep -i filepath filepath-1.1.0.0, (ghc-6.8.1), haskell-src-1.0.1.1, 2007/11/25, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]>: > > 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 compatible. > > They're correct. I now know there is no point in even thinking about > YHC on Solaris or FreeBSD because it knows that /bin/sh is always > bash. But then, portability is generally not considered a useful > feature in the Linux world > > -- > brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED] > system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED] > electrical and computer engineering, carnegie mellon universityKF8NH > > > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] problems building ycr2js
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 compatible. They're correct. I now know there is no point in even thinking about YHC on Solaris or FreeBSD because it knows that /bin/sh is always bash. But then, portability is generally not considered a useful feature in the Linux world -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED] system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED] electrical and computer engineering, carnegie mellon universityKF8NH ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] problems building ycr2js
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 controversial, but it appears that the feisty devs are not amenable to switching /bin/sh back to bash, despite massive script breakage, because using dash as default saves them tim. I must say, I disagree with this move; and feel a bit let down by a distro that overall has been very good to me. 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 compatible. I will try to fix this myself by editing the makefile. I'll also volunteer to the buildbot. FWIW, this shouldn't affect ubuntu dapper (long term support) as they still do the expected thing with sh. thomas. 2007/11/24, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]>: > > On Nov 24, 2007, at 17:07 , Thomas Hartman wrote: > > > ltag=`echo ${tag:1} | tr [:upper:] [:lower:] > > ` ; \ > > echo " interface HTML${tag:0:1}${ltag}Element > > : HTMLElement {" >> W3C/addtags.idl ; \ > (...) > > /bin/sh: Syntax error: Bad substitution > > Translation: "This program only works on Linux." > > That variable substitution is not supported by /bin/sh on any system > where /bin/sh is not bash, which is to say any system that is not > Linux. (And possibly even not on some Linuxes; I think I've heard at > least one distribution has tried to break the bash dependency, but > I'm sure they'll go back soon because of all the people complaining > about how "broken" it is.) > > -- > brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED] > system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED] > electrical and computer engineering, carnegie mellon universityKF8NH > > > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Libraries need a new owner
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 Data.Map/Set clones. Well, I have decided to stop work on these. So they need a new owner if they're going to go anywhere. If anyone is interested in the job then I suggest they contact myself or Jean-Philippe Bernardy. Of course I will be happy to provide any help or advise anyone who takes over these libs may feel they need from me. I might even contribute a few patches from time to time myself :-) Thanks -- Adrian Hey ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe