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,
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
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
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 _ _
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.
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?
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
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
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
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
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
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
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 = [
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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.
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
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
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
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/
---
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,
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
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
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
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
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.
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
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
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
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
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.
___
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
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
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
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?
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
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
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
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
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
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 -
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
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
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
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
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:
*
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
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
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
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
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
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
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
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
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
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,
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/
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:
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
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
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
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
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,
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
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
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
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:
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/
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
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
84 matches
Mail list logo