Re: [Haskell-cafe] Lisp like symbols in haskell

2009-12-08 Thread Ariel J. Birnbaum
://clemens.endorphin.org/ILC07-Liskell-draft.pdf Latest news: http://blog.clemens.endorphin.org/2009/01/liskell-standalone.html Have fun, -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] ANNOUNCE: error-message

2009-12-05 Thread Ariel J. Birnbaum
, then try again. Often by fixing one error from the list a sizeable portion of the rest just vanish (I forget the English term for that kind of error). (In before you can use sth like quickfix to go through the first few errors and compile again whenever you feel like it.) -- Ariel J. Birnbaum

Re: [Haskell-cafe] list - sublists

2009-10-20 Thread Ariel J. Birnbaum
for additional insight. References: [1] http://www.haskell.org/hoogle/ Have fun! -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Mapping over multiple values of a list at once?

2009-08-27 Thread Ariel J. Birnbaum
overkill, but good learning material =) Have fun! -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Good name for this operator?

2008-11-15 Thread Ariel J. Birnbaum
either. NB: In general, there's a weird obstacle I notice when writing Haskell: the unshakable feeling that whatever I write, there's already a better name for it and a more elegant implementation lying around. It can get downright paralyzing at times *shudder* Have Fun, -- Ariel J. Birnbaum

Re: [Haskell-cafe] Good name for this operator?

2008-11-15 Thread Ariel J. Birnbaum
On Sat, 2008-11-15 at 16:23 -0700, Luke Palmer wrote: On Sat, Nov 15, 2008 at 3:59 PM, Ariel J. Birnbaum [EMAIL PROTECTED] wrote: When working with Applicative, I often find myself defining and using this operator: (%) :: (Applicative f) = f (a - b) - a - f b f % x = f * pure x Yeah

Re: [Haskell-cafe] Template Haskell

2008-10-21 Thread Ariel J. Birnbaum
for another extension? And what after that?. Note to self: give Liskell a try before the end of the year. -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Monadic Floating Point [was: Linking and unsafePerformIO]

2008-10-17 Thread Ariel J. Birnbaum
area for programing in general, but I think it's also one where Haskell can shine with an elegant, typesafe model. -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Monadic Floating Point [was: Linking and unsafePerformIO]

2008-10-15 Thread Ariel J. Birnbaum
enabled. None of these help in making an expression like (a + b) + c == a + (b + c) :: Bool any more referentially transparent than getChar : getChar : [] :: [Char] would be if it was legal. Anyway, enough rant for tonight. Sorry for the hijack. We now resume our regular transmissions. -- Ariel J

Re: [Haskell-cafe] Re: Ubuntu Haskell

2008-10-14 Thread Ariel J. Birnbaum
not a case for distribution specific binaries but for assisting system wide package management. I personally prefer my hackage packages freshly cooked ... APT supports source packages as well, and one can build and install from them. Cook 'em, baste 'em, roast 'em =D -- Ariel J. Birnbaum

Re: [Haskell-cafe] Re: Ubuntu Haskell

2008-10-13 Thread Ariel J. Birnbaum
exposure to the packages' source would it imply? My employer is rather paranoid about its coders being contaminated by third-party code =P. While I'm asking --- maybe we should target Debian first/also/instead? Cheers -- Ariel J. Birnbaum ___ Haskell

Re: [Haskell-cafe] Re: Ubuntu Haskell

2008-10-12 Thread Ariel J. Birnbaum
packages for Debian Ubuntu. However, we do need some Ubuntu champions who can work incrementally, over a long time, to keep packages up to date on their systems. Pray tell, what kind of feats are expected of such a champion? -- Ariel J. Birnbaum

Re: [Haskell-cafe] The container problem

2008-09-27 Thread Ariel J. Birnbaum
your program (a problem shared by most non-Lisp languages). While TH provides a fairly decent solution in this respect, it's still far from Lisp's flexibility. In this respect, does anyone know how the Liskell project is doing? The site and mailing list seem pretty silent... -- Ariel J

Re: [Haskell-cafe] Random question

2008-09-25 Thread Ariel J. Birnbaum
) % [1..10] :: (MonadRandom m) = m Int That way you separate the generation from the IO. My getRandomR(0,3) % cents. -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Embedding newlines into a string?

2008-04-18 Thread Ariel J. Birnbaum
it should point to. -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Embedding newlines into a string?

2008-04-17 Thread Ariel J. Birnbaum
discussions about style than pitfalls... it seems to me more oriented to people who know Haskell well and want to write better. Maybe a link from here to the above would be a good idea. Thanks for adding this case to the wiki =) -- Ariel J. Birnbaum

Re: [Haskell-cafe] Re: Embedding newlines into a string?

2008-04-16 Thread Ariel J. Birnbaum
(such as [x]) for a pattern that iterates over every element in the list. I can't seem to find a page with a list of common pitfalls and mistakes... is there such a thing? -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Longest increasing subsequence

2008-04-11 Thread Ariel J. Birnbaum
the problem is quite trivial =P Replace concat . map inits . tails with foldr (\x xss - xss ++ map (x:) xss) [[]] for a correct (yet even more inefficient) solution. I'd blame the mistake on the late hour, but it was even later when I noticed... *shame* -- Ariel J. Birnbaum

Re: [Haskell-cafe] Longest increasing subsequence

2008-04-10 Thread Ariel J. Birnbaum
/fold fusion, deforestation and MapReduce. All the cool kids go bananas over it ;) -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Pattern match failure

2008-04-10 Thread Ariel J. Birnbaum
:2:3:[] against x:[] (:) matched - match 1 against x; 2:3:[] against [] Match 1 against x x is a variable, bind it to 1 Match 2:3:[] against [] Match failed! {-# nitty-gritty off #-} Have fun =) Jealous 'cause I never had any homework in Haskell, -- Ariel J. Birnbaum

Re: [Haskell-cafe] Lock-Free Data Structures using STMs in Haskell

2008-04-09 Thread Ariel J. Birnbaum
a - STM a decT can be of type TVar Int - STM () if you leave out the atomically. -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What's the difference?

2008-04-09 Thread Ariel J. Birnbaum
For me, the word implies is too tied in my brain to an arrow symbol to be useful to me in keeping the implications straight. Pun implied? -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Usage of Read Class

2008-03-30 Thread Ariel J. Birnbaum
will of course fail. -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] MonadMemory class

2008-03-27 Thread Ariel J. Birnbaum
of this class satisfy? 2. How would a pure instance of this class look like (obvious unsafePerformIO-based solutions aside)? Is it even possible in pure Haskell? Thanks much! -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] MonadMemory class

2008-03-27 Thread Ariel J. Birnbaum
look at http://haskell.org/haskellwiki/Library/ArrayRef for examples Thanks, Data.Ref.Universal looks just like it! One question though. In:  class (Monad m) = Ref m r | m-r, r-m where Why is the second fundep necessary? -- Ariel J. Birnbaum

Re: [Haskell-cafe] MonadMemory class

2008-03-27 Thread Ariel J. Birnbaum
This has come up a few times and been written by many Haskellers I was quite certain of that, hence my puzzlement at being unable to find it =) What kind of axioms should an instance of this class satisfy? There are quite a few obvious ones, but I'm not sure it's particularly necessary. I'm

Re: [Haskell-cafe] MonadMemory class

2008-03-27 Thread Ariel J. Birnbaum
be done without compiler support? -- Ariel J. Birnbaum ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe