[Haskell-cafe] ANNOUNCE: abacate and chuchu

2012-08-13 Thread Marco Túlio Pimenta Gontijo
Hi. I'm pleased to announce the first release of Abacate and Chuchu. Chuchu is a port of Ruby's Cucumber to Haskell, and Abacate is a parser for the Gherkin language, used by Cucumber. According to their web site, "Cucumber lets software development teams describe how software should behave in p

[Haskell-cafe] Lost global Contents of haddock

2012-08-14 Thread Marco Túlio Pimenta Gontijo
Hi. I just noticed that my global Contents of the haddock documentation of modules ( file:///home/marcot/.cabal/share/doc/index.html ) lost most of the modules. My workflow is fairly straightforward, but I do some --reinstall --force-reinstalls with cabal install. For instance, the link for Prel

Re: [Haskell-cafe] Debian 6.0.5: 'cabal install curl' problem

2012-08-14 Thread Marco Túlio Pimenta Gontijo
Hi dokondr. On Tue, Aug 14, 2012 at 11:23 AM, dokondr wrote: (...) > Cabal fails to install 'curl' because it can not find curl library. Please > see detailed cabal output at the end of this message. Cabal means the curl C library, which must be installed by either the packages libcurl4-openssl-

Re: [Haskell-cafe] Regex string replacement

2012-08-18 Thread Marco Túlio Pimenta Gontijo
Hi Romildo. On Sat, Aug 18, 2012 at 9:18 AM, José Romildo Malaquias wrote: (...) > I am looking for a substring replacement based on Perl like regular > expressions that would let me use part of the original string in the > replacement string. Something like: > >reReplace "name is (.*)\\." "h

[Haskell-cafe] Combining databases from packages installed with cabal install

2012-08-21 Thread Marco Túlio Pimenta Gontijo
Hi. I'm configuring haddock via cabal install (see [0]) to build the hoogle database. The database is being installed in ~/.cabal/share/doc/$package-$version/html/$package.txt, but is not being combined with the default database. That is, if right after the installation I try to search with the

[Haskell-cafe] cost-centre names

2012-09-16 Thread Marco Túlio Pimenta Gontijo
Hi. I have a question about cost-centre names, as shown on .hp files produced by +RTS -hc. They have the form A/B/C/D/E/F/G/... Usually, it seems that it means A, called by B, called by C, etc, but that's not the case sometimes. I have a case here (called with -L200): replaceOneOf’/clean/tagsTe

[Haskell-cafe] Type error with Type families

2012-09-16 Thread Marco Túlio Pimenta Gontijo
Hi. I cannot make this program type check: {-# LANGUAGE TypeFamilies, FlexibleContexts #-} import qualified Data.ListLike as LL class LL.ListLike full (Item full) => ReplaceOneOf full where type Item full :: * replaceOneOf :: [Item full] -> full -> full -> full repl

Re: [Haskell-cafe] cost-centre names

2012-09-18 Thread Marco Túlio Pimenta Gontijo
Hi Felipe. On Sun, Sep 16, 2012 at 1:57 PM, Felipe Almeida Lessa wrote: > On Sun, Sep 16, 2012 at 7:57 AM, Marco Túlio Pimenta Gontijo > wrote: >> I have a question about cost-centre names, as shown on .hp files >> produced by +RTS -hc. They have the form A/B/C/D/E/F/G/.

Re: [Haskell-cafe] Type error with Type families

2012-09-18 Thread Marco Túlio Pimenta Gontijo
On Mon, Sep 17, 2012 at 6:27 PM, Alexander Solla wrote: > > > On Mon, Sep 17, 2012 at 10:59 AM, Ryan Ingram wrote: >> >> The problem is that the function 'element' is ambiguous, for the reasons >> MigMit pointed out. >> >> The standard solution to this problem is to add a dummy argument to fix >>