Re: [Haskell-cafe] Tiny documentation request

2007-09-09 Thread Johan Tibell
I agree about the top part. It's not very interesting, especially not in a document used as a reference. Perhaps we could move it to the end and provide an anchor link from the different modules down to their package explanation. A tip is to use Firefox's search as you type feature if you know

Re: [Haskell-cafe] Re: Library Process (was Building production stable software in Haskell)

2007-09-19 Thread Johan Tibell
Building Debian packages seems a bit hard to do for laymen like me. Anyone have a script that takes a .cabal file, some additional meta data and creates a .deb package? It would be really nice if we could make this procedure easier. Every time I read some documentation on how to create a Debian

Re: [Haskell-cafe] Interesting folds over bytestring lists?

2007-09-21 Thread Johan Tibell
On 9/21/07, Duncan Coutts [EMAIL PROTECTED] wrote: I should point out that other people who did this year's ICFP contest have also looked at structures like this (though mostly after the contest finished), so you might want to talk or collaborate with them. I used exactly this structure

Re: [Haskell-cafe] PROPOSAL: Rename haskell@ to haskell-announce@

2007-09-24 Thread Johan Tibell
On 9/23/07, Neil Mitchell [EMAIL PROTECTED] wrote: * Rename haskell@ to haskell-announce@, and redirect mails from haskell@ to haskell-announce@ for some period. Makes sense to me. Seems to reflect the emails I'm actually getting from the lists in question.

[Haskell-cafe] PROPOSAL: New efficient Unicode string library.

2007-09-24 Thread Johan Tibell
. Bring out your Unicode kung-fu! http://haskell.org/haskellwiki/UnicodeByteString Cheers, Johan Tibell ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] PROPOSAL: New efficient Unicode string library.

2007-09-26 Thread Johan Tibell
I'll look over the proposal more carefully when I get time, but the most important issue is to not let the storage type leak into the interface. Agreed, From an implementation point of view, UTF-16 is the most efficient representation for processing Unicode. It's the native Unicode

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-09-26 Thread Johan Tibell
On 9/26/07, Aaron Denney [EMAIL PROTECTED] wrote: On 2007-09-26, Johan Tibell [EMAIL PROTECTED] wrote: If UTF-16 is what's used by everyone else (how about Java? Python?) I think that's a strong reason to use it. I don't know Unicode well enough to say otherwise. The internal

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-09-27 Thread Johan Tibell
Well, if you never heard anyone complaining about [Char] and never had any problem with it's slowness, you're probably not in a field where the efficiency of a Unicode library is really a concern, that's for sure. (I know that the _main_ problem with [Char] wasn't random access, but you must

[Haskell-cafe] Using C-c C-l to load .hsc file into ghci in Emacs

2007-10-02 Thread Johan Tibell
How can I get C-c C-l to first run cpp on a .hsc file and then load the .hs file? I checked out the network package from darcs and then did: Start ghci, C-c C-z, then: Prelude :set -cpp And then pressed load, C-c C-l: Prelude :load

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-10-02 Thread Johan Tibell
I do not believe that anyone was seriously advocating multiple blessed encodings. The main question is *which* encoding to bless. 99+% of text I encounter is in US-ASCII, so I would favor UTF-8. Why is UTF-16 better for me? All software I write professional have to support 40 languages

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-10-03 Thread Johan Tibell
What the heck does it matter what encoding the library uses internally? +1 It can even use a non-standard encoding scheme if it wants. Sounds good to me. I (think) one of my initial questions was if the encoding should be visible in the type of the UnicodeString type or not. My gut feeling

[Haskell-cafe] Manual constructor specialization

2007-10-09 Thread Johan Tibell
I have a rope data type with the invariant that one of its data constructors can never appear as a leaf. module Data.Rope where import Data.Word (Word8) data Rope = Empty | Leaf | Node !Rope !Rope index :: Rope - Int - Word8 index Empty _ = error empty index Leaf _

Re: [Haskell-cafe] Manual constructor specialization

2007-10-09 Thread Johan Tibell
On 10/9/07, David Benbennick [EMAIL PROTECTED] wrote: On 10/9/07, Johan Tibell [EMAIL PROTECTED] wrote: data Rope = Empty | Leaf | Node !Rope !Rope The point is that Empty can only appear at the top by construction How about indicating this in your data type? I.e

Re: [Haskell-cafe] On the verge of ... giving up!

2007-10-19 Thread Johan Tibell
On 10/19/07, Valery V. Vorotyntsev [EMAIL PROTECTED] wrote: On 10/18/07, Don Stewart [EMAIL PROTECTED] wrote: Please drop by the irc channel! enthusiasm is always welcome there, and we're pretty much all obsessed too! Maybe that's not The Right Thing(TM) to ask, but anyway. :) My access

[Haskell-cafe] Why doesn't Hackage link to Haddock documentation anymore?

2007-10-19 Thread Johan Tibell
Maybe I'm seeing things but from what I remember packages that used to have links to Haddock documentation in their exported modules list no longer has. It's a super useful feature! What happened to those packages? -- Johan ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Johan Tibell
I would like to compare this to the GNOME development platform. It has Gtk+ at it's hart but GNOME releases are not synchronised with Gtk+ releases. The GNOME development platform consists of a collection of standard packages. The collection is released on a time-based schedule, not a

Re: [Haskell-cafe] Re: New slogan for haskell.org

2007-11-30 Thread Johan Tibell
I really like the friendly look of Ruby's homepage: http://www.ruby-lang.org/en/ * There's an interpreter download button in a high visibility position. * Visible news. * It's pretty! * A very short introduction. Ruby is... ... which is so generic, that we can copy it to the

Re: [Haskell-cafe] Re: Strings and utf-8

2007-11-30 Thread Johan Tibell
Am I wrong to think that UTF8 should be THE standard? I believe it can encode anything encoded by other encodings. All the UTF-* encodings can encode the same code points. There are different trade offs though. Can't we consider non-utf8 text as legacy? I don't like that word, but I do

Re: [Haskell-cafe] Re: New slogan for haskell.org

2007-11-30 Thread Johan Tibell
On Nov 30, 2007 1:30 AM, Ivan Miljenovic [EMAIL PROTECTED] wrote: Speaking of Stackless Python, its homepage (http://www.stackless.com/) has a rather nice layout... maybe slightly less emphasis on the About section, but there you've got the links, the info and the news all on the one page. I

Re: [Haskell-cafe] Possible Improvements

2007-12-03 Thread Johan Tibell
I agree that (in this context, beginning learning Haskell) it is a somewhat minor issue. But I disagree that this is something you should ignore until it becomes a problem and I do think that it should be part of learning Haskell. Properly using strictness is an important part of using

Re: [Haskell-cafe] Why is this strict in its arguments?

2007-12-05 Thread Johan Tibell
On Dec 5, 2007 11:44 AM, Jules Bean [EMAIL PROTECTED] wrote: the general pattern is : replace isNothing with a case match on Nothing, replace fromJust with a case match on Just, don't be afraid to case two expressions at once. That's a nice little insight. I'll remember that.

Re: [Haskell-cafe] Haskell-mode 2.4

2008-01-08 Thread Johan Tibell
On Dec 12, 2007 5:40 AM, Stefan Monnier [EMAIL PROTECTED] wrote: * inf-haskell.el tries to find the root of the module hierarchy to determine the root of a project (either by looking for a Cabal file or relying on the `module' declaration line). If all works well, this will make C-c C-l

Re: [Haskell-cafe] viewing HS files in Firefox

2008-01-10 Thread Johan Tibell
Adding the following to my lighttpd config (on Ubuntu Feisty) solves the problem from the server side: external configuration files ## mimetype mapping # change mime type for haskell source files so they get displayed # inside the browser include_shell

Re: [Haskell-cafe] viewing HS files in Firefox

2008-01-10 Thread Johan Tibell
On Jan 10, 2008 1:55 PM, Jules Bean [EMAIL PROTECTED] wrote: Johan Tibell wrote: Adding the following to my lighttpd config (on Ubuntu Feisty) solves the problem from the server side: external configuration files ## mimetype mapping # change mime type for haskell source files

Re: [Haskell-cafe] Haskell-mode 2.4

2008-01-10 Thread Johan Tibell
First of all, thanks. My Aqua Emacs (on OS X Leopard) hangs when I send a command like C-c C-l or C-c C-t to the interpreter (I can quit the command using C-g) . Starting the interpreter and using :l from inside it works fine. This is using GHC 6.8 (and I think I also tried 6.6.) What could

Re: [Haskell-cafe] Haskell-mode 2.4

2008-01-10 Thread Johan Tibell
On Jan 11, 2008 12:05 AM, Stefan Monnier [EMAIL PROTECTED] wrote: First of all, thanks. My Aqua Emacs (on OS X Leopard) hangs when I send a command like C-c C-l or C-c C-t to the interpreter (I can quit the command using C-g) . Starting the interpreter and using :l from inside it works

Re: [Haskell-cafe] Haskell-mode 2.4

2008-01-11 Thread Johan Tibell
Emacs is completely frozen until I press C-g and then it goes back to normal (without loading the file). Here's the back trace: Debugger entered--Lisp error: (quit) accept-process-output(#process haskell) (and (not (re-search-forward comint-prompt-regexp nil t))

[Haskell-cafe] Typo in ByteString documentation

2008-01-12 Thread Johan Tibell
In Data.ByteString.Unsafe in the documentation of unsafePackAddress the documentation reads: Use unsafePackAddress if you know the length of the string statically. I assume that unsafePackAddressLen is the being function referred to here. If I was sitting in front of my laptop I would send you

[Haskell-cafe] Code folding in Emacs

2008-01-14 Thread Johan Tibell
It would be pretty neat for Haskell hacking if the Emacs Haskell mode could do the following. Imagine you have written some code like so: -- | The parse state. data S = S {-# UNPACK #-} !B.ByteString -- current chunk L.ByteString -- rest of the input {-#

Re: [Haskell-cafe] Code folding in Emacs

2008-01-14 Thread Johan Tibell
On Jan 14, 2008 2:30 PM, Valery V. Vorotyntsev [EMAIL PROTECTED] wrote: On 1/14/08, Johan Tibell [EMAIL PROTECTED] wrote: It would be pretty neat for Haskell hacking if the Emacs Haskell mode could do the following. Imagine you have written some code like so: [...] Binding a haskell

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-03-10 Thread Johan Tibell
What's the status on this? Have we applied as organization? Do we have enough mentors? Cheers, Johan On Mon, Feb 1, 2010 at 4:02 PM, Edward Kmett ekm...@gmail.com wrote: I would happily participate as a mentor again and I am willing to step up as administrator if you want to get it off your

Re: [Haskell-cafe] Hackaton: A roof to stay

2010-03-12 Thread Johan Tibell
Forwarding this to the hackathon mailing list as most people going to ZuriHac (including some locals) are on that list. On Fri, Mar 12, 2010 at 11:09 AM, Hugo Gomes mr.hugo.go...@gmail.comwrote: Hello, im planing on going to the hackaton, but the prices in Zurich are unusually high for my

[Haskell-cafe] Two Google Summer of Code project proposals

2010-03-15 Thread Johan Tibell
Hi, I'd like to advertise two Google Summer of Code projects that I recently added to the list [1] of proposed projects: Improve Cabal's test support http://hackage.haskell.org/trac/summer-of-code/ticket/1581 Proper test support is essential for good software quality. By improving

Re: [Haskell-cafe] Bytestrings and [Char]

2010-03-22 Thread Johan Tibell
On Mon, Mar 22, 2010 at 1:16 PM, Johann Höchtl johann.hoec...@gmail.com wrote: My question or discussion point: Why not depreciate [Char] altogether and favour of lazy Bytestrings? A sequence of bytes is not the same thing as a sequence of Unicode code points. If you want to replace String by

[Haskell-cafe] Re: Two Google Summer of Code project proposals

2010-03-30 Thread Johan Tibell
I'm not able to log in to Trac to update these proposals at the moment so I'll add some notes here for now. On 3/15/10, Johan Tibell johan.tib...@gmail.com wrote: A high-performance HTML combinator library using Data.Text http://hackage.haskell.org/trac/summer-of-code/ticket/1580 Being

[Haskell-cafe] Re: [Haskell] Release: pqueue-1.0.1

2010-03-30 Thread Johan Tibell
See http://trac.haskell.org/haskell-platform/wiki/AddingPackages Cheers, Johan On Mar 31, 2010 5:21 AM, Louis Wasserman wasserman.lo...@gmail.com wrote: I've finally released my priority queue package, pqueue, on Hackage. This is the direct result of my efforts to design a priority queue for

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

2010-03-31 Thread Johan Tibell
On Mon, Mar 29, 2010 at 3:44 AM, Christopher Done chrisd...@googlemail.com wrote: This is a post about re-designing the whole Haskell web site. I really like the design a lot. Here are some ideas: - There are several news streams going on at once. Perhaps Headlines and Events could be merged

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

2010-04-06 Thread Johan Tibell
On Tue, Apr 6, 2010 at 5:24 AM, Simon Michael si...@joyful.com wrote: On 4/2/10 5:28 AM, Thomas Schilling wrote: How about something more colourful? http://i.imgur.com/7jCPq.png I really like the simplicity of the Cassandra page: http://cassandra.apache.org/

Re: Haskell+Cassandra was: RE: [Haskell-cafe] Re: Haskell.org re-design

2010-04-06 Thread Johan Tibell
On Tue, Apr 6, 2010 at 11:41 AM, Dr. Martin Grabmüller martin.grabmuel...@eleven.de wrote: Maybe a bit off-topic, but as Johan mentioned the Cassandra web site... Are there any Haskellers out there using Cassandra with Haskell? Not yet but I plan to write a binding for it if I ever get time.

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] GSoC Project: A Haddock + Pandoc documentation tool

2010-04-08 Thread Johan Tibell
On Fri, Apr 9, 2010 at 4:35 AM, Mark Lentczner ma...@glyphic.com wrote: On Apr 8, 2010, at 6:55 PM, ViaToR (Alvaro V.) wrote: I just finished writing my GSoC proposal ... The project is about creating a new documentation tool for Haskell projects,... I've taken a brief look and this

Re: [Haskell-cafe] are forkIO threads event-driven?

2010-05-01 Thread Johan Tibell
Hi Aran, On Fri, Apr 30, 2010 at 9:28 PM, Aran Donohue aran.dono...@gmail.comwrote: Thanks for the excellent links, that's exactly what I wanted. It's interesting that they've chosen not to base the new work on libevent. The reason was mostly performance concerns due to libev(ent) using

Re: [Haskell-cafe] profiling uniplate

2010-05-01 Thread Johan Tibell
On Sat, May 1, 2010 at 3:02 PM, Sebastian Fischer s...@informatik.uni-kiel.de wrote: I guess I either need to install profiling libraries for uniplate, or disable profiling of those functions coming from uniplate. Exactly. For the former cabal install --reinstall

Re: [Haskell-cafe] are forkIO threads event-driven?

2010-05-02 Thread Johan Tibell
On Sun, May 2, 2010 at 8:45 PM, Aran Donohue aran.dono...@gmail.com wrote: That's very interesting. I only brought it up because I'm thinking about the upcoming problems of real-time web application servers. I'm sure many people have seen this blog post and Dons's replies:

Re: [Haskell-cafe] are forkIO threads event-driven?

2010-05-02 Thread Johan Tibell
On Mon, May 3, 2010 at 1:42 AM, John Lask jvl...@hotmail.com wrote: Re event library and merge into haskell base: has any thought gone into the windows version of the library. Last I looked it was very unix centric - the windows api is very different. I believe it will require major rework to

[Haskell-cafe] Major Emacs mode for reading GHC Core files

2010-05-13 Thread Johan Tibell
Hi all, I wrote a minimal major mode for reading (and editing) GHC Core files. It provides syntax highlighting and removal of commonly ignored annotations, similar to what's offered by ghc-core. * Usage Dump the simplifier output in a file with a .hcr suffix: ghc -c -ddump-simpl -O2

Re: [Haskell-cafe] Unicode vs. System.Directory

2010-05-26 Thread Johan Tibell
On Wed, May 26, 2010 at 1:25 PM, Arie Peterson ar...@xs4all.nl wrote: Is this a known problem? I searched ghc's trac, but there are no relevant bugs for the component 'libraries/directory'. This bug might be relevant: http://hackage.haskell.org/trac/ghc/ticket/3307

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Johan Tibell
On Thu, May 27, 2010 at 10:23 AM, Michael Snoyman mich...@snoyman.comwrote: On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: Wow, I find it rather surprising that String out-performs Text; any idea why that is? I wonder if you're just using it wrong...

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Johan Tibell
On Thu, May 27, 2010 at 10:53 AM, Michael Snoyman mich...@snoyman.comwrote: In other words, here's what I think the three different benchmarks are really doing: * String: generates a list of Strings, passes each String to a relatively inefficient IO routine. * ByteString: encodes Strings

Re: [Haskell-cafe] Re: Mining Twitter data in Haskell and Clojure

2010-06-24 Thread Johan Tibell
On Tue, Jun 15, 2010 at 11:24 PM, braver delivera...@gmail.com wrote: Wren -- thanks for the clarification! Someone said that Foldable on Trie may not be very efficient -- is that true? I use ByteString as a node type for the graph; these are Twitter user names. Surely it's useful to

[Haskell-cafe] Re: ANN: Haskell-mode 2.8.0

2010-07-02 Thread Johan Tibell
for arrow syntax * Autolaunch haskell-mode for files starting with #!/usr/bin/runghc and similar * Added minimal major mode for parsing GHC core files, courtesy of Johan Tibell. There is a corresponding Haskell menu entry. * Allow configuration of where-clause indentation; M-x customize

Re: [Haskell-cafe] lists of arbitrary depth

2010-07-13 Thread Johan Tibell
Hi Vadali, On Tue, Jul 13, 2010 at 10:58 AM, vadali shlomivak...@gmail.com wrote: hello, iam really new to haskell, i want to define a function which takes as a parameter a list which can contain other lists, eg. [1,[2,3],[4,[5,6]]] how would i define a function that can iterate through

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Johan Tibell
On Fri, Jul 16, 2010 at 10:00 PM, Christopher Done chrisd...@googlemail.com wrote: On 16 July 2010 20:37, Don Stewart d...@galois.com wrote: chrisdone: Regarding the Haskell Platform, maybe a summer theme is in order? Sunrise, here's a whole platform upgrade. Get it while it's hot, etc.

Re: [Haskell-cafe] Running tests in Cabal

2010-07-19 Thread Johan Tibell
On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning mag...@therning.orgwrote: In my Cabal file I have defined a flag that controls whether tests are built or not. Now I'd like to hook it up a bit more so that './Setup.hs test' actually runs the tests. I haven't found a way to access that

Re: [Haskell-cafe] Page rank and GHC docs directory organization

2010-07-22 Thread Johan Tibell
On Thu, Jul 22, 2010 at 4:33 PM, Ryan Newton rrnew...@gmail.com wrote: GHC docs seem to have the problem that newer versions only gradually overtake older ones in page rank, resulting in the effect that if one uses Google to find library documentation, they may accidentally look at an old

Re: [Haskell-cafe] what's the best environment for haskell work?

2010-07-31 Thread Johan Tibell
On Sat, Jul 31, 2010 at 12:07 PM, Rustom Mody rustompm...@gmail.com wrote: Do most people who work with haskell use emacs/vi/eclipse or something else?? I use Emacs and haskell-mode. Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Please take the State of Haskell, 2010 survey

2010-08-02 Thread Johan Tibell
Hi all, I've put together a quick, 9-question State of Haskell, 2010 survey: http://blog.johantibell.com/2010/08/state-of-haskell-2010-survey.html The survey will hopefully give us some insight into how people use Haskell and perhaps also some ideas on how Haskell tools and libraries could

[Haskell-cafe] Bits and pieces needed to build a web server

2006-08-03 Thread Johan Tibell
I've got an idea for a web server model I would like to try and since I'm quite new to Haskell it would be great if someone could enumerate a couple of useful libraries to me. Here's what I need (I've put what I've found so far inside parenthesis): * Parsing of incoming HTTP request and

Re: [Haskell-cafe] Re: Why Haskell?

2006-08-07 Thread Johan Tibell
For me library support, for networking in particular, has been the major hurdle. It gets problematic when too many libraries are still marked as experimental and only partially implements the specification (e.g. protocol) that they are supposed to handle. Also after a quick look at the source for

Re: Re[2]: [Haskell-cafe] Re: Why Haskell?

2006-08-07 Thread Johan Tibell
If I were a billionaire I'd love to sponsor haskell development. Hmm, I'll add it to my goal list ;) too late - GHC is many years funded by MS Research I'm aware of that, I was just making a call for more money to deal with organizational stuff (running haskell.org, creating and maintaining

Re: Re[2]: [Haskell-cafe] Re: Why Haskell?

2006-08-07 Thread Johan Tibell
http, smtp and other networking protocols - yes. xml/sql is too large things. actually, haxml package is already included in GHC sources distribution and i think that it should be excluded from there because it's too large, far more than any other package bundled with GHC The problem I'm having

[Haskell-cafe] Need a good book on Haskell

2006-08-07 Thread Johan Tibell
I've read Haskell: The Craft of Functional Programming on a course on functional programming at Chalmers (I also took the advanced course) and now I'm looking for some more reading material. Are there any other good Haskell books? Is there a Pick Axe, Camel or Dragon Book for Haskell?

[Haskell-cafe] HWS - With Plugins

2006-08-08 Thread Johan Tibell
The HWS - With Plugins tarball is unavailable at the author's website (http://www.mdstud.chalmers.se/~md9ms/hws-wp/) and his email address doesn't work so this is desperate attempt to reach him. So, Martin Sjögren, are you here somewhere? P.S. If someone else knows where I could get hold of the

[Haskell-cafe] Why Exotic Languages Are Not Mainstream

2006-08-11 Thread Johan Tibell
Haskell was mentioned in an article called Why Exotic Languages Are Not Mainstream on the blog defmacro.org the other day and I thought maybe someone would be interested (i.e. is procrastinating at work and need an excuse to do something else). Any comments?

Re: [Haskell-cafe] Re: Why Haskell?

2006-08-15 Thread Johan Tibell
While having a single standardised library is a nice goal, I think a first step would be to highlight the current state and pros and cons of the various options. Perhaps we could at least have wiki pages with recommendations? So that a potential user of some particular functionality - whether

[Haskell-cafe] Re: how do you debug programs?

2006-09-06 Thread Johan Tibell
Note: I meant to send this to the whole list a couple of messages ago but accidentally I only sent it to Lennart, sorry Lennart! I know that Linus Torvalds doesn't find debuggers all that useful either and he hacks C [1]. 1. http://linuxmafia.com/faq/Kernel/linus-im-a-bastard-speech.html On

Re: [Haskell-cafe] Re: [newbie] How to test this function?

2006-09-22 Thread Johan Tibell
If there's a problem with haskell emacs mode, it seems very likely that if you ask the maintainer nicely, he'll do something about it. See http://www.iro.umontreal.ca/~monnier/elisp/#haskell-mode I asked Stefan a while ago: I like your Emacs mode but it behaves a bit oddly when trying to

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Johan Tibell
On 9/27/06, Lyle Kopnicky [EMAIL PROTECTED] wrote: Hi folks, It turns out Haskell is vindicated. It's my algorithm that was slow. As Robert Dockins pointed out, the double nested loop is just going to take a long time. As evidence, it turns out my C++ version is just as slow as the Haskell

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Johan Tibell
On 9/27/06, Johan Tibell [EMAIL PROTECTED] wrote: On 9/27/06, Lyle Kopnicky [EMAIL PROTECTED] wrote: Hi folks, It turns out Haskell is vindicated. It's my algorithm that was slow. As Robert Dockins pointed out, the double nested loop is just going to take a long time. As evidence

Re: [Haskell-cafe] Is Haskell a Keynesian language?

2006-10-12 Thread Johan Tibell
This is certainly proof that you can abuse economics in any context! ;) Or perhaps that economics can be used to abuse anything... - Johan Tibell On 10/12/06, Henning Thielemann [EMAIL PROTECTED] wrote: Here is another approach of questionable classification of languages. :-) A lazy

Re: [Haskell-cafe] SimonPJ and Tim Harris explain STM - video

2006-11-24 Thread Johan Tibell
I would just love to have some Haskell video casts. That would be awesome! Cheers, Johan On 11/23/06, Bayley, Alistair wrote: http://channel9.msdn.com/Showpost.aspx?postid=231495 The links to the video are a couple of yellow buttons at the bottom of the article: Watch or Download. I haven't

Re: [Haskell-cafe] PDF library?

2007-01-23 Thread Johan Tibell
I know Peter Moberg at Chalmers was working on some PDF stuff. You might want to try to get hold of him and ask. Cheers, Johan On 1/24/07, Clifford Beshers [EMAIL PROTECTED] wrote: I don't suppose anyone has any Haskell code that understands the PDF format, do they?

[Haskell-cafe] Extracting structured data in XML into records

2007-02-24 Thread Johan Tibell
\ ++ span class=\organization-name\Technorati/span ++ /div ++ /div main = parseHCards textXml Cheers, Johan Tibell ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Parsec benchmarks

2008-01-20 Thread Johan Tibell
On Jan 20, 2008 9:54 PM, Jon Harrop [EMAIL PROTECTED] wrote: I'd like to compare the performance of Parsec to other parsers but the only reference to a benchmark I have found is a dead link from one of the papers about Parsec:

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread Johan Tibell
On Jan 23, 2008 11:56 AM, Jules Bean [EMAIL PROTECTED] wrote: Peter Verswyvelen wrote: Now I'm getting a bit confused here. To summarize, what encoding does GHC 6.8.2 use for [Char]? UCS-32? [snip] What *does* matter to the programmer is what encodings putStr and getLine use. AFAIK,

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread Johan Tibell
What *does* matter to the programmer is what encodings putStr and getLine use. AFAIK, they use lower 8 bits of unicode code point which is almost functionally equivalent to latin-1. Which is terrible! You should have to be explicit about what encoding you expect. Python 3000

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread Johan Tibell
The benefit would be that if the input is not in latin-1 an exception could be thrown rather than returning a Char representing the wrong Unicode code point. I'm not sure what you mean here. All 256 possible values have a meaning. You're of course right. So we don't have a problem here.

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread Johan Tibell
On Jan 23, 2008 2:11 PM, Magnus Therning [EMAIL PROTECTED] wrote: Yes, this reflects my recent experience, Char is not a good representation for an 8-bit byte. This thread came out of my attempt to add a module to dataenc[1] that would make base64-string[2] obsolete. As you probably can

Re: [Haskell-cafe] parsec and bytestring; was: hxt memory useage

2008-01-25 Thread Johan Tibell
On Jan 24, 2008 10:34 PM, Matthew Pocock [EMAIL PROTECTED] wrote: Would a bytestring-backed implementation of parsec solve my problems? Is there such a beast out there? I'm working on one as a part of another project. It's not incremental and needs some optimizing (I've focused on correctness

[Haskell-cafe] Fwd: ByteString Parsec clone

2008-01-25 Thread Johan Tibell
which I believe is used for Parsec as well. Anyone know how I can reach Dan? -- Johan -- Forwarded message -- From: Johan Tibell [EMAIL PROTECTED] Date: Jan 22, 2008 2:56 PM Subject: ByteString Parsec clone To: [EMAIL PROTECTED] I've written, but yet not published, a ByteString

Re: [Haskell-cafe] Fwd: ByteString Parsec clone

2008-01-25 Thread Johan Tibell
legally, since it's released under BSD, you're allowed to do all that (as long as you don't delete the bit of attribution that the BSD requires :-) As a practical matter. How do you manage attributions. Can you put a other-project.LICENSE file which is a copy of the other projects LICENSE file

Re: [Haskell-cafe] Stacking monads - beginner design question

2008-01-30 Thread Johan Tibell
Are monad stacks with 3 and more monads common? How could an example implementation look like? I found reading the xmonad code (http://code.haskell.org/xmonad/) enlightening. The X monad definition can be found in http://code.haskell.org/xmonad/XMonad/Core.hs -- | The X monad, a StateT

Re: [Haskell-cafe] Poor libraries documentation

2008-01-30 Thread Johan Tibell
I imagine the laziness here was because these all match their names in the traditional libc, accessable via manpages. You may not consider that an excuse :) I don't! To do something about it I'll adopt Network.Socket and document that (I did the same with some other base module half a year

Re: module hierarchy (Re: [Haskell-cafe] parsec3 pre-release [important note])

2008-02-04 Thread Johan Tibell
On Feb 4, 2008 12:11 PM, Wolfgang Jeltsch [EMAIL PROTECTED] wrote: Am Samstag, 2. Februar 2008 05:53 schrieb Derek Elkins: I forgot to mention that the Text.Parsec modules should be preferred to the Text.ParserCombinators.Parsec modules as the Haddock documentation reveals. I would have

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
Hi John! On Wed, Feb 20, 2008 at 3:39 PM, John Goerzen [EMAIL PROTECTED] wrote: 3) Would it make sense to base as much code as possible in the Haskell core areound ListLike definitions? Here I think of functions such as lines and words, which make sense both on [Char] as well as

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
On Thu, Feb 21, 2008 at 11:37 AM, Duncan Coutts [EMAIL PROTECTED] wrote: On Thu, 2008-02-21 at 10:06 +0100, Johan Tibell wrote: Hi John! On Wed, Feb 20, 2008 at 3:39 PM, John Goerzen [EMAIL PROTECTED] wrote: 3) Would it make sense to base as much code as possible in the Haskell

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
On Thu, Feb 21, 2008 at 5:51 PM, Thomas Schilling [EMAIL PROTECTED] wrote: I know of an example off-hand: http://nominolo.blogspot.com/2007/05/networkhttp-bytestrings.html (Of course, as I read that, I see that the lazy code is different from the strict code, but I'll just ignore

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
On Thu, Feb 21, 2008 at 6:58 PM, Thomas Schilling [EMAIL PROTECTED] wrote: On 21 feb 2008, at 18.35, Johan Tibell wrote: I switched from lazy bytestrings to a left fold in my networking code after reading what Oleg wrote about streams vs folds. No problems with handles, etc. anymore

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-22 Thread Johan Tibell
On Fri, Feb 22, 2008 at 9:31 AM, Thomas Schilling [EMAIL PROTECTED] wrote: On 22 feb 2008, at 08.18, Jules Bean wrote: You can't call a stream-abstraction utility using a left-fold- enumerator without cheating (unsafeInterleave), because the stream- abstraction is incompatible (and

Re: [Haskell-cafe] GSoC 2008

2008-02-26 Thread Johan Tibell
On Mon, Feb 25, 2008 at 3:28 PM, Malcolm Wallace [EMAIL PROTECTED] wrote: Google has today announced that they will be running their Summer of Code programme again this year. http://code.google.com/soc/2008/ haskell.org has had many student projects funded by this programme, in 2006

Re: [Haskell-cafe] Starting Haskell with a web application

2008-03-06 Thread Johan Tibell
On Wed, Mar 5, 2008 at 8:25 PM, Adam Langley [EMAIL PROTECTED] wrote: On Wed, Mar 5, 2008 at 11:07 AM, Bryan O'Sullivan [EMAIL PROTECTED] wrote: Indeed. In addition to the code you mention, people like Adam Langley and Johan Tibbell are taking on corners of the web app problem space in

Re: [Haskell-cafe] Starting Haskell with a web application

2008-03-06 Thread Johan Tibell
Do you (both) have repos that I could download from? I quite interested in both projects, esp. the WSGI clone. Yes and no. The code [1] is in my darcs repository but is in an unusable state until I've fixed my incremental parser (in Hyena/Parser.hs) which I plan to do next week. I would like

[Haskell-cafe] Difficulties implementing an incremental parser using Oleg-style left fold enumerator

2008-03-08 Thread Johan Tibell
of input problem correctly. Thanks. -- Johan {-# LANGUAGE DeriveDataTypeable, Rank2Types #-} - -- | -- Module : Parsing.IParse -- Copyright : (c) Johan Tibell 2008 -- License : BSD3-style (see LICENSE

[Haskell-cafe] Re: Difficulties implementing an incremental parser using Oleg-style left fold enumerator

2008-03-08 Thread Johan Tibell
On Sat, Mar 8, 2008 at 9:56 AM, Johan Tibell [EMAIL PROTECTED] wrote: My current implementation of the parser type is newtype Parser r a = Parser { unParser :: S - (a - S - Result r) - (S - Result r) - Result r } where the first parameter is the parse state, the second a success

[Haskell-cafe] Re: Difficulties implementing an incremental parser using Oleg-style left fold enumerator

2008-03-08 Thread Johan Tibell
On Sat, Mar 8, 2008 at 10:11 PM, Adam Langley [EMAIL PROTECTED] wrote: On Sat, Mar 8, 2008 at 12:56 AM, Johan Tibell [EMAIL PROTECTED] wrote: The problem -- maybe there are others too -- is that when a parser such as many (byte 65) is run it will always return a 'Partial' result

[Haskell-cafe] RFC: A standardized interface between web servers and applications or frameworks (ala WSGI)

2008-04-13 Thread Johan Tibell
Good day hackers, The Python community have been successful in standardizing an interface between web server and applications or frameworks resulting in users having more control over their web stack by being able to pick frameworks independently from web servers, and vice versa. I propose we try

[Haskell-cafe] Re: RFC: A standardized interface between web servers and applications or frameworks (ala WSGI)

2008-04-18 Thread Johan Tibell
First, apologies for not responding earlier. I spent my week at a conference in Austria. Second, thanks for all the feedback! I thought I go through some of my thoughts on the issues raised. Just to try to reiterate the goals of this effort: * To provide a common, no frills interface between

Re: [Haskell-cafe] ANN: ReviewBoard 0.1 bindings

2008-05-05 Thread Johan Tibell
On Thu, May 1, 2008 at 8:28 AM, Adam Smyczek [EMAIL PROTECTED] wrote: This package is part of a development tool designed to monitor code changes, analyze dependencies etc. Actually, we are still in process to develop the tool and this binding is the first functional ready package others

Re: [Haskell-cafe] Copying Arrays

2008-05-30 Thread Johan Tibell
On Fri, May 30, 2008 at 9:00 AM, Ketil Malde [EMAIL PROTECTED] wrote: Duncan Coutts [EMAIL PROTECTED] writes: The reason we do not want to re-use ByteString as the underlying representation is because they're not good for short strings and we expect that for Unicode text (more than arbitrary

Re: [Haskell-cafe] Copying Arrays

2008-05-30 Thread Johan Tibell
Hi! On Fri, May 30, 2008 at 10:38 AM, Ketil Malde [EMAIL PROTECTED] wrote: Johan Tibell [EMAIL PROTECTED] writes: The intent of the not-yet-existing Unicode string is to represent text not bytes. Right, so this will replace the .Char8 modules as well? What confused me was my

  1   2   3   4   5   6   >