Re: [Haskell-cafe] Missing comment highlighting in vim syntax script

2008-12-15 Thread Arthur van Leeuwen
-contains. Good fix. Have also modified my copy and forwarded the patch to the vim maintainer. With kind regards, Arthur van Leeuwen. -- Arthur van Leeuwen arthu...@cs.uu.nl ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Data.Map add only if not exist and return true if added

2008-12-09 Thread Arthur van Leeuwen
On 9 dec 2008, at 09:11, John Ky wrote: Hi, I'm looking for a function for Data.Map that will insert a new key and value into the map if the key doesn't already exist in the map. When the key already exists, I don't want the value updated in the map. Additionally, I want to know

Re: [Haskell-cafe] Human-friendly compiler errors for GHC

2008-07-14 Thread Arthur van Leeuwen
and diffent types of searching. With kind regards, Arthur van Leeuwen. -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt /\/__ | you can dare to be yourself | Dance like there's nobody

Re: [Haskell-cafe] lhs syntax highlighting in vim

2008-07-01 Thread Arthur van Leeuwen
for % is *dead* wrong, I fully agree. I've modified the search code and submitted a patch to the Vim maintainers. With kind regards, Arthur van Leeuwen. -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never

Re: [Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-29 Thread Arthur van Leeuwen
On 29-nov-2007, at 14:44, Simon Marlow wrote: Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote: here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going

[Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Arthur van Leeuwen
LS, here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going through read . show or a similar detour through strings. The problem comes up when trying to easily nicely display the access,

Re: [Haskell-cafe] Building Haskell stuff on Windows

2007-11-08 Thread Arthur van Leeuwen
On 7-nov-2007, at 18:38, Duncan Coutts wrote: On Wed, 2007-11-07 at 17:34 +0100, Arthur van Leeuwen wrote: Hello all, maybe I'm just not used enough to Windows, but let me explain my woes of today. It seems to me to be *much* too hard to get a full install of GHC + GTK2Hs going on Windows

[Haskell-cafe] Building Haskell stuff on Windows

2007-11-07 Thread Arthur van Leeuwen
Hello all, maybe I'm just not used enough to Windows, but let me explain my woes of today. It seems to me to be *much* too hard to get a full install of GHC + GTK2Hs going on Windows, going from the idea that I want the currently released stable versions of everything. So, this is the way

Re: [Haskell-cafe] Building Haskell stuff on Windows

2007-11-07 Thread Arthur van Leeuwen
On 7-nov-2007, at 17:43, Neil Mitchell wrote: Hi Arthur, The correct steps to take are: 1) install GHC from the windows installer - trivial 2) install Gtk2hs from the windows installer Unfortunately Gtk2hs hasn't been updated to work with GHC 6.8.1, so step 2 will fail. The person who is

Re: [Haskell-cafe] Re: Building production stable software in Haskell

2007-09-18 Thread Arthur van Leeuwen
On 18-sep-2007, at 14:10, Simon Marlow wrote: Adrian Hey wrote: Neil Mitchell wrote: Hi They are less stable and have less quality control. Surely you jest? I see no evidence of this, rather the contrary in fact. No, dead serious. The libraries have a library submission process. It

Re: [Haskell-cafe] RLE in Haskell: why does the type variable get instantiated?

2007-07-31 Thread Arthur van Leeuwen
On 31-jul-2007, at 11:38, Chris Eidhof wrote: Hey Haskell-Cafe, I was trying out the code in Dons's article [1], and I noticed a weird thing when doing it in GHCi. When binding the function composition to a variable, the type suddenly changes. I'm not completely sure why this happens.

Re: [Haskell-cafe] RE: haskell for web

2007-07-18 Thread Arthur van Leeuwen
On 18-jul-2007, at 14:09, Marc Weber wrote: On Tue, Jul 17, 2007 at 03:27:20PM -0700, brad clawsie wrote: On Wed, Jul 18, 2007 at 12:17:12AM +0200, Hugh Perkins wrote: On 7/17/07, Martin Coxall [EMAIL PROTECTED] wrote: I wonder why 'we' aren't pushing things like this big time. When Ruby

Re: [Haskell-cafe] Nix for Hackage/Cabal

2007-07-06 Thread Arthur van Leeuwen
reason or another. With regards, Arthur van Leeuwen. (Who has forwarded the initial mail to Eelco Dolstra, designer of Nix, to see if he wants to chime in) -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone with whom | Love

Re: [Haskell-cafe] OK, so this VIM thing -- how do I make it actually work?

2007-06-08 Thread Arthur van Leeuwen
. This should be fixed. I'll look into it. The reason I've never run into it is simple: I tend not to use underscores in my Haskell code. :) With regards, Arthur van Leeuwen. -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone

Re: [Haskell-cafe] Profiling, GUIs and libraries

2007-05-21 Thread Arthur van Leeuwen
. The external libraries that wx relies on are either truly external, as in called through the FFI, or GHC standard libs that normally already have a profiling version available. With regards, Arthur van Leeuwen. -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money

Re: [Haskell-cafe] global variables

2007-05-21 Thread Arthur van Leeuwen
it. There is the additional advantage that someone coming along later can still make sense of the debate. As I am sure Adrian would tell you were he awake: http://www.haskell.org/haskellwiki/Top_level_mutable_state With regards, Arthur van Leeuwen -- /\/ | [EMAIL PROTECTED] | Work like you don't

Re: [Haskell-cafe] Editor

2007-05-21 Thread Arthur van Leeuwen
the semicolon in the following: map :: ( a - b ) - [a] - [b]; map f (a:as) = f a : (map f as) I'd like to see what GEdit does to that. :) Doei, Arthur van Leeuwen. -- /\/ | [EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone with whom | Love

Re: [Haskell-cafe] Re: Why the Prelude must die

2007-03-27 Thread Arthur van Leeuwen
On 27-mrt-2007, at 20:17, Nicolas Frisby wrote: Gut feeling: the quick'n dirty script case occurs far less than the whole module case. Thus I think the benefit of automatically importing the Prelude if the module declaration is omitted should not happen: the Principle of Least Surprise

Re: Re[2]: [Haskell-cafe] What is the best way to understand large programs?

2007-01-31 Thread Arthur van Leeuwen
On 30-jan-2007, at 23:52, Bulat Ziganshin wrote: Hello Neil, Monday, January 29, 2007, 2:26:03 AM, you wrote: Having a Hoogle database for a large program is also handy for figuring out where things are and what they do - especially when the program has introduced new custom data types.

Re: [Haskell-cafe] mapTuple

2007-01-11 Thread Arthur van Leeuwen
On 11-jan-2007, at 16:30, Marco Túlio Gontijo e Silva wrote: Em Qui, 2007-01-11 às 16:14 +0100, minh thu escreveu: you might want invistigate heterogeneous lists : in your case, it's heterogeneous typle. But aren't tuples always heterogeneous? Yes, and precisely therein lies the problem.

[Haskell-cafe] Re: [Haskell] Haskell Weekly News: December 20, 2006

2006-12-20 Thread Arthur van Leeuwen
-- - Announcements Haskell Vim plugin. Arthur van Leeuwen [15]announced a new [16]vim plugin for Haskell providing some preliminary folding support, easy insertion of type signatures into programs, and support for handling .hi files. 15. http://article.gmane.org

[Haskell-cafe] Haskell ftplugin for vim

2006-12-18 Thread Arthur van Leeuwen
Hiya folks, I got slightly annoyed at having to tab beyond .hi files when editing haskell code with vim, so I decided to wrap some stuff together in a haskell file type plugin. It has some preliminary (read: very stupid) folding support, and allows you to call out to ghci easily to get type

Re: [Haskell-cafe] How to use a wiki to annotate GHC Docs? was Re: [Haskell] Re: Making Haskell more open

2005-11-16 Thread Arthur van Leeuwen
On 16-nov-2005, at 13:14, Wolfgang Jeltsch wrote: Am Mittwoch, 16. November 2005 12:33 schrieb Scott Weeks: The public comment/wiki spam problem is easily solved. Use JavaScript to generate a value and put it in a hidden form field. Check for that value server side, if it's there then allow

Re: [Haskell-cafe] Dread __DISCARD__

2005-09-19 Thread Arthur van Leeuwen
On 17-sep-2005, at 18:14, Wolfgang Thaller wrote: I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and gcc 4.0.0. Other wxHaskell programs (the samples and my own experiments) compile without tripping over this. GHC 6.4 is incompatible with gcc 4.0.0 when -O or -via-C is

Re: [Haskell-cafe] file line operation perhaps need loop

2005-07-20 Thread Arthur van Leeuwen
On Wed, Jul 20, 2005 at 02:27:36PM +0800, Sun Yi Ming wrote: Hello, I have two txt file,and i want to mix the two files line by line, e.g. $ cat url1.txt url1_1.line url1_2.line $ cat url2.txt url2_1.line url2_2.line and i want this file as result: $ cat aha.txt

Re: [Haskell-cafe] Usage of | in classes

2005-06-07 Thread Arthur van Leeuwen
On Tue, Jun 07, 2005 at 03:54:06PM +0200, Frank-Andre Riess wrote: Hi, Gracjan's question led me to another question: class Monad m = Ref m r | m - r where newRef :: a - m (r a) readRef :: r a - m a writeRef :: r a - a - m () What's the meaning of the bar and the

Re: [Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-22 Thread Arthur van Leeuwen
On Wed, Feb 23, 2005 at 12:27:19AM +, Terrence Brannon wrote: Hi, I am getting into Haskell so I decided to convert a Perl module of mine: http://cpan.uwinnipeg.ca/htdocs/Crypt-Discordian/Crypt/Discordian.html into Haskell. I was pleased at the cleanliness and conciseness of

Re: [Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-22 Thread Arthur van Leeuwen
On Wed, Feb 23, 2005 at 08:46:23AM +0100, Arthur van Leeuwen wrote: On Wed, Feb 23, 2005 at 12:27:19AM +, Terrence Brannon wrote: [snip, encryptia discordia] How about module CryptDiscordian where import List vowels = aeiouAEIOU isVowel = (flip elem) vowel_list

Re: [Haskell-cafe] Re: library documentation

2005-01-27 Thread Arthur van Leeuwen
On Thu, Jan 27, 2005 at 12:41:27PM -, Simon Marlow wrote: On 27 January 2005 10:46, Peter Simons wrote: Isaac Jones writes: http://www.haskell.org/hawiki/LibraryDocsNeedingHelp This is a great idea. I have been thinking you know what would make contribution to the

Re: [Haskell-cafe] Re: Non-technical Haskell question

2004-12-09 Thread Arthur van Leeuwen
On Thu, Dec 09, 2004 at 02:34:09AM +0100, Sebastian Sylvan wrote: Anyway, I'm currently working on an article for a Swedish print magazine on Haskell (similar to the one linked above, but less argumentative) that's due out at the end of January 2005. Hopefully that will contribute to spark the

[Haskell-cafe] ANNOUNCE: Haskell Communities Activities Report (6th ed., May 2004)

2004-05-25 Thread Arthur van Leeuwen
increase our coverage of all that is going on in the community. Enjoy, communicate, and program! Arthur van Leeuwen -- /\/ |[EMAIL PROTECTED] | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt /\/__ | you can dare

[Haskell-cafe] REMINDER - Contributions to HCA Report (May 2004 edition)

2004-05-03 Thread Arthur van Leeuwen
Dear Haskellers, we would like to remind you of the opportunity to contribute to the May 2004 edition of the Haskell Communities Activities Report. Why not take the few minutes necessary to type up a new or updated entry and send it in? We would love to see people write on the following

[Haskell-cafe] Call for Contributions - HCA Report (May 2004 edition)

2004-04-14 Thread Arthur van Leeuwen
Dear Haskellers, two changes of season and one of editor later, we strongly suspect the Haskell community has also moved along admirably. Thus comes the need to refresh our list of all things Haskell, and give *you* the opportunity to tell all the world about your passion. We invite your