Re: [Haskell-cafe] Idea for a tool

2010-10-20 Thread Bas van Dijk
On Wed, Oct 20, 2010 at 7:36 AM, Michael Snoyman mich...@snoyman.com wrote: Hi all, I saw a quote from Eric Kow via Neil Mitchell[1] that we don't spend enough time writing tools. Well, I've decided that the most annoying part of package maintainership right now is staying on top of new

Re: [Haskell-cafe] Re: How to make cabal pass flags to happy?

2010-10-20 Thread Niklas Broberg
Thanks for the answers, all. :-) Since this doesn't seem to be the common knowledge I expected it to be, I'll try to work out how it's done properly and blog about it. And hopefully generate some much needed documentation for cabal along the way. What I want specifically is to have happy

[Haskell-cafe] Re: libefence useful for debugging ghc+ffi programs?

2010-10-20 Thread Johannes Waldmann
That looks a lot like a double free [...] there's definitely something about initializing libcurl: http://curl.haxx.se/libcurl/c/curl_easy_init.html uses nice phrases like may be letal in multi-threading the documentation of Haskell curl

Re: [Haskell-cafe] Idea for a tool

2010-10-20 Thread Neil Mitchell
Hi Michael, I want this tool. I fake it slightly by using my RSS reader and http://page2rss.com/ to get notified when any packages I depend on change, which basically works - but if you could provide a better service (ideally integrated in to hackage), I'd use it. Thanks, Neil On Wed, Oct 20,

Re: [Haskell-cafe] Idea for a tool

2010-10-20 Thread Michael Snoyman
Well, here's an initial, ugly version of this tool. Feed it two command line arguments: a cabal file, and the 00-index.tar file in the .cabal/packages/hackage.haskell.org folder. More work to follow. Michael On Wed, Oct 20, 2010 at 12:25 PM, Neil Mitchell ndmitch...@gmail.com wrote: Hi Michael,

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread John Lato
My $.02 follows: From: Michael Snoyman mich...@snoyman.com There's only two skills which I think absolutely must go: Other languages I know: C# .NET, XSLT, Microsoft SQL Server, XML, SQL, CSS, C, C++, Java, HTML, Visual Basic Script, Pascal, Rexx, Basic and assembler tool building

[Haskell-cafe] HDBC/ODBC/MySQL - working configuration?

2010-10-20 Thread Neil Davies
Hi I'm having some difficulty getting the above combination to work, I've successfully used ODBC against MS but the MySQL stuff is creating some really interesting error conditions in the HDBC-ODBC module. My first thought is that it must be me, so does anyone out there have this combination

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Ivan Lazar Miljenovic
On 20 October 2010 21:38, John Lato jwl...@gmail.com wrote: Cabal, packaging, build and distribution tools This should be two categories: Cabal internals and Software packaging/distribution tools.  Keep Cabal internals, possibly keep the other What does Cabal internals refer to? Actually

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Ivan Lazar Miljenovic
On 20 October 2010 21:52, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 20 Oct 2010, John Lato wrote:      Mathematics I'd be interested in how many Haskellers refer to Category Theory here, and how many to other mathematical subjects. :-) I for one refer to other stuff;

RE: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread Simon Peyton-Jones
| At the end of the day what motivated me to ask these questions it that | I like very much defining newtypes for most of the types I use, I have | completely forgotten about `type' aliasing. I'm completely happy to | write Foo and unFoo all over the place to aid my type correctness, but | I

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread John Lato
On Wed, Oct 20, 2010 at 11:48 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 20 October 2010 21:38, John Lato jwl...@gmail.com wrote: Cabal, packaging, build and distribution tools This should be two categories: Cabal internals and Software packaging/distribution tools.

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Stephen Tetley
On 20 October 2010 12:30, John Lato jwl...@gmail.com wrote: [SNIP] Again, Tool Authoring is too broad to be useful. Who are the skills lists for? Recruiters, other Haskellers to form strike forces, something else? For the recruiters I think they are somewhat obscure unless Well-Typed or Galois

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Ben Millwood
On Tue, Oct 19, 2010 at 2:32 PM, Michael Snoyman mich...@snoyman.com wrote: Algorithmic Problem Solving I think this needs to go, because I'm really having a hard time imagining any programmer who doesn't do this. High Assurance Software Development This sounds vague to me and/or the same as

Re: [Haskell-cafe] Idea for a tool

2010-10-20 Thread Michael Snoyman
Alright, the tool is up and incredibly basic right now. Go to: http://packdeps.haskellers.com/, type a search string, and hit enter. The site will filter through all of the cabal files for the most recent releases of each package and select the ones where your search string appears in the package

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Anthony Cowley
On Wed, Oct 20, 2010 at 9:02 AM, Ben Millwood hask...@benmachine.co.uk wrote: Robotics and Automation Would be tempted to drop Automation from here. That name was deliberately chosen, and is appropriate for people in the area, http://www.ieee-ras.org/ I have my own opinions on a lot of these

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Tim Matthews
I just want to throw out 2 extreme case solutions to think about while this problem doesn't really seem to be heading anywhere: 1) Drop the skills options in favor of the simple text box already in use. This would of course would have a big impact on attempting to search for haskellers. 2) A

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-20 Thread Yitzchak Gale
Michael Snoyman wrote: [1] http://hackage.haskell.org/package/mime-mail Great news! This is an important package. It's obviously very preliminary, though. This is not trivial to get right - look at the long and colorful history of the Python email library, detailed on the first page of the

Re: [Haskell-cafe] ANN: fountain-0.0.0

2010-10-20 Thread David Leimbach
2 things. 1. Wow that's cool. 2. Is this technology not patented by Digital Fountain? (now Qualcomm?) I remember when I first heard of fountain codecs, I thought it was science fiction based on the description :-). Dave On Tue, Oct 19, 2010 at 8:00 PM, Tom Hawkins tomahawk...@gmail.com

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread wren ng thornton
On 10/20/10 9:12 AM, Anthony Cowley wrote: We don't want people outside of an area of interest governing name choices that lessen the value of the tags. To be honest, when the thread first came up, I was afraid NLP (or AG) would end up on the cutting block because of that... As a strawman

Re: [Haskell-cafe] ANN: fountain-0.0.0

2010-10-20 Thread Tom Hawkins
1. Wow that's cool. Indeed. 2. Is this technology not patented by Digital Fountain?  (now Qualcomm?) I'm sure it is. This library is a naive implementation of LT codes, which have nowhere near the performance of Digital Fountain's Raptor codes. I remember when I first heard of fountain

Re: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread Christopher Done
On 20 October 2010 13:09, Simon Peyton-Jones simo...@microsoft.com wrote: Yes, you can freely use Foo/unFoo.  There's no runtime penalty.  (In the jargon of GHC's intermediate language, Foo and unFoo translate to *type-safe casts*, which generate no executable code. That includes the

Re: [Haskell-cafe] Re: libefence useful for debugging ghc+ffi programs?

2010-10-20 Thread Edward Z. Yang
Excerpts from Johannes Waldmann's message of Wed Oct 20 05:13:36 -0400 2010: and indeed, gethostbyname is famous for being non re-entrant. If you have the time, this would be a great time to improve the multithreaded support of these libraries. In particular, glibc offers a re-entrant version

[Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-20 Thread caseyh
Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Return value of a (windows) process

2010-10-20 Thread Tim
I have never used the above function you refer to so I am not sure about it's semantics. However, I have successfully used functions in System.Process module [1] (fairly standard) to spawn processes and get their exit codes on Windows. For example, (javac exits code 2 when provided no arguments)

Re: [Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-20 Thread Stephen Tetley
Claus Reinke posted this a while ago - see the attachment at the bottom of the message: http://www.haskell.org/pipermail/haskell-cafe/2007-July/029275.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread James Andrew Cook
On Oct 20, 2010, at 11:58 AM, Gregory Crosswhite gcr...@phys.washington.edu wrote: On 10/20/10 4:09 AM, Simon Peyton-Jones wrote: No, this isn't optimised. The trouble is that you write (map Foo xs), but GHC doesn't know about 'map'. We could add a special case for map, but then you'd

[Haskell-cafe] Re: libefence useful for debugging ghc+ffi programs?

2010-10-20 Thread Johannes Waldmann
and indeed, gethostbyname is famous for being non re-entrant. it already has a lock in Network.BSD, so I assume it's fine: {-# NOINLINE lock #-} lock :: MVar () lock = unsafePerformIO $ newMVar () withLock :: IO a - IO a withLock act = withMVar lock (\_ - act) getHostByName :: HostName -

Re: [Haskell-cafe] Re: Return value of a (windows) process

2010-10-20 Thread Arnaud Bailly
Well, I must be doing something wrong but don't know where, the code is rather straightforward. Or the scalac.bat script is buggy: Prelude Environment System.Process readProcessWithExitCode d:/Program Files/scala-2.8.0/bin/scalac.bat [-d,target] (ExitSuccess,,Exception in thread \main\

Re: [Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-20 Thread Stephen Sinclair
On Wed, Oct 20, 2010 at 3:11 PM, Stephen Tetley stephen.tet...@gmail.com wrote: Claus Reinke posted this a while ago - see the attachment at the bottom of the message: http://www.haskell.org/pipermail/haskell-cafe/2007-July/029275.html Thanks for that. Here's the relevant website that he

Re: [Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-20 Thread Stephen Sinclair
On Wed, Oct 20, 2010 at 4:27 PM, Stephen Sinclair radars...@gmail.com wrote: On Wed, Oct 20, 2010 at 3:11 PM, Stephen Tetley stephen.tet...@gmail.com wrote: Claus Reinke posted this a while ago - see the attachment at the bottom of the message:

Re: [Haskell-cafe] Re: libefence useful for debugging ghc+ffi programs?

2010-10-20 Thread Edward Z. Yang
Hmm, in that case, one possibility is someone else did an FFI import of gethostbyname and isn't using the same lock. Can you check for that? Edward Excerpts from Johannes Waldmann's message of Wed Oct 20 16:17:06 -0400 2010: and indeed, gethostbyname is famous for being non re-entrant.

Re: [Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-20 Thread Anton van Straaten
cas...@istar.ca wrote: Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :) ... I meant call Haskell functions from a browser; so the browser handles the GUI widgets and Haskell handles the processing. :) It's pretty easy to get

Re: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread Thomas Schilling
Do we really want to treat every newtype wrappers as a form of 'id'? For example: newtype Nat = Nat Integer -- must always be positive A possible rule (doesn't actually typecheck, but you get the idea): forall (x :: Nat). sqrt (x * x) = x If we ignore newtyping we get an incorrect

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-20 Thread Andrew Coppin
On 20/10/2010 09:48 PM, Anton van Straaten wrote: It's pretty easy to get the basics going. There are a bunch of options. Start here: http://www.haskell.org/haskellwiki/Web For what you're asking about, I'd suggest looking at the following options from that page. All of these options

[Haskell-cafe] hs-plugins and memory leaks

2010-10-20 Thread Evan Laforge
I was happy to see the recent announcement about hs-plugins being updated to work with newer ghc. I have a project and had always been planning to use it. However, there are some questions I've had about it for a long time. The 'yi' paper mentions both 'yi' and 'lambdabot' as users of

Re: [Haskell-cafe] hs-plugins and memory leaks

2010-10-20 Thread Don Stewart
qdunkan: However, there are some questions I've had about it for a long time. The 'yi' paper mentions both 'yi' and 'lambdabot' as users of hs-plugins. However, both those projects have long since abandoned it. I can't find any documentation on why, or even any documentation at all for Yi

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-20 Thread Michael Snoyman
You can use Network.Wai.Handler.SimpleServer from wai-extra[1]. If you want a full framework, Yesod[2] has full Windows support. Michael [1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/wai-extra [2] http://docs.yesodweb.com/ On Wed, Oct 20, 2010 at 11:10 PM, Andrew Coppin

[Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-20 Thread Daniel Santa Cruz
Welcome to issue 155 of the HWN, a newsletter covering developments in the [1]Haskell community in the week of October 10 - 16. This time around we again have 87 posts to HackageDB. Instead of posting the individual packages, we get to see and celebrate the 43 people behind these

Re: [Haskell-cafe] hs-plugins and memory leaks

2010-10-20 Thread Evan Laforge
So my questions are: Why did lambdabot and yi abandon plugins? Because it was unmaintained for around 5 years, and was fundamentally less portable than simpler state serialization solutions that offered some of the same benefits as full code hot swapping. Fair enough. The idea of being

[Haskell-cafe] Re: libefence useful for debugging ghc+ffi programs?

2010-10-20 Thread Johannes Waldmann
OK, never mind, I found the problem in my C code. some uninitialized variables - mostly they were 0, but sometimes not: I guess when I got mallocForeignPtrBytes that were just freed by the garbage collector. Although the program does a ton of allocations, most start with memcpy of something

[Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript compiler

2010-10-20 Thread Victor Nazarov
I've been working on this for some month and I think now I'm ready to share the results. http://github.com/sviperll/ghcjs Haskell to Javascript translator Project aims to provide solution to * compile modern Haskell libraries to Javascript files and use

Re: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread wren ng thornton
On 10/20/10 7:09 AM, Simon Peyton-Jones wrote: Yes, you can freely use Foo/unFoo. There's no runtime penalty. (In the jargon of GHC's intermediate language, Foo and unFoo translate to *type-safe casts*, which generate no executable code. When does the conversion to type-safe casts occur

[Haskell-cafe] playing around with network.curl

2010-10-20 Thread Michael Litchard
I'm using this tutorial as a guide http://flygdynamikern.blogspot.com/2009/03/extended-sessions-with-haskell-curl.html github has changed since this was posted, but I have managed a successful login. Now I am faced with dealing with a re-direct. I found this constructor CurlFollowLocation Bool

Re: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread Daniel Fischer
On Thursday 21 October 2010 01:11:25, wren ng thornton wrote: On 10/20/10 7:07 PM, wren ng thornton wrote: On 10/20/10 7:09 AM, Simon Peyton-Jones wrote: Yes, you can freely use Foo/unFoo. There's no runtime penalty. (In the jargon of GHC's intermediate language, Foo and unFoo translate to

Re: [Haskell-cafe] playing around with network.curl

2010-10-20 Thread Paulo Tanimoto
Hi Michael, On Wed, Oct 20, 2010 at 6:19 PM, Michael Litchard mich...@schmong.org wrote: I'm using this tutorial as a guide http://flygdynamikern.blogspot.com/2009/03/extended-sessions-with-haskell-curl.html github has changed since this was posted, but I have managed a successful login. Now

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-20 Thread Anton van Straaten
Andrew Coppin wrote: I'd like to have a go at writing CGI in Haskell. ... Does anybody know of a solution that works on Windows? I've previously run Happstack on Windows. That was a couple of years ago, though, so I don't know whether its Windows support is currently working.

Re: [Haskell-cafe] Re: How to make cabal pass flags to happy?

2010-10-20 Thread Duncan Coutts
On Wed, 2010-10-20 at 10:37 +0200, Niklas Broberg wrote: I think the right solution is for the happy source file to specify what kind of grammar it is / should be produced. Yes, that would mean modifying happy. Hmm, I agree with you in this particular case, regarding the grammar, since

[Haskell-cafe] Re: hs-plugins and memory leaks

2010-10-20 Thread Andy Stewart
Hi Evan, Evan Laforge qdun...@gmail.com writes: So my questions are: Why did lambdabot and yi abandon plugins? Because it was unmaintained for around 5 years, and was fundamentally less portable than simpler state serialization solutions that offered some of the same benefits as full code

Re: [Haskell-cafe] playing around with network.curl

2010-10-20 Thread Michael Litchard
I'm afraid I'll need a more complete example. When I try to modify the code above (after correcting the conditional tests), I get the following: * About to connect() to github.com port 443 (#0) * Trying 207.97.227.239... * connected * Connected to github.com (207.97.227.239) port 443 (#0) *

Re: [Haskell-cafe] Re: hs-plugins and memory leaks

2010-10-20 Thread Evan Laforge
Last, i remove pdynload code from my project temporary with below reasons: 1) Hold running state is difficult, like network state in browser or running state in terminal emulator. This doesn't seem too hard to me. Provided you are not swapping the module that defines the state in the first

Re: [Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript compiler

2010-10-20 Thread Richard O'Keefe
On 21/10/2010, at 12:01 PM, Victor Nazarov wrote: I've been working on this for some month and I think now I'm ready to share the results. Given that this is alpha code, what's the performance like? ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-20 Thread James Andrew Cook
On Oct 20, 2010, at 5:06 PM, Thomas Schilling nomin...@googlemail.com wrote: Do we really want to treat every newtype wrappers as a form of 'id'? For example: newtype Nat = Nat Integer -- must always be positive A possible rule (doesn't actually typecheck, but you get the idea):

Re: [Haskell-cafe] Re: hs-plugins and memory leaks

2010-10-20 Thread Andy Stewart
Evan Laforge qdun...@gmail.com writes: Last, i remove pdynload code from my project temporary with below reasons: 1) Hold running state is difficult, like network state in browser or running state in terminal emulator. This doesn't seem too hard to me. Provided you are not swapping the

Re: [Haskell-cafe] playing around with network.curl

2010-10-20 Thread Paulo Tanimoto
On Wed, Oct 20, 2010 at 8:31 PM, Michael Litchard mich...@schmong.org wrote: I'm afraid I'll need a more complete example. When I try to modify the code above (after correcting the conditional tests), I get the following: * About to connect() to github.com port 443 (#0) *   Trying

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-20 Thread Jeremy Shaw
On Oct 20, 2010, at 7:28 PM, Anton van Straaten wrote: Andrew Coppin wrote: I'd like to have a go at writing CGI in Haskell. ... Does anybody know of a solution that works on Windows? I've previously run Happstack on Windows. That was a couple of years ago, though, so I don't know

[Haskell-cafe] data.time.zoneinfo

2010-10-20 Thread Anatoly Yakovenko
I am trying to figure out how to use this library, seems like this should work Prelude Data.Time.ZoneInfo ctx - newContext Nothing Prelude Data.Time.ZoneInfo name - zoneInfoName (utcOlsonZone ctx) True Prelude Data.Time.ZoneInfo newOlsonZone ctx name *** Exception:

[Haskell-cafe] Re: data.time.zoneinfo

2010-10-20 Thread Anatoly Yakovenko
passing a full path seems to work, despite the fact that the documentation says newContext :: Maybe String - IO ContextSource Create a Context object. A path to the zone-info database may be specified. Otherwise, the TZDIR environment variable, or a reasonable default, will be used. An IOError