Re: [Haskell-cafe] Again, version conflicting problem with cabal-install

2012-06-20 Thread Magicloud Magiclouds
OK. I found cabal-src tool, which solved this perfect. On Wed, Jun 20, 2012 at 9:22 AM, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: Hi,  The names here were just placeholder. And I just found out the reason.  Hackage magicloud is local (not from hackage.haskell.org), there is

Re: [Haskell-cafe] [Haskell] [ANN] GenCheck - a generalized property-based testing framework

2012-06-20 Thread Henning Thielemann
On Tue, 19 Jun 2012, Jacques Carette wrote: Its main novel features are: * introduces a number of /testing strategies/ and /strategy combinators/ * introduces a variety of test execution methods * guarantees uniform sampling (at each rank) for the random strategy * guarantees both uniqueness

Re: [Haskell-cafe] Problem with plugins

2012-06-20 Thread Jeremy Shaw
I really have no idea. I am the new plugins maintainer -- but so far that mostly means I am willing to apply darcs patches and uploading things to hackage. I have not had a chance to really dig into plugins. I will now make some wild guesses. 1. does it matter if you compile with -O2 vs -O0 ?

Re: [Haskell-cafe] Problem with plugins

2012-06-20 Thread Timo von Holtz
I compile the files dynamically, so the compiler version is out of the question. I already tested -O0. In the modules I dynamically load, I import some of the modules the main program also uses. I can reproduce the exact same error with this simple example: Main.hs: module Main (main, add) where

Re: [Haskell-cafe] Problem with plugins

2012-06-20 Thread Timo von Holtz
My example was somewhat wrong, since it only works with runghc = 7.0 and not 7. Here a better example which has exactly the same issues as my code. Main.hs: module Main where import Main1 main = main1 Main1.hs: module Main1 (main1, add) where import System.Plugins add = (+1) main1 :: IO ()

Re: [Haskell-cafe] Hackage 2 maintainership

2012-06-20 Thread Ben Gamari
Krzysztof Skrzętnicki gte...@gmail.com writes: Hi, Are there any news how things are going? Things have been pretty stagnant yet again. I was more than a bit over-optimistic concerning the amount of time I'd have available to put into this project. Moreover, the tasks required to get Hackage

Re: [Haskell-cafe] [Haskell] [ANN] GenCheck - a generalized property-based testing framework

2012-06-20 Thread Jacques Carette
On 20/06/2012 6:56 AM, Henning Thielemann wrote: QuickCheck is Haskell-98 and thus is very portable. I see that GenCheck needs some more extensions - type families, multi-parameter type classes, what else? FlexibleContexts and FlexibleInstances. However, I am fairly sure that the

[Haskell-cafe] [Word8] - FilePath using ghc's file system encoding

2012-06-20 Thread Joey Hess
I found myself writing the code below today, and thought I'd write to see if there's a better way, perhaps one that doesn't use unsafePerformIO. A sample use case for this is a program that reads a FilePath from a Handle, and then operates on that file on disk. GHC uses a special encoding for

[Haskell-cafe] relocation R_X86_64_PC32 against undefined symbol

2012-06-20 Thread Henning Thielemann
Just for the record: I compiled with GHC and got the linker error: /usr/bin/ld: dist/build/.../Module.dyn_o: relocation R_X86_64_PC32 against undefined symbol `..._xyz1_closure' can not be used when making a shared object; recompile with -fPIC Problem was that I forgot to declare Module

Re: [Haskell-cafe] [Haskell] JustHub 'Sherkin' Release

2012-06-20 Thread Chris Dornan
[Sorry for the delay -- I missed this reply until prompted.] Very nice, this looks quite straightforward. I wonder about two things: - Is it possible to pass configure-time flags to those libraries? For example, I would like to build haskeline with -fterminfo. Can Hub

[Haskell-cafe] The use of continuation monad in C++

2012-06-20 Thread Bartosz Milewski
I published a blog for C++ programmers about the advantages of using the continuation monad in dealing with asynchronous API, concurrency, and parallelism. I explained the concepts in Haskell and the translated them into C++. http://fpcomplete.com/asynchronous-api-in-c-and-the-continuation-monad/

Re: [Haskell-cafe] [Haskell] JustHub 'Sherkin' Release

2012-06-20 Thread Peter Simons
Hi Chris, I'm also wondering about this issue: - How do you handle packages that depend on system libraries? hsdns, for example, requires the adns library to build. Does Hub know about this? Does Hub know about system-level libraries that Haskell packages need to build, like

Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)

2012-06-20 Thread Hilco Wijbenga
Hi Hamish, On 19 June 2012 22:47, Hamish Mackenzie hamish.k.macken...@googlemail.com wrote: This release has an important bug fix for the metadata download. When metadata was downloaded using libcurl it was not treated as binary data.  If you used one of our binary installers or if you built

Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)

2012-06-20 Thread Albert Y. C. Lai
On 12-06-20 07:59 PM, Hilco Wijbenga wrote: hilco@centaur ~ ~$ rm -rf .cabal/ I am not sure why you start with this. If you do this for a clean start, see my http://www.vex.net/~trebla/haskell/sicp.xhtml#remove for why it is not a clean start. If you do this for some other purpose,

Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)

2012-06-20 Thread Hilco Wijbenga
On 20 June 2012 18:22, Oliver Batchelor saul...@gmail.com wrote: Check the error given by cairo. cabal install cairo-0.12.3.1 Well, it wasn't cairo that was the problem but ... You probably need to put the .cabal/bin  in your PATH, so that the tools such as c2hs can run. ... indeed, adding

[Haskell-cafe] Haskell Weekly News: Issue 232

2012-06-20 Thread Daniel Santa Cruz
Welcome to issue 232 of the HWN, an issue covering crowd-sourced bits of information about Haskell from around the web. This issue covers the week of June 10 to 16, 2012. Quotes of the Week * irene-knapp: ewtoombs: the universe is already an interactive quantum physics

Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)

2012-06-20 Thread Hilco Wijbenga
On 20 June 2012 18:32, Albert Y. C. Lai tre...@vex.net wrote: On 12-06-20 07:59 PM, Hilco Wijbenga wrote: hilco@centaur ~ ~$ rm -rf .cabal/ I am not sure why you start with this. If you do this for a clean start, see my http://www.vex.net/~trebla/haskell/sicp.xhtml#remove for why it is

Re: [Haskell-cafe] [Haskell] ANNOUNCE: set-monad

2012-06-20 Thread Dan Burton
Hi George, I didn't have access to my computer over the weekend, so I apologize for not actually running the examples I provided. I was simply projecting what I thought could reasonably be assumed about the behavior of a Set. Data.Set.Monad's departure from those assumptions is a double-edged