[Haskell-cafe] Announcing AusHac 2011 - The second annual Australian Haskell Hackathon (July 8-10)

2011-04-17 Thread Alex Mason
Attention all Australasian Haskellers! After last year’s fantastic turnout for the first Australian Haskell Hackathon - AusHac 2010 - we’ve decided to organise another. As it’s rather boring to have a Hackathon with only two people, we encourage and welcome anyone interested in Haskell in

Re: [Haskell-cafe] Haskell Platform 2011.2.0.1 now available

2011-04-17 Thread Joachim Breitner
Hi, Am Samstag, den 16.04.2011, 11:17 -0700 schrieb Don Stewart: On Fri, Apr 15, 2011 at 11:50 PM, Joachim Breitner nome...@debian.org wrote: Am Freitag, den 15.04.2011, 15:44 -0700 schrieb Don Stewart: We're pleased to announce the 2011.2.0.1 release of the Haskell Platform: a single,

[Haskell-cafe] http://trac.haskell.org/ not redering correctly

2011-04-17 Thread Erik de Castro Lopo
Hi all, Trac pages aren't rendering correctly. It seems the HTTP server can't find the CSS files. See below. Cheers, Erik erikd wget --proxy=off http://trac.haskell.org/trac/chrome/common/css/ticket.css -O /dev/null --2011-04-17 20:11:53--

[Haskell-cafe] Template Haskell question

2011-04-17 Thread Alexey Karakulov
I'm interested if it's possible to use functions from some module without explicitly importing it. In ghci it's done on the fly, like this: Prelude Data.Map.empty Loading package array-0.3.0.2 ... linking ... done. Loading package containers-0.4.0.0 ... linking ... done. fromList [] But without

[Haskell-cafe] Killing threads in foreign calls.

2011-04-17 Thread Jason Dusek
I am building an application that uses Postgres for storage. If a query runs too long, I would like to kill the querying thread, releasing its lock on the connection; if the connection is a in a bad state -- for example, busy -- I would like to clean up the connection. Unfortunately,

Re: [Haskell-cafe] Killing threads in foreign calls.

2011-04-17 Thread Edward Z. Yang
This is a fairly nontrivial problem. First off, let me tell you what you do not /actually/ want to happen: you don't want the OS level thread performing the foreign call to actually be killed; most C code is not written a way that can gracefully recover from this, and unless you have explicit

Re: [Haskell-cafe] Killing threads in foreign calls.

2011-04-17 Thread Jason Dusek
On Sun, Apr 17, 2011 at 20:26, Edward Z. Yang ezy...@mit.edu wrote: This is a fairly nontrivial problem.  First off, let me tell you what you do not /actually/ want to happen: you don't want the OS level thread performing the foreign call to actually be killed... From this I gather, one can

[Haskell-cafe] Oddness with binary-0.5.0.2 user install

2011-04-17 Thread Antoine Latter
Hello folks, The docs for binary-0.5.0.2 on Hackage claim that their is a Binary instance for lazy ByteStrings, but there does not seem to be such an instance in my local install of binary-0.5.0.2. In addition, the docs on Hackage claim that there is an Applicative instance for the 'Get' type,

Re: [Haskell-cafe] Oddness with binary-0.5.0.2 user install

2011-04-17 Thread Antoine Latter
On Sun, Apr 17, 2011 at 7:48 PM, Antoine Latter aslat...@gmail.com wrote: Hello folks, The docs for binary-0.5.0.2 on Hackage claim that their is a Binary instance for lazy ByteStrings, but there does not seem to be such an instance in my local install of binary-0.5.0.2. In addition, the

Re: [Haskell-cafe] import functionality in DSLs

2011-04-17 Thread wren ng thornton
On 4/16/11 9:55 AM, Felipe Almeida Lessa wrote: On Sat, Apr 16, 2011 at 10:29 AM, Nikhil A. Patil patil.nik...@gmail.com wrote: doit :: DSL Term doit = do (+)- (+) n0- n0 k- k -- begin beautiful DSL code let x = k + n0 return $ x + x I

Re: [Haskell-cafe] Template Haskell question

2011-04-17 Thread Daniel Schüssler
Hello, assuming you mean avoiding the import of Data.Map in the module *using* x, you can use name quotations: A.hs: {-# LANGUAGE TemplateHaskell #-} module A where import Data.Map import Language.Haskell.TH x = varE 'empty B.hs: {-# LANGUAGE TemplateHaskell #-} module B