Re: [Haskell-cafe] Re: HXT Namespaces and XPath

2010-04-07 Thread Uwe Schmidt
Hi Mads, Replying to myself: I think another example will clarify my point. The code: simpleXmlOne, simpleXmlTwo :: String simpleXmlOne = a:Foo xmlns:a=\http://foo.org\/ simpleXmlTwo = b:Foo xmlns:b=\http://foo.org\/ nsEnv :: [(String, String)] nsEnv = [ (notFoo,

Re: [Haskell-cafe] Re: HXT Namespaces and XPath

2010-04-07 Thread Ivan Miljenovic
On 7 April 2010 16:41, Uwe Schmidt s...@fh-wedel.de wrote: But currently it's assumed, that getXPathTreesWithNsEnv is used only in an innocent way. I like your phrasing here... I might steal it for graphviz rather than just saying it's assumed that you don't do such-and-such :p -- Ivan Lazar

Re: [Haskell-cafe] [haskell.org Google Summer of Code] Student Applications Due Friday!

2010-04-07 Thread Johan Tibell
On Wed, Apr 7, 2010 at 12:46 AM, Edward Kmett ekm...@gmail.com wrote: This is a friendly reminder that student applications for the summer of code are due to Google by Friday, April 9th. http://socghop.appspot.com/document/show/gsoc_program/google/gsoc2010/timeline That is just 3 days from

Re: [Haskell-cafe] Established names for a couple of list functionals?

2010-04-07 Thread Nicolas Pouillard
On Tue, 6 Apr 2010 21:56:37 +0100, Stephen Tetley stephen.tet...@gmail.com wrote: Hello all Having traversals with special behaviour for the first or last element is useful for my current work: -- first element special -- anacrusisMap :: (a - b) - (a - b) - [a] - [b] anacrusisMap _ _

Re: [Haskell-cafe] Announce: hothasktags

2010-04-07 Thread Evan Laforge
On Thu, Apr 1, 2010 at 1:46 PM, Luke Palmer lrpal...@gmail.com wrote: Hi, I'd like to draw attention to a little script I wrote.  I tend to use qualified imports and short names like new and filter.  This makes hasktags pretty much useless, since it basically just guesses which one to go to.

Re: [Haskell-cafe] Announce: hothasktags

2010-04-07 Thread Evan Laforge
Ohh, and the other issue I had was that setting iskeyword causes 'w' to skip over '.'s. This causes trouble for me because I'm used to using 'w' to skip between components of the symbol and 'W' to skip it entirely. Is there a workaround you use, maybe a better way to navigate?

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Iavor Diatchki
Hi everyone, thanks for your efforts to improve the site! To be honest, I don't really like the current design, so here are some suggestions that might help: * I find the color scheme a bit bleak; I'd prefer something more colorful. * Some graphics might improve the overall style. * We need to

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Thomas Davie
On 7 Apr 2010, at 02:53, Ben Millwood wrote: On Wed, Apr 7, 2010 at 2:22 AM, Thomas Schilling nomin...@googlemail.com wrote: I have set a maximum width on purpose so that it doesn't degrade too badly on big screens. I've never really trusted this argument - it's not required that the

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Miguel Mitrofanov
Doesn't seem right. IMHO, the necessity of making windows NOT fullscreen is an indication of bad design. Thomas Davie wrote: On 7 Apr 2010, at 02:53, Ben Millwood wrote: On Wed, Apr 7, 2010 at 2:22 AM, Thomas Schilling nomin...@googlemail.com wrote: I have set a maximum width on purpose so

[Haskell-cafe] Re: GSoC: Hackage 2.0

2010-04-07 Thread Matthew Gruen
On Wed, Apr 7, 2010 at 12:40 AM, Matthew Gruen wikigraceno...@gmail.com wrote: Hi Haskellers, snip Oh, heh, I apologize if that was more of a wall of text than I had realized. The above wasn't a project proposal itself, more the result of some brainstorming and some research. If you have the

[Haskell-cafe] Network: buffering troubles

2010-04-07 Thread Yves Parès
Hello, I have isolated a problem when using (lazy) ByteStrings through the network (GHC 6.12.1, Ubuntu 9.10 32bits): Here is my client: http://old.nabble.com/file/p28162932/Client.hs Client.hs And my server: http://old.nabble.com/file/p28162932/Server.hs Server.hs The server holds until

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Neil Brown
Thomas Schilling wrote: Here's a matching Wiki style: http://i.imgur.com/XkuzH.png I like your designs (I liked the blue and orange version, but all the colour schemes seem fine). For the wiki design, it would be good to re-think and cull those links at the top of the page. For

Re: [Haskell-cafe] Re: HXT Namespaces and XPath

2010-04-07 Thread Mads Lindstrøm
Hi Uwe Hi Mads, Replying to myself: I think another example will clarify my point. The code: simpleXmlOne, simpleXmlTwo :: String simpleXmlOne = a:Foo xmlns:a=\http://foo.org\/ simpleXmlTwo = b:Foo xmlns:b=\http://foo.org\/ nsEnv :: [(String, String)] nsEnv = [

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Magnus Therning
On Wed, Apr 7, 2010 at 11:12, Neil Brown nc...@kent.ac.uk wrote: For the wiki design, it would be good to re-think and cull those links at the top of the page.  For example, I don't think that random page needs to be in the top bar.  With several other links it's not clear to me what they do.  

[Haskell-cafe] Re: Announce: hothasktags

2010-04-07 Thread Peter Hercek
On 04/07/2010 09:23 AM, Evan Laforge wrote: On Thu, Apr 1, 2010 at 1:46 PM, Luke Palmerlrpal...@gmail.com wrote: VIm only for now, since I don't know if emacs tags format supports scoped tags. I am aware that it is not perfect -- patches and bug reports welcome. This program

[Haskell-cafe] Crypto: PC1 - Cipher?

2010-04-07 Thread Günther Schmidt
Hello, does anyone know what the PC1-cipher is and if there is a Haskell implementation? Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Break Function Using Lazy Pairs

2010-04-07 Thread Leon Smith
That example doesn't particularly tie the knot, unless you count the fact that break is itself a recursive function. Usually tie the knot refers to some kind of circular programming, i.e. a self-referential data structure, or explicit use of Data.Function.fix to produce a recursive function

[Haskell-cafe] Re: GSoC: Hackage 2.0

2010-04-07 Thread Maciej Piechotka
On Wed, 2010-04-07 at 00:40 -0400, Matthew Gruen wrote: Hi Haskellers, I'm Matt Gruen (Gracenotes in #haskell), and the Hackage 2.0 SoC project at http://hackage.haskell.org/trac/summer-of-code/ticket/1587 really piqued my interest. It seems doable, in a summer, to make the new

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Daniel Fischer
Am Mittwoch 07 April 2010 04:09:17 schrieb Gregory Crosswhite: While I think that (d) is a valid concern, it is also important not to let the perfect be the enemy of the good.  If we agree that the proposed web site layout is sufficiently better than the current one and is good enough

Re: [Haskell-cafe] hsql repository

2010-04-07 Thread Marc Weber
Hi Daniil Elovkov, AFAIK Nick patched HSQL the last time. However he hasn't had time to submit its changes to the repository. So currently the Hackage version is more up to date than the repository. HSQL is hosted on the Haskell community server: http://code.haskell.org/HSQL/ Best way to

[Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Simon Marlow
On 25/03/2010 23:16, Bas van Dijk wrote: On Thu, Mar 25, 2010 at 11:23 PM, Simon Marlowmarlo...@gmail.com wrote: So I'm all for deprecating 'block' in favor of 'mask'. However what do we call 'unblock'? 'unmask' maybe? However when we have: mask $ mask $ unmask x and these operations have

RE: [Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Sittampalam, Ganesh
Simon Marlow wrote: I came to the conclusion that counting nesting layers doesn't solve the problem: the wormhole still exists in the form of nested unmasks. That is, a library function could always escape out of a masked context by writing unmask $ unmask $ unmask $ ... enough

Re: [Haskell-cafe] Network: buffering troubles

2010-04-07 Thread Yves Parès
Apparently, the trouble seems to come from binary deserialization. When I read my handle with: inp - L.hGet hdl 24 and no longer with: inp - L.hGetContents hdl I get a lazy bytestring which is no longer infinite, and then deserialization occurs right. It proves that at the time of

Re: [Haskell-cafe] Established names for a couple of list functionals?

2010-04-07 Thread Henning Thielemann
Stephen Tetley schrieb: Hello all Having traversals with special behaviour for the first or last element is useful for my current work: -- first element special -- anacrusisMap :: (a - b) - (a - b) - [a] - [b] anacrusisMap _ _ [] = [] anacrusisMap f g (a:as) = f a : map g as -- last

Re: [Haskell-cafe] what are the safety conditions for unsafeIOToST

2010-04-07 Thread Henning Thielemann
Gregory Crosswhite schrieb: I would venture that the condition under which unsafeIOtoST would be safe is if all of the computations you are performing in the IO monad are only changing state that is local to the computation within the ST monad in which you are running. (For example, if there

Re: [Haskell-cafe] Network: buffering troubles

2010-04-07 Thread Yves Parès
News! (Sorry for the spam, but this problem turns to be a headache) The problem actually comes from ByteStrings (either lazy or strict). I reduced my server code to this: import Network import System.IO import qualified Data.ByteString(.Lazy) as L main = do (hdl,_,_) - listenOn (PortNumber

Re: [Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Simon Marlow
On 07/04/2010 16:20, Sittampalam, Ganesh wrote: Simon Marlow wrote: I came to the conclusion that counting nesting layers doesn't solve the problem: the wormhole still exists in the form of nested unmasks. That is, a library function could always escape out of a masked context by writing

Re: [Haskell-cafe] Established names for a couple of list functionals?

2010-04-07 Thread Stephen Tetley
Hi Henning and Nicolas Thanks, but... I'm not arguing that the functions are generally useful so inter-defined-ness is beside the point. I've a couple of instances, in code that is sadly too complicated and I hope to simplify later, where the describing/naming the traversal currently adds clarity

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Thomas Schilling
Yup, I have to agree. The Ruby web site certainly is the best web site for a programming language that I've come across, but it's certainly not amazing. I like the python documentation design, but their home page is a bit dull. Anyway, here's another variation, this time with more colour:

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Daniel Fischer
Am Mittwoch 07 April 2010 18:53:28 schrieb Thomas Schilling: Yup, I have to agree. The Ruby web site certainly is the best web site for a programming language that I've come across, but it's certainly not amazing. I like the python documentation design, but their home page is a bit dull.

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Gregory Crosswhite
Ooo, I really like this revision; it is a major improvement in your design! I particularly like the picture you chose for the top, and the new way that you have laid out all of the boxes and made the bottom right box a different shade so that it is easier to distinguish it as a different

[Haskell-cafe] Re: Metaprogramming in Haskell vs. Ocaml

2010-04-07 Thread Heinrich Apfelmus
Nicolas Pouillard wrote: Heinrich Apfelmus wrote: I'm curious, can metaocaml create new data type definitions, value declarations or type class instances? No metaocaml cannot do this. It is restricted to the expression level, and not the declaration level. Moreover you cannot pattern match

[Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Simon Michael
On 4/7/10 9:53 AM, Thomas Schilling wrote: Yup, I have to agree. The Ruby web site certainly is the best web site for a programming language that I've come across, but it's certainly not amazing. I like the python documentation design, but their home page is a bit dull. Anyway, here's another

[Haskell-cafe] lhaskell.vim: syntax highlighting fix for pragmas and comments in TeX mode

2010-04-07 Thread Tomas Janousek
Hello cafe :-), you're the maintainer of lhaskell.vim and I'm sending you a patch that fixes the highlighting of curly brackets and anything between them. (Who's supposed to send it to vim maintainer? Me, or cafe?) Regards, -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/ ---

Re: [Haskell-cafe] Simple binary-protocol through network test

2010-04-07 Thread Yves Parès
I'm wondering, would it be a problem of chunk size when using L.hGetContents? Since the data to read is shorter than the default chunk size (32k), would it cause problems? Yves Parès wrote: Okay, so I turned off every buffering using hSetBuffering hdl NoBuffering on both Client and Server,

[Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Isaac Dupree
On 04/07/10 11:12, Simon Marlow wrote: It's possible to mis-use the API, e.g. getUnmask = mask return ...incidentally, unmask a = mask (\restore - return restore) = (\restore - restore a) mask :: ((IO a - IO a) - IO b) - IO b It needs to be :: ((forall a. IO a - IO a) - IO b) - IO b so

Re: [Haskell-cafe] Simple binary-protocol through network test

2010-04-07 Thread Daniel Fischer
Am Mittwoch 07 April 2010 19:50:43 schrieb Yves Parès: I'm wondering, would it be a problem of chunk size when using L.hGetContents? Since the data to read is shorter than the default chunk size (32k), would it cause problems? That shouldn't cause problems. When less than the default chunk

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Thomas Schilling
http://i.imgur.com/kFqP3.png Didn't know about CSS's rgba to describe transparency. Very useful. On 7 April 2010 18:19, Gregory Crosswhite gcr...@phys.washington.edu wrote: Ooo, I really like this revision;  it is a major improvement in your design!   I particularly like the picture you

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread John Van Enk
Hot. On Wed, Apr 7, 2010 at 2:35 PM, Thomas Schilling nomin...@googlemail.comwrote: http://i.imgur.com/kFqP3.png Didn't know about CSS's rgba to describe transparency. Very useful. On 7 April 2010 18:19, Gregory Crosswhite gcr...@phys.washington.edu wrote: Ooo, I really like this

Re: [Haskell-cafe] Simple binary-protocol through network test

2010-04-07 Thread Yves Parès
Yes, from what I read, I assumed it had this behavior. But, then, I don't see why the server holds... I've posted a mail on Haskell-Cafe called Network: buffering troubles, in which I put a smaller example which reproduces this problem. Daniel Fischer-4 wrote: That shouldn't cause problems.

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-07 Thread Duncan Coutts
On Tue, 2010-04-06 at 18:51 -0400, Thomas Tuegel wrote: Hello again! Based on the invaluable feedback I've received, I've made some revisions to the proposal I made a few days ago (at the end of this post, after my signature). I apologize for the length of my post, but I'd like once again

Re: [Haskell-cafe] libraries [was GUI haters]

2010-04-07 Thread Duncan Coutts
On Fri, 2010-04-02 at 09:39 -0700, gladst...@gladstein.com wrote: As a working engineer, one of my greatest frustrations is my inability to use Haskell in the workplace. The unfortunate fact is that my media industry clients use mostly Windows, some Macs, and no linux except for servers. The

Re: [Haskell-cafe] Simple binary-protocol through network test

2010-04-07 Thread Daniel Fischer
Am Mittwoch 07 April 2010 20:43:24 schrieb Yves Parès: Yes, from what I read, I assumed it had this behavior. But, then, I don't see why the server holds... I've posted a mail on Haskell-Cafe called Network: buffering troubles, in which I put a smaller example which reproduces this problem. I

[Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-07 Thread Simon Michael
On 4/7/10 12:33 PM, Duncan Coutts wrote: The importance of this is that it lets us develop improved testsuite interfaces in future. At the moment there are two test interfaces we want to support. One is the simple unix style exit code + stdout interface. This is good because it is a lowest

[Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Johannes Waldmann
Ivan Miljenovic ivan.miljenovic at gmail.com writes: I hate websites/blogs/etc. that only take up a fraction of the screen width +1 Although this battle seems lost. Web 2.0 is actually a synonym for useless whitespace right and left. J.W. ___

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-07 Thread Thomas Tuegel
On Wed, Apr 7, 2010 at 3:33 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: The importance of this is that it lets us develop improved testsuite interfaces in future. At the moment there are two test interfaces we want to support. One is the simple unix style exit code + stdout

Re: [Haskell-cafe] Simple binary-protocol through network test

2010-04-07 Thread Daniel Fischer
Am Mittwoch 07 April 2010 21:53:20 schrieb Daniel Fischer: Am Mittwoch 07 April 2010 20:43:24 schrieb Yves Parès: Yes, from what I read, I assumed it had this behavior. But, then, I don't see why the server holds... I've posted a mail on Haskell-Cafe called Network: buffering troubles, in

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Malcolm Wallace
The platform installer is supposed to erase previous platform editions before it installs itself. I would consider that a serious bug. The Haskell Platform is not like a standard user application, where it would be reasonable to have only one version installed at a time. If you are

[Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Bas van Dijk
On Wed, Apr 7, 2010 at 5:12 PM, Simon Marlow marlo...@gmail.com wrote: Comments? I really like this design. One question, are you planning to write the MVar utility functions using 'mask' or using 'nonInterruptibleMask'? As in: withMVar :: MVar a - (a - IO b) - IO b withMVar m f = whichMask?

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Gregory Crosswhite
Nicely done! On Apr 7, 2010, at 11:35 AM, Thomas Schilling wrote: http://i.imgur.com/kFqP3.png Didn't know about CSS's rgba to describe transparency. Very useful. On 7 April 2010 18:19, Gregory Crosswhite gcr...@phys.washington.edu wrote: Ooo, I really like this revision; it is a major

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Gregory Collins
Malcolm Wallace malcolm.wall...@cs.york.ac.uk writes: The platform installer is supposed to erase previous platform editions before it installs itself. I would consider that a serious bug. Lacking a feature I would consider essential /= a bug in my opinion, especially when the

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Ivan Lazar Miljenovic
Thomas Schilling nomin...@googlemail.com writes: http://i.imgur.com/kFqP3.png Didn't know about CSS's rgba to describe transparency. Very useful. It's a vely nice!! (in a Borat voice)  (e) I don't have an iPhone, *Droid, or iPad, so I'd need some help testing on any of those. I have a

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Ivan Lazar Miljenovic
Malcolm Wallace malcolm.wall...@cs.york.ac.uk writes: The Haskell Platform is not like a standard user application, where it would be reasonable to have only one version installed at a time. As far as I know, most Linux distributions only let you install one version of GHC at a time; we do this

Re: [Haskell-cafe] lhaskell.vim: syntax highlighting fix for pragmas and comments in TeX mode

2010-04-07 Thread Ivan Lazar Miljenovic
Tomas Janousek t...@nomi.cz writes: (Who's supposed to send it to vim maintainer? Me, or cafe?) You. It's your patch/fix, and it's a bit difficult to ascertain which part of the amorphous mass that is haskell-cafe is meant to be doing your bidding for you ;-) -- Ivan Lazar Miljenovic

[Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Simon Marlow
On 07/04/10 21:23, Bas van Dijk wrote: On Wed, Apr 7, 2010 at 5:12 PM, Simon Marlowmarlo...@gmail.com wrote: Comments? I really like this design. One question, are you planning to write the MVar utility functions using 'mask' or using 'nonInterruptibleMask'? As in: withMVar :: MVar a -

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Daniel Fischer
Am Mittwoch 07 April 2010 23:43:05 schrieb Ivan Lazar Miljenovic: Malcolm Wallace malcolm.wall...@cs.york.ac.uk writes: The Haskell Platform is not like a standard user application, where it would be reasonable to have only one version installed at a time. As far as I know, most Linux

[Haskell-cafe] ANNOUNCE: JSONb-1.0.0

2010-04-07 Thread Jason Dusek
A new release of JSONb, taking advantage of the latest Attoparsec. http://hackage.haskell.org/package/JSONb-1.0.0 Thanks to Grant Monroe for help with the numerics parser. -- Jason Dusek ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Malcolm Wallace
The platform installer is supposed to erase previous platform editions before it installs itself. I would consider that a serious bug. Lacking a feature I would consider essential /= a bug in my opinion, especially when the desirability of the feature is in question. It is not merely

[Haskell-cafe] ANNOUNCE: Hac phi 2010

2010-04-07 Thread Chris Casinghino
Greetings, I am very pleased to officially announce Hac phi 2010, a Haskell hackathon/get-together to be held May 21-23 at the University of Pennsylvania in Philadelphia. The hackathon will officially kick off at 2:30 Friday afternoon, and go until 5pm on Sunday (with breaks for sleep, of

[Haskell-cafe] Weird behaviour with positional parameters in HDBC-mysql

2010-04-07 Thread Martijn van Steenbergen
Dear café (CC John and Chris), I'm having some trouble with getting positional parameters in HDBC-mysql to work. Most of the time they work fine, but sometimes (and often enough that it's a serious bother) the parameters don't reach the server correctly. Let me first describe my setup: *

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Ivan Lazar Miljenovic
Daniel Fischer daniel.is.fisc...@web.de writes: I currently have 6.10.1, 6.10.3 and 6.12.1 installed (openSuSe 11.1), no problem. On my previous computer (SuSE 8.2), I had every release from 6.2.2 to 6.8.2, no problem either. Using system packages? Ah, but one shouldn't use a package

[Haskell-cafe] Re: lhaskell.vim: syntax highlighting fix for pragmas and comments in TeX mode

2010-04-07 Thread Tomáš Janoušek
Hello, On Thu, Apr 08, 2010 at 07:45:43AM +1000, Ivan Lazar Miljenovic wrote: Tomas Janousek t...@nomi.cz writes: (Who's supposed to send it to vim maintainer? Me, or cafe?) You. It's your patch/fix, and it's a bit difficult to ascertain which part of the amorphous mass that is

Re: [Haskell-cafe] ANNOUNCE: JSONb-1.0.0

2010-04-07 Thread Ivan Lazar Miljenovic
Jason Dusek jason.du...@gmail.com writes: A new release of JSONb, taking advantage of the latest Attoparsec. http://hackage.haskell.org/package/JSONb-1.0.0 Is this meant to be a continuation of the json-b package? -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com

[Haskell-cafe] Suitable structure to represents lots of similar lists

2010-04-07 Thread Dan Piponi
I have a situation where I have a bunch of lists and I'll frequently be making new lists from the old ones by applying map and filter. The map will be applying a function that's effectively the identity on most elements of the list, and filter will be using a function that usually gives True. This

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Daniel Fischer
Am Donnerstag 08 April 2010 00:09:34 schrieb Ivan Lazar Miljenovic: Daniel Fischer daniel.is.fisc...@web.de writes: I currently have 6.10.1, 6.10.3 and 6.12.1 installed (openSuSe 11.1), no problem. On my previous computer (SuSE 8.2), I had every release from 6.2.2 to 6.8.2, no problem

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Gregory Collins
Malcolm Wallace malcolm.wall...@cs.york.ac.uk writes: The platform installer is supposed to erase previous platform editions before it installs itself. I would consider that a serious bug. Lacking a feature I would consider essential /= a bug in my opinion, especially when the

[Haskell-cafe] Re: Weird behaviour with positional parameters in HDBC-mysql

2010-04-07 Thread John Goerzen
Martijn van Steenbergen wrote: Is this a problem in HDBC or in HDBC-mysql? Smells to me like a bug in HDBC-mysql. However, it is possible that the bug lies in the C MySQL library itself. To help isolate, it would be good to try your program: * with HDBC-postgresql * with HDBC-sqlite3

Re: [Haskell-cafe] Announce: hothasktags

2010-04-07 Thread Luke Palmer
On Wed, Apr 7, 2010 at 1:23 AM, Evan Laforge qdun...@gmail.com wrote: On Thu, Apr 1, 2010 at 1:46 PM, Luke Palmer lrpal...@gmail.com wrote: Hi, I'd like to draw attention to a little script I wrote.  I tend to use qualified imports and short names like new and filter.  This makes hasktags

Re: [Haskell-cafe] ANNOUNCE: JSONb-1.0.0

2010-04-07 Thread Jason Dusek
2010/04/07 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: Jason Dusek jason.du...@gmail.com writes:   A new release of JSONb, taking advantage of the latest Attoparsec.     http://hackage.haskell.org/package/JSONb-1.0.0 Is this meant to be a continuation of the json-b package? Yes. I

Re: [Haskell-cafe] Suitable structure to represents lots of similar lists

2010-04-07 Thread Edward Kmett
I've been meaning to generalize Data.Rope in my rope library to use Vector rather than ByteString. Ultimately it looks like a FingerTree of Vector's using length as the monoid. The vectors can be sliced cheaply and the fingertree as a whole supports cheap splicing. -Edward Kmett On Wed, Apr 7,

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Ivan Miljenovic
On 8 April 2010 08:25, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Donnerstag 08 April 2010 00:09:34 schrieb Ivan Lazar Miljenovic: etc. ... Such as? To avoid stating these all over again: http://ivanmiljenovic.wordpress.com/2010/03/15/repeat-after-me-cabal-is-not-a-package-manager/

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Daniel Fischer
Am Donnerstag 08 April 2010 01:47:19 schrieb Ivan Miljenovic: On 8 April 2010 08:25, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Donnerstag 08 April 2010 00:09:34 schrieb Ivan Lazar Miljenovic: etc. ... Such as? To avoid stating these all over again:

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Ivan Miljenovic
On 8 April 2010 10:41, Daniel Fischer daniel.is.fisc...@web.de wrote: However, I wanted to know what the etc stood for, with taking care of dependencies and uninstalling already mentioned. Upgrading, yes, but what else? Patching, bug fixing, stuff like that. -- Ivan Lazar Miljenovic

[Haskell-cafe] GHC LLVM ARM Cross Compilation

2010-04-07 Thread Nathaniel Neitzke
I saw the Google Summer of Code project for using LLVM to cross compile for other architectures such as ARM. Professionally I write embedded Linux code that targets ARM processors such as the TI DaVinci DM355 and am very intrigued by the potential use of Haskell for future projects. If I was

Re: [Haskell-cafe] Re: True Random Numbers

2010-04-07 Thread Gökhan San
James Cook mo...@deepbondi.net writes: As the maintainer of random-fu, I'd be interested to know whether you find it useful after further inspection. Is there a way to get multiple random numbers without having to replicateM? While comparing the random-fu interface with Control.Monad.Random

Re: [Haskell-cafe] what are the safety conditions for unsafeIOToST

2010-04-07 Thread Roman Leshchinskiy
On 08/04/2010, at 01:38, Henning Thielemann wrote: On Apr 6, 2010, at 5:30 PM, Roman Leshchinskiy wrote: In fact, the only safe-ish use for it I have found is to use Storable-related functions in ST, hoping that the instances don't actually use any real IO functionality. Arguably, this

Re: [Haskell-cafe] ANNOUNCE: Hac phi 2010

2010-04-07 Thread Jason Dagit
2010/4/7 Chris Casinghino chris.casingh...@gmail.com Greetings, I am very pleased to officially announce Hac phi 2010, a Haskell hackathon/get-together to be held May 21-23 at the University of Pennsylvania in Philadelphia. The hackathon will officially kick off at 2:30 Friday afternoon,

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 2:57 PM, Malcolm Wallace malcolm.wall...@cs.york.ac.uk wrote: The platform installer is supposed to erase previous platform editions before it installs itself. I would consider that a serious bug. Lacking a feature I would consider essential /= a bug in my

[Haskell-cafe] HDBC-ODBC and SqlValues

2010-04-07 Thread Tim Docker
I'm experimenting with haskell and relational databases. I have successfully coupled unixodbc + freetds + hdbc-odbc, and can make trivial queries. However, I'm surprised at the result types: $ ghci GHCi, version 6.10.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking

Re: [Haskell-cafe] GHC LLVM ARM Cross Compilation

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 6:06 PM, Nathaniel Neitzke night...@gmail.comwrote: I saw the Google Summer of Code project for using LLVM to cross compile for other architectures such as ARM. Professionally I write embedded Linux code that targets ARM processors such as the TI DaVinci DM355 and am

Re: [Haskell-cafe] HDBC-ODBC and SqlValues

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 9:08 PM, Tim Docker t...@dockerz.net wrote: I'm experimenting with haskell and relational databases. I have successfully coupled unixodbc + freetds + hdbc-odbc, and can make trivial queries. However, I'm surprised at the result types: $ ghci GHCi, version 6.10.3:

Re: [Haskell-cafe] HDBC-ODBC and SqlValues

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 9:45 PM, Jason Dagit da...@codersbase.com wrote: darcs get --lazy http://darcs.haskell.org/takusen Oops. That's a dead link, try this instead: darcs get --lazy http://code.haskell.org/takusen/ http://code.haskell.org/takusen/

[Haskell-cafe] haskell gsoc proposal for richer numerical type classes and supporting algorithms

2010-04-07 Thread Carter Schonwald
Hello All, I would like to know if there is enough community interest in following gsoc project proposal of mine for me to write up a proper haskell gsoc app for it . (and accordingly if there is a person who'd be up for having the mentoring role) Project: Alternate numerical prelude with a

[Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-04-07 Thread Dean Herington
Is there any reason not to use the more standard uninterruptible instead of noninterruptible? Dean ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe