[Haskell-cafe] ANNOUNCE: lushtags, haskell ctags for Vim Tagbar plugin

2011-09-20 Thread Bit Connor
I would like to announce the first release of my program lushtags. Available on hackage: cabal install lushtags At github: https://github.com/bitc/lushtags Screenshot: https://github.com/bitc/lushtags/raw/master/doc/screenshot-tagbar-2011-09-19.png What is lushtags? From the README: lushtags

Re: [Haskell-cafe] Printing of asynchronous exceptions to stderr

2010-11-15 Thread Bit Connor
.* modules and probably some other things.  Maybe we should put this list in the documentation. A list would be very helpful. I am specifically interested in knowing about: - The try family of MVar functions - the forkIO function itself Thanks, Bit Connor

Re: [Haskell-cafe] Bug in HTTP (bad internal error handling)

2010-10-23 Thread Bit Connor
On Sat, Oct 23, 2010 at 8:49 PM, Ganesh Sittampalam gan...@earth.li wrote: Hi Bit, On Thu, 21 Oct 2010, Bit Connor wrote: On Sat, Oct 16, 2010 at 10:29 AM, Claus Reinke claus.rei...@talk21.com wrote: After it catches this error, the function returns (line 376): return (fail (show e

Re: [Haskell-cafe] Redy to release gtk2hs-0.12.0!

2010-10-23 Thread Bit Connor
On Sat, Oct 23, 2010 at 12:40 PM, Andy Stewart lazycat.mana...@gmail.com wrote: * Support newest GIO library (Cross platform file APIs)  You can use GIO develop cross-platform file-manager, like this :  http://www.flickr.com/photos/48809...@n02/4793031888/lightbox/ Wow. That looks like a

Re: [Haskell-cafe] Bug in HTTP (bad internal error handling)

2010-10-21 Thread Bit Connor
try making a patch myself, but I would prefer hearing from the HTTP maintainer first, who doesn't seem to be around. Bit Connor ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Bug in HTTP (bad internal error handling)

2010-10-16 Thread Bit Connor
to throw an IOException in a lot of circumstances, so for now I think the fix above is a good immediate solution. Thanks, Bit Connor ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell on a VPS

2009-07-24 Thread Bit Connor
On Thu, Jul 23, 2009 at 6:12 PM, John Van Enkvane...@gmail.com wrote: No, I just want to know if there are any gotchas in the typical VPS setups that for some strange reason wouldn't like Haskell binaries. I couldn't think of any, but I miss details some times. There used to be problems with

Re: [Haskell-cafe] Problem resizing widget contained in window

2009-07-19 Thread Bit Connor
On Tue, Jul 14, 2009 at 5:46 PM, Jeff Heardjefferson.r.he...@gmail.com wrote: Now, if someone resizes the window, the GLArea does not appear to resize along with it.  Did I screw something up? You need to call the opengl glViewport function(I don't remember what the haskell binding is called)

Re: [Haskell-cafe] How to get glyph outline from ttf font.

2009-04-11 Thread Bit Connor
On Sat, Apr 4, 2009 at 6:59 PM, Dmitry V'yal akam...@gmail.com wrote: to get them out of font? As far as I know, freetype library is capable of extracting outlines, but is there any haskell binding for it which supports this functionality?        Here [1] one such lib was mentioned, but it

Re: [Haskell-cafe] FP simulators for real-time systems?

2009-02-03 Thread Bit Connor
On Mon, Feb 2, 2009 at 10:43 AM, Lee Pike leep...@gmail.com wrote: I'm interested to hear if anyone out there has used Haskell (or other functional languages for that matter) to build simulators for real-time systems. This is probably not exactly what you are thinking of, but there is OmegaGB,

Re: [Haskell-cafe] Will GHC finally support epoll in 2009?

2009-01-05 Thread Bit Connor
On Thu, Jan 1, 2009 at 8:32 PM, Bryan O'Sullivan b...@serpentine.com wrote: On Wed, Dec 31, 2008 at 11:42 AM, Levi Greenspan greenspan.l...@googlemail.com wrote: Hence my question - is it likely that GHC will support epoll in 2009? Yes. I'm working on a patch at the moment. Awesome! Please

Re: [Haskell-cafe] SDL program under MinGW

2008-12-07 Thread Bit Connor
Did you follow the instructions described in the WIN32 file? On Sat, Dec 6, 2008 at 2:05 PM, sam lee [EMAIL PROTECTED] wrote: Hi. I am using Windows Vista. I installed the following: - ghc 6.8.3 (using official Windows binary installer) - MinGW (from http://nuwen.net/mingw.html) - SDL

[Haskell-cafe] Trouble installing ghc-6.10.1 on linux

2008-11-10 Thread Bit Connor
I'm trying to install ghc 6.10.1 on a machine with the crux distro. libc version 2.3.6 gcc 4.0.3 linux version 2.6.15.6 First I tried the binary version ghc-6.10.1-i386-unknown-linux.tar.bz2 and I very quickly get this error: $ ./configure checking build system type... i686-pc-linux-gnu

Re: [Haskell-cafe] Password hashing

2008-10-29 Thread Bit Connor
On Tue, Oct 28, 2008 at 5:56 PM, Michał Pałka [EMAIL PROTECTED] wrote: It's a good idea to salt your passwords before hashing, though. See http://en.wikipedia.org/wiki/Salt_(cryptography) What can be used for generating a random salt? Is System.Random secure enough? Thanks

Re: [Haskell-cafe] Re: [Haskell] How to get the binary respentation of the Int/Double.

2008-10-29 Thread Bit Connor
On Wed, Oct 29, 2008 at 7:58 PM, Ryan Ingram [EMAIL PROTECTED] wrote: Actually, this is a good question, at least as relating to floating point values. Is there a primitive to view the machine representation of floats? This isn't the first time this issue has come up on this mailing list. I

[Haskell-cafe] Password hashing

2008-10-28 Thread Bit Connor
Hello, What library can be used to securely hash passwords? From what I understand, the bcrypt algorithm is what the experts recommend. It is described in the paper: http://www.openbsd.org/papers/bcrypt-paper.ps I couldn't find a haskell library for this. There is a BSD licensed C

Re: [Haskell-cafe] Constraints at construction

2008-10-11 Thread Bit Connor
On Thu, Oct 9, 2008 at 3:05 PM, Mitchell, Neil [EMAIL PROTECTED] wrote: Hi Iain, The wiki page has quite a nice article: http://www.haskell.org/haskellwiki/Smart_constructors Smart constructors are nice but if your module doesn't also export the regular constructor then you can't pattern

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-29 Thread Bit Connor
On Mon, Sep 29, 2008 at 4:06 AM, Michael Giagnocavo [EMAIL PROTECTED] wrote: Goal 2 (The open source angle): Developers who use the library should have to contribute their modifications of the library back to the community. I believe that it's wrong to use a license to try to enforce such

Re: [Haskell-cafe] Re: Where is OpenGL loadMatrix ?

2008-09-25 Thread Bit Connor
withMatrix doesn't seem to have anything to do with glLoadMatrix. You are right that you can do glLoadMatrix with loadIdentity and multMatrix. To directly load a matrix, use the function matrix (with a Nothing argument). This will internally call the loadMatrix function that Krzysztof mentioned

Re: [Haskell-cafe] Building SDL-image package on Windows

2008-08-28 Thread Bit Connor
package for other users. I sent an e-mail to the listed maintainer on Hackage yesterday, is that the best way to about doing this? On Wed, Aug 27, 2008 at 4:40 AM, Bit Connor [EMAIL PROTECTED] wrote: Hi, I wrote the instructions in the WIN32 file. This looks like the same problem that I

Re: [Haskell-cafe] Building SDL-image package on Windows

2008-08-27 Thread Bit Connor
Hi, I wrote the instructions in the WIN32 file. This looks like the same problem that I originally had with the SDL package, mangling of main function in C land by the hand of the C SDL.h include file. If you look at the .hsc files from the SDL package, you will see the fix I applied at the top

Re: [Haskell-cafe] OpenGL's VBO with Haskell

2008-08-25 Thread Bit Connor
Hi, I used VBO with haskell and I remember it being pretty straightforward, pretty much the same as in C. This was a while ago and I don't really remember how things work so I can't really comment on your code. But I'll see if I can find my old haskell VBO code. On Mon, Aug 25, 2008 at 8:43 PM,

Re: [Haskell-cafe] poll: how can we help you contribute to darcs?

2008-08-04 Thread Bit Connor
What about the idea of creating a GUI interface to darcs? I love the command line as much as the next guy, but I think darcs could really benefit from a polished GUI. I used tortoise darcs on a small project a while ago and it was pretty nice, but I think there is potential for much better. I

Re: [Haskell-cafe] I/O without monads, using an event loop

2008-05-30 Thread Bit Connor
Yeah, this sounds really similar to functionally reactive programming. I recommend you start by reading this paper: http://haskell.cs.yale.edu/frp/genuinely-functional-guis.pdf On Fri, May 30, 2008 at 11:34 AM, Wolfgang Jeltsch [EMAIL PROTECTED] wrote: Am Freitag, 30. Mai 2008 16:09 schrieb

Re: [Haskell-cafe] Ann: Win32-notify 0.1

2008-05-05 Thread Bit Connor
Factor has a file system notification API that wraps windows, linux and mac ones. It might be worth taking a look at that to see what it does. Mono also has such an API and I've heard very good things about it. It would also be worth looking at. ___

Re: [Haskell-cafe] install trouble with SDL on win32+cygwin

2008-04-13 Thread Bit Connor
SDL works great on Windows, and you don't even need cygwin. Only ghc is required. There are instructions in the WIN32 file. http://darcs.haskell.org/~lemmih/hsSDL/hssdl/WIN32 2008/4/12 Conal Elliott [EMAIL PROTECTED]: Now I have sdl-config, but still not able to build. Does *anyone* have the

Re: [Haskell-cafe] Rendering TTF fonts in Haskell and OpenGL

2008-02-22 Thread Bit Connor
I also have made haskell bindings to FreeType, including support for extracting glyph outlines. I haven't had time to publish it yet. Hopefully I'll get around to it soon. On Mon, Feb 18, 2008 at 5:07 AM, Jeremy Shaw [EMAIL PROTECTED] wrote: At Mon, 18 Feb 2008 01:26:17 +, Luke Palmer

Re: [Haskell-cafe] ANNOUNCE: HStringTemplate -- An Elegant, Functional, Nifty Templating Engine for Haskell

2008-01-16 Thread Bit Connor
On Jan 14, 2008 9:47 AM, Sterling Clover [EMAIL PROTECTED] wrote: HStringTemplate is a port of Terrence Parr's lovely StringTemplate (http://www.stringtemplate.org) engine to Haskell. It is available, cabalized, at: darcs get http://code.haskell.org/HStringTemplate/ Template systems have

Re: [Haskell-cafe] JOB OFFER / Haskell for commercial projects?

2007-12-15 Thread Bit Connor
On Dec 15, 2007 4:40 PM, Duncan Coutts [EMAIL PROTECTED] wrote: On Sat, 2007-12-15 at 14:29 +0100, Wolfgang Jeltsch wrote: [...] I think, there is some issue with the GMP library which is used for implementing the Integer type and which is licensed under the GPL, AFAIK. It's the LGPL

Re: [Haskell-cafe] Point and link

2007-12-08 Thread Bit Connor
On Dec 8, 2007 10:15 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Bit Connor wrote: On Dec 8, 2007 8:19 PM, Andrew Coppin [EMAIL PROTECTED] wrote: http://alts.homelinux.net/shots/195-0.jpg This is the kind of thing I'd like to end up with. Such a GUI would also be cool for visually

Re: [Haskell-cafe] Design of a Physics Interface

2007-11-30 Thread Bit Connor
I think your integrate function looks like a good idea: integrate :: TimeStep - World - World For bodies, I think you should have a BodyID type, and then to add a body to the world you could have a function: newBody :: (Position, Velocity) - World - (BodyID, World) To delete a body:

Re: [Haskell-cafe] Progress indications

2007-11-29 Thread Bit Connor
Lazy evaluation can sometimes be helpful here. I once wrote a raytracer that computed the resulting image using a pure function that returned a list of the RGB colors of the pixels: [(Word8, Word8, Word8)] When plotting the pixels to the screen in the IO monad, the value of each pixel would be

Re: [Haskell-cafe] Why aren't Float and Double Bounded?

2007-11-27 Thread Bit Connor
Actually, IEEE numbers are designed in such a way, that if you interpret their bits as integer number, then 'succ' leads you to the next larger representable number. Thus you only have to cast from Float or Double to Int32 or Int64 respectively, call enumFromTo, then cast back to Float or

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-22 Thread Bit Connor
I am also happy to hear this. When will the new version be released? Thanks, Bit On Nov 21, 2007 7:11 PM, Paul L [EMAIL PROTECTED] wrote: Just to echo back to the question whether Yampa/AFRP is still being developed, the answer is YES. We are working on an updated version at Yale. But

Re: [Haskell-cafe] Tetris

2007-11-22 Thread Bit Connor
On Nov 21, 2007 5:00 PM, Peter Verswyvelen [EMAIL PROTECTED] wrote: Last time I checked the SDL binding did not work properly on Windows when using GHCi. The next version of hsSDL (current darcs) has documentation that explains how to get ghci working. The trick is to make copies of the

Re: [Haskell-cafe] libSDL [Tetris]

2007-11-22 Thread Bit Connor
On Nov 22, 2007 9:39 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Editing the cabal config file is necessary so that the SDL include files and libs can be found. ...because Windows uses DLLs instead of [whatever it is that Unix does]? The reason is that on Unix, there are standard location

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Bit Connor
As far as I'm aware, GLUT isn't available for Windows. (Or rather, I tried it once, and it wasn't happy at all. And after some Google searching, I found it's not around any more.) GLUT should work fine on windows, but another alternative is SDL, which works on Windows, GNU/Linux, and Mac The

Re: [Haskell-cafe] New demo/test program for Yhc Javascript backend

2007-11-18 Thread Bit Connor
This is very cool! I will definitely be playing with this. Safari 3.0.2 for windows gives an error though: Maximum call stack size exceeded. http://darcs.haskell.org/yhc/web/jsdemos/HsWTKDemo.html Line: 87 Sometimes it gives the same error but instead of line 87 with line 314, and other

Re: [Haskell-cafe] Pixel plotter

2007-10-17 Thread Bit Connor
There should be a WIN32 file with instructions for installing on windows. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] formatTime %Q not working

2007-06-21 Thread Bit Connor
Hello, I am using ghc 6.6. I am using the formatTime function from Data.Time.Format. The docs say that the %Q format string gives: decimal point and up to 12 second decimals, without trailing zeros. But I always just get an empty string. Here is what happens when I try using ghci: now -

[Haskell-cafe] killThread on a terminated thread.

2007-06-08 Thread Bit Connor
Hello, Is it safe to use killThread to terminate a thread that has already terminated(it's IO action has run to completion)? Or are ThreadIds reused, potentially causing an unwanted thread to be terminated? I'm using ghc 6.6 Thanks, bit ___