Re: [Haskell-cafe] [ANNOUNCE] hashable-generics

2012-11-07 Thread Clark Gaebel
Your first link says that any library in the Haskell Platform must be supported on all operating systems and compilers supported by the Haskell Platform. Right now, the platform only supports GHC, and on Windows, Linux, and Mac. This change does not break any of those. I say this because if someon

[Haskell-cafe] ANNOUNCE: rdf4h

2012-11-07 Thread Rob Stewart
Hi, I am pleased to announce the recent release of rdf4h 1.1.0 . The Resource Description Framework (RDF) is a language for representing information about resources in the World Wide Web, and is a family of W3C specifications. RDF is a standardized machine readable data model that provides a comm

Re: [Haskell-cafe] [ANNOUNCE] hashable-generics

2012-11-07 Thread dag.odenh...@gmail.com
On Tue, Nov 6, 2012 at 3:32 PM, Herbert Valerio Riedel wrote: > Clark Gaebel writes: > | There's no disadvantage to having the generic functionality in a > | separate package, right? > Well for one it means you can't simply write instance Class Type but must write instance Class Ty

Re: [Haskell-cafe] [ANNOUNCE] hashable-generics

2012-11-07 Thread dag.odenh...@gmail.com
A note: if you use generic-deriving instead of ghc-prim, the generics code could in theory be portable as well. That package re-exports from ghc-prim when compiled with GHC, and provides a compatible fallback implementation. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] [ANNOUNCE] hashable-generics

2012-11-07 Thread dag.odenh...@gmail.com
Also: Platform includes QuickCheck which has a conditional API for TemplateHaskell support. I wouldn't be surprised if there are more examples like that. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskel

[Haskell-cafe] Cross platform method for getting the /actual/ contents of a directory

2012-11-07 Thread timothyhobbs
Hello, I'm writing a function to find out if a given directory is empty.  I came up with the obvious: do{  contents <-  getDirectoryContents "/home/timothy/works/current/anonGraph/ empty/" ;  let   realContents     =   filter    (\file -> case file of    "." -> False ;    ".." -> Fals

Re: [Haskell-cafe] Cross platform method for getting the /actual/ contents of a directory

2012-11-07 Thread Brandon Allbery
On Wed, Nov 7, 2012 at 2:16 PM, wrote: > And this works fine on linux, but I wonder. On other systems, is "." and > ".." allowed as file names? Couldn't a windows user actually end up with a > file name named "." and this method would fail? > Windows treats dots in filenames specially as well,

[Haskell-cafe] Where is the documentation on exception types kept?

2012-11-07 Thread timothyhobbs
Hello, I am trying to catch an "thread blocked on MVar indefinitely exception."  Of course I can use ::SomeException as explained in http://hackage.haskell.org/ packages/archive/base/latest/doc/html/Control-Exception.html#g:3 but there is no explanation as to how to find the more case specific exc

Re: [Haskell-cafe] Where is the documentation on exception types kept?

2012-11-07 Thread Simon Hengel
Hi, > I am trying to catch an "thread blocked on MVar indefinitely exception."  Of > course I can use ::SomeException as explained in http://hackage.haskell.org/ > packages/archive/base/latest/doc/html/Control-Exception.html#g:3 but there > is no explanation as to how to find the more case specif

Re: [Haskell-cafe] Where is the documentation on exception types kept?

2012-11-07 Thread timothyhobbs
I really like to be able to find these things in documentation and if not documentation than source code.  However thank you for your reply, in this case it has helped me :) Timothy -- Původní zpráva -- Od: Simon Hengel Datum: 7. 11. 2012 Předmět: Re: [Haskell-cafe] Where is th

Re: [Haskell-cafe] Where is the documentation on exception types kept?

2012-11-07 Thread Albert Y. C. Lai
On 12-11-07 03:36 PM, timothyho...@seznam.cz wrote: I am trying to catch an "thread blocked on MVar indefinitely exception." Of course I can use ::SomeException as explained in http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Exception.html#g:3 but there is no explanation

Re: [Haskell-cafe] Where is the documentation on exception types kept?

2012-11-07 Thread timothyhobbs
Thanks!  That is a neat way.  At least for exceptions which I know to exists and know how to trigger ;) Tim -- Původní zpráva -- Od: Albert Y. C. Lai Datum: 7. 11. 2012 Předmět: Re: [Haskell-cafe] Where is the documentation on exception types kept? "On 12-11-07 03:36 PM, timoth

[Haskell-cafe] Compiling with hsc2hs and -Wextra

2012-11-07 Thread Niklas Hambüchen
Hi, when I compile my C binding using hsc2hs with the -Wextra enabled in my cabal file: cc-options: -std=c99 -Wall -Wextra -Werror This breaks the compilation started by hsc2hs: MyHsc.hsc: In function ‘main’: MyHsc.hsc:16:15: error: unused parameter ‘argc’ [-Werror=unused-parameter]

[Haskell-cafe] Haskell Weekly News: Issue 250

2012-11-07 Thread Daniel Santa Cruz
Welcome to issue 250 of the HWN, an issue covering crowd-sourced bits of information about Haskell from around the web. This issue covers the week of October 28 to November 3, 2012. Quotes of the Week * Cale: A list is a bit like a loop which hasn't happened yet. This operation is similar

[Haskell-cafe] Does anyone know where George Pollard is?

2012-11-07 Thread Myles C. Maxfield
Hello, I sent a message to George Pollard (por...@porg.es) about his 'idna' package [1] a couple days ago, but he hasn't responded. I'd like to depend on his package for something that I'm working on, but his package fails to build (The email I sent him includes a patch that should fix up the build

Re: [Haskell-cafe] Does anyone know where George Pollard is?

2012-11-07 Thread Johan Tibell
On Wed, Nov 7, 2012 at 9:03 PM, Myles C. Maxfield wrote: > Does anyone know where he is? If not, is there an accepted practice to > resolve this situation? Should I upload my own 'idna2' package. > Generally we try to contact the maintainer (and give him/her enough time to reply, in case he/she i