Re: [Haskell-cafe] Program used for debugging

2011-12-02 Thread Rustom Mody
On Thu, Dec 1, 2011 at 7:40 PM, Yves Parès limestr...@gmail.com wrote: Hey, What do you mostly use for debugging? Simple calls to Debug.Trace.trace? Hpc? Hood? I also wonder about 'type-debugging' Using ghci: For a top level expression: - if it is not compiling I can put in (or remove) a

Re: [Haskell-cafe] Program used for debugging

2011-12-02 Thread Yves Parès
But for internal expressions it can be quite hairy to figure out why what haskell thinks is the type of something and what I think dont match. ^^ Just give the internal expression a type you know to be wrong, then GHC will display the infered type and say it doesn't match the one you wrote.

[Haskell-cafe] exhibit space at CeBIT Open Source 2012

2011-12-02 Thread Mathias Huber
Dear Haskellers, this might interest those not too far from Hannover, Germany: http://www.linux-magazine.com/Online/News/CeBIT-Open-Source-2012-Call-for-Projects CeBIT welcomes open source projects to Hannover, Germany! The show organization and Linux Magazine are calling for open source

[Haskell-cafe] cabal install --hyperlink-source ?

2011-12-02 Thread Johannes Waldmann
Hello. I can do cabal install --enable-documentation which is nice because it does configure, build, haddock and copy in one go, but I don't see how to pass options from cabal install to cabal haddock (e.g., --hyperlink-source) Any hints appreciated, J.W. signature.asc Description: OpenPGP

Re: [Haskell-cafe] cabal install --hyperlink-source ?

2011-12-02 Thread Ozgur Akgun
On 2 December 2011 16:13, Johannes Waldmann waldm...@imn.htwk-leipzig.dewrote: but I don't see how to pass options from cabal install to cabal haddock (e.g., --hyperlink-source) As it seems, it is not possible.

[Haskell-cafe] ANNOUNCE: monad-control-0.3

2011-12-02 Thread Bas van Dijk
Hello, I just released monad-control-0.3. The package for lifting control operations (like catch, bracket, mask, alloca, timeout, forkIO, modifyMVar, etc.) through monad transformers: http://hackage.haskell.org/package/monad-control-0.3 It has a new and improved API which is: * easier to

Re: [Haskell-cafe] ANNOUNCE: monad-control-0.3

2011-12-02 Thread Bas van Dijk
On 3 December 2011 00:45, Bas van Dijk v.dijk@gmail.com wrote: * 60 times faster than the previous release! Here are some benchmark results that compare the original monad-peel, the previous monad-control-0.2.0.3 and the new monad-control-0.3: http://basvandijk.github.com/monad-control.html

[Haskell-cafe] Weird interaction between literate haskell, ghci and OverloadedStrings

2011-12-02 Thread Erik de Castro Lopo
Hi, I'm working on a literate haskell document (actually TeX, but the example below is just test) and I'm using ByteStrings in the code. I know I can do: ghci -XOverloadedStrings file.lhs or, after ghci is running I can do: Main :set -XOverloadedStrings but I'd like to embed a

Re: [Haskell-cafe] Weird interaction between literate haskell, ghci and OverloadedStrings

2011-12-02 Thread Ivan Lazar Miljenovic
On 3 December 2011 16:18, Erik de Castro Lopo mle...@mega-nerd.com wrote: Hi, I'm working on a literate haskell document (actually TeX, but the example below is just test) and I'm using ByteStrings in the code. I know I can do:    ghci -XOverloadedStrings file.lhs or, after ghci is

Re: [Haskell-cafe] Weird interaction between literate haskell, ghci and OverloadedStrings

2011-12-02 Thread Erik de Castro Lopo
Ivan Lazar Miljenovic wrote: Add :set -XOverloadedStrings to a (possibly local) .ghci file? It doesn't contain it within the same document, but then if it's a local one you could also add :load file.lhs in there so that you just have to type ghci. Unfortunately, thats no better than telling