[Haskell-cafe] Observations from ListLike

2007-09-17 Thread John Goerzen
Hi folks, I just announced ListLike[1] on [EMAIL PROTECTED] Rather than repeat that announcement here, I'd like to make a few observations that came out of the development of this program: * I wrote extensive QuickCheck cases for this and wrapped them in HUnit for better display and future

[Haskell-cafe] Re: latest hdbc-odbc

2007-10-12 Thread John Goerzen
-v to see a list of the files searched for. Cannot continue after interface file error Can anyone shed light on what is going wrong? Is it something I can fix, or is the distribution buggy? thanks, Jeff -- John Goerzen Author, Foundations of Python Network Programming http

[Haskell-cafe] Bug in runInteractiveProcess?

2007-10-16 Thread John Goerzen
Hi everyone, I have been trying to implement a Haskell-like version of shell pipelines using runInteractiveProcess. I am essentially using hGetContents to grab the output from one command, and passing that to (forkIO $ hPutStr) to write to the next. Slow, but this is just an experiment. This

[Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-16 Thread John Goerzen
On 2007-10-16, Jules Bean [EMAIL PROTECTED] wrote: John Goerzen wrote: Many systems will just try to close *all* FDs except the ones they need after a fork(). Another approach would be to maintain a global list of FDs that the Haskell thread is using, and close all of them except the pipe

[Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-17 Thread John Goerzen
On 2007-10-17, Simon Marlow [EMAIL PROTECTED] wrote: Note that forkProcess doesn't currently work with +RTS -N2 (or any value larger than 1), and it isn't likely to in the future. I suspect forkProcess should be deprecated. That would be most annoying, and would render HSH unable to

[Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-17 Thread John Goerzen
On 2007-10-17, Simon Marlow [EMAIL PROTECTED] wrote: they set FD_CLOEXEC or not. Would someone like to create a bug report? http://hackage.haskell.org/trac/ghc/ticket/1780 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: building hslogger

2007-10-18 Thread John Goerzen
On 2007-10-17, Chris Hayden [EMAIL PROTECTED] wrote: Hello! I'm trying to build the most recent version of hslogger and have run into some issues. Below is the error message I receive. (I see that the same error has come up elsewhere:

Re: [Haskell-cafe] Where are the haskell elders?

2010-04-01 Thread John Goerzen
Ivan Miljenovic wrote: 2010/3/30 Don Stewart d...@galois.com: I notice that posts from the Haskell elders are pretty rare now. Only every now and then we hear from them. How come? Because there is too much noise on this list, Günther And they have better things to do than answer stupid

[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] HDBC-ODBC and SqlValues

2010-04-08 Thread John Goerzen
Tim Docker wrote: Jason: Thanks for the reply. I suspect the solution is to correctly tell Haskell what type you expect and then hopefully HDBC will do the conversion. For example, using fromSql: http://software.complete.org/static/hdbc/doc/Database-HDBC.html#v% 3AfromSql Yes. I can

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

2010-04-08 Thread John Goerzen
Tim Docker wrote: *Main fmap (fromSql.head.head) $ quickQuery c select getdate() [] :: IO Data.Time.Clock.UTCTime 2010-04-09 09:59:20.67 UTC *Main fmap (fromSql.head.head) $ quickQuery c select getdate() [] :: IO Data.Time.LocalTime 2010-04-09 09:59:26.313 *Main fmap (fromSql.head.head) $

[Haskell-cafe] Adopting MissingPy?

2010-04-21 Thread John Goerzen
Hi folks, MissingPy is a library I wrote a little while back that allows you to call Python code from Haskell. It's on Hackage and, as far as I know, still works. Trouble is, the need I used to have for it is gone. So I no longer use it myself for anything, and thus it is starting to

[Haskell-cafe] Unicode strings and runCommand / runProcess

2010-04-23 Thread John Goerzen
Here is a very interesting little problem. ghci GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude :m System.Process Prelude

[Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
It is somewhat of a surprise to me that I'm making this post, given that there was a day when I thought Haskell was moving too slow ;-) My problem here is that it has become rather difficult to write software in Haskell that will still work with newer compiler and library versions in future

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
Don Stewart wrote: I'll just quickly mention one factor that contributes: * In 2.5 years we've gone from 10 libraries on Hackage to 2023 (literally!) That is a massive API to try to manage, hence the continuing move to focus on automated QA on Hackage, and automated tools -- no one wants

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
Thomas Hartman wrote: 1) Folks, what exactly is the situation with buildbots? If that's going to happen, then ideally we would have a way to run tests as part of the hackage acceptance process. For instance, the change to a time format string wouldn't break anything at compile time, but my

Re: [Haskell-cafe] Unicode strings and runCommand / runProcess

2010-04-23 Thread John Goerzen
Ivan Lazar Miljenovic wrote: John Goerzen jgoer...@complete.org writes: ghci GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude :m

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
David Leimbach wrote: I think managers expect magic bullets and holy grails... sometimes they just end up with holy cow's (or other more interesting 4 letter words) instead. The good news for me, at least, is that *I* am the manager. (Yep, the company is small enough for that.) Actually,

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
Ivan Lazar Miljenovic wrote: I think the release early, release often slogan is an affect on this as well: we encourage library writers to release once they have something that _works_ rather than waiting until it is perfect. The fact that we encourage smaller, more modular libraries over large

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
Don Stewart wrote: Oh, the Platform has very strict standards about APIs, When a package may be added: http://trac.haskell.org/haskell-platform/wiki/AddingPackages That looks like a very solid document. Does it also apply when considering upgrading a package already in the

Re: [Haskell-cafe] Unicode strings and runCommand / runProcess

2010-04-23 Thread John Goerzen
Khudyakov Alexey wrote: Actually, the behavior of openFile when given a String with characters 0xFF is also completely undocumented. I am not sure what it does with that. It should probably be the same as runCommand, whatever it is. Under unices file names are just array of bytes. There is

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread John Goerzen
David Menendez wrote: On Fri, Apr 23, 2010 at 10:11 PM, John Goerzen jgoer...@complete.org wrote: Don Stewart wrote: Oh, the Platform has very strict standards about APIs, When a package may be added: http://trac.haskell.org/haskell-platform/wiki/AddingPackages That looks like a very

Re: [Haskell-cafe] Compressing GHC tarballs with LZMA

2010-04-24 Thread John Goerzen
Magnus Therning wrote: On 24/04/10 08:02, Bulat Ziganshin wrote: Hello Leon, Saturday, April 24, 2010, 12:23:58 AM, you wrote: file nearly a third smaller. Given that many modern variants of the tar command support .tar.lzma files directly isn't latest version of lzma-based compression

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-26 Thread John Goerzen
On 04/25/2010 03:47 PM, Ivan Lazar Miljenovic wrote: So you recommend having packages specifically for instances? My main problem with this is if you want a custom variant of that instance. Let's take FGL graphs for example with instances for QuickCheck's Arbitrary class. Maybe you want

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-20 Thread John Goerzen
On 07/07/2010 03:22 PM, Don Stewart wrote: And you have to be wary about the license of HDBC (LGPL) if you want to use the package in software you redistribute (though this is rarely the case for database apps, I'm guessing). Satisfying the linking requirements with GHC -O2 are non-trivial,

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-21 Thread John Goerzen
On 07/20/2010 11:45 PM, Michael Snoyman wrote: I think a simple statement along the lines of the GNU Classpath linking exception would go very far[1]. I only mention that one since it's quoted verbatim on the Wikipedia site. Michael [1]

[Haskell-cafe] Clever generic ByteString hack?

2006-07-05 Thread John Goerzen
Hi, In MissingH, I have a bunch of little functions that operate on lists. Some, like uniq (which eliminates duplicate elements in a list), operate on (Eq a = [a]) lists. Others, like strip (which eliminates whitespace at the start and end), operate on Strings only. Most functions of both types

[Haskell-cafe] Strictness in do block

2006-07-05 Thread John Goerzen
Hi, One thing that seems to keep biting me is strictness in do blocks. What I want to know is the generic way to force an entire String (or other list, perhaps from hGetContents) to be evaluated (read into RAM, I guess) so the underlying file can be closed and do it right now. One quick

[Haskell-cafe] Re: Strictness in do block

2006-07-05 Thread John Goerzen
On 2006-07-05, Duncan Coutts [EMAIL PROTECTED] wrote: What I have done in the past is to take the length of the string, and test the length in some way - although I guess you could call seq on the length. evaluate is for just that purpose. evaluate (length input) from the docs:

Re: [Haskell-cafe] Clever generic ByteString hack?

2006-07-05 Thread John Goerzen
On Wed, Jul 05, 2006 at 09:38:44PM +1000, Donald Bruce Stewart wrote: What functions are you thinking of btw? We may want to include them in the ByteString modules anyway (possibly directly rather than in terms of other functions, to take advantage of tricks with the representation).

Re: [Haskell-cafe] Clever generic ByteString hack?

2006-07-05 Thread John Goerzen
On Wed, Jul 05, 2006 at 12:25:53PM +0100, Duncan Coutts wrote: different types of input? I'd rather avoid having 3 versions, that are exactly the same except for imports. People sometimes talk about doing a type class to cover string like modules. Yes, that makes sense to me. I was

[Haskell-cafe] Re: Problems installing HDBC-postgresql

2006-07-10 Thread John Goerzen
On 2006-07-10, Martin Percossi [EMAIL PROTECTED] wrote: Hi, I'm having problems using HDBC-postgresql (I've tried both 0.99.2.1 and 1.0.0.0) with postgresql (version 8.1.4, installed in /share/pgsql). I adjust the include-dir and extra-lib-dirs to use the custom location of postgresql, and

[Haskell-cafe] Re: Samba/FTP bindings

2006-08-17 Thread John Goerzen
On 2006-08-16, Ivan Tarasov [EMAIL PROTECTED] wrote: Is there some Haskell library which provides Samba bindings and some FTP client library bindings (e.g. ftplib3)? MissingH provides a pure-Haskell FTP client (and server!) implementation. -- John

[Haskell-cafe] Why does this program eat RAM?

2006-09-04 Thread John Goerzen
I have the below program, and I'm trying to run it on an input of about 90MB. It eats RAM like crazy, and I can't figure out why. I do know that the problem is not my custwords function (as you can see, I replaced the call to it with a call to the standard words function on the last line). It

[Haskell-cafe] Re: Why does this program eat RAM?

2006-09-05 Thread John Goerzen
On 2006-09-05, Udo Stenzel [EMAIL PROTECTED] wrote: The culprit is insertWith, it inserts unevaluated thunks into your map This turned out to be the answer -- thanks! I posted a new version of the code here: http://changelog.complete.org/posts/536-Another-Haskell-Solution-to-Lars-Problem.html

[Haskell-cafe] Re: Re[2]: Why does this program eat RAM?

2006-09-05 Thread John Goerzen
On 2006-09-05, Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello Bertram, Tuesday, September 5, 2006, 12:24:57 PM, you wrote: A quick hack up to use Data.ByteString uses a lot less ram, though profiling still shows 95% of time spent in the building the Map. Data.HashTable may be a faster

[Haskell-cafe] Re: Strictness, order of IO operations: NewCGI HDBC

2006-10-09 Thread John Goerzen
On Mon, Oct 09, 2006 at 04:01:02PM -0600, Tim Smith wrote: main = do dbh - connectODBC DSN=test res - DB.getTables dbh -- print (show ((concat . intersperse , ) res)) DB.disconnect dbh print (show ((concat . intersperse , ) res)) Am I just expecting the wrong thing from

[Haskell-cafe] Re: How would you replace a field in a CSV file?

2006-10-09 Thread John Goerzen
On 2006-10-01, Pete Kazmier [EMAIL PROTECTED] wrote: For those that know python, here is a very simple implementation that happens to be very fast compared to my Haskell version and very short: for line in sys.stdin: fields = line.split(',') Of course, this doesn't handle quoted

[Haskell-cafe] Re: getting a DB library working with ghc 6.6 and PostgreSQL 7.4.7

2006-10-20 Thread John Goerzen
On Mon, 16 Oct 2006 23:49:19 -0400, Seth Gordon wrote: I'm looking for an alternative to HSQL for database connectivity -- the lack of prepared statements in HSQL is particularly worrisome. I installed HDBC, but when I tried running a simple program that used it, I get the error message

[Haskell-cafe] The Future of MissingH

2006-11-24 Thread John Goerzen
Hi, Josef Svenningsson posted a comment on my blog today that got me to thinking. He suggested that people may be intimidated by the size of MissingH, confused by the undescriptive name, and don't quite know what's in there. And I think he's right. I've been passively thinking about what

[Haskell-cafe] Re: The Future of MissingH

2006-11-24 Thread John Goerzen
On Fri, 24 Nov 2006 18:17:06 +, Neil Mitchell wrote: Hi How could greater community participation be encouraged, while still encouraging quality control? It also took me quite a while to find the darcs repository, and as far as I can see there is no web page on what MissingH has

[Haskell-cafe] Re: Lazy data from pipe using MissingH module

2006-11-30 Thread John Goerzen
Dougal Stanton wrote: Newbie here working on a little program for fetching podcasts. I've been using the MissingH.Cmd module in concert with curl to download the RSS feeds like this: First off, check out http://quux.org/devel/hpodder -- it is a podcast downloader written in Haskell that uses

[Haskell-cafe] Re: The Future of MissingH

2006-11-30 Thread John Goerzen
Bulat Ziganshin wrote: Hi Bulat, Many thanks for the *great* comments. first, is it possible to integrate MissingH inside existing core libs, i.e. Haskell libs supported by Haskell community? i think that it will be impossible if MissingH will hold its GPL status. i think that such

[Haskell-cafe] New Name for MissingH?

2006-11-30 Thread John Goerzen
Quick feedback time... One comment people made in the Future of MissingH thread was that the name isn't very suggestive of what the library does. I'm planning to follow the advice of many people and split the major MissingH components off into smaller bits (ConfigParser, HVFS, etc). MissingH

[Haskell-cafe] Re: New Name for MissingH?

2006-11-30 Thread John Goerzen
Neil Mitchell wrote: Hi The alternative I've been thinking of is something like Haskell Utility Library (HUL). Yuk. I like MissingH. MissingH suggests things that are missing from the standard set and provided here. HsMissing would be my preferred choice, but its not really important.

[Haskell-cafe] Building Binaries with Cabal

2006-11-30 Thread John Goerzen
Hi folks, I'm in need of some Cabal assistance. I want to build the unit tests for MissingH using Cabal. According to the docs, this should require me to list all of the exposed modules from the library as other modules to the binary. Since there are dozens of these, I thought a simple hook

[Haskell-cafe] Re: Building Binaries with Cabal

2006-11-30 Thread John Goerzen
I posted a weird version of the code. Here's the real version. Same problem I described, though. Distribution.Simple import Distribution.PackageDescription import Distribution.Version import System.Info import Data.Maybe winHooks = defaultUserHooks {confHook = customConfHook,

Re: [Haskell-cafe] Building Binaries with Cabal

2006-11-30 Thread John Goerzen
On Thu, Nov 30, 2006 at 08:53:36PM +, Neil Mitchell wrote: Aghhh! To test if the operating system is windows you compare against a hard coded string which _isn't_ an OS, but _is_ an optional component by a 3rd party. It's required to build some Haskell compilers, but for Yhc

[Haskell-cafe] Draft MissingH Reorg Plan

2006-11-30 Thread John Goerzen
Please tell me if I should just go away or go to another list here. Thanks again for all the feedback you've sent. I've got the new MissingH website getting started, and I've posted there the draft reorganization, module rename, and package split plan here:

Re: [Haskell-cafe] Draft MissingH Reorg Plan

2006-12-01 Thread John Goerzen
On Fri, Dec 01, 2006 at 01:56:34AM -0600, Taral wrote: On 12/1/06, Tomasz Zielonka [EMAIL PROTECTED] wrote: Do you accept contributions? I have some code I find very useful that Yes! would fit in the same places, like in Text.ParserCombinators.Parsec.Utils, Data.BitsUtils (btw, why not

Re: [Haskell-cafe] Draft MissingH Reorg Plan

2006-12-01 Thread John Goerzen
On Fri, Dec 01, 2006 at 07:04:56AM +0100, Tomasz Zielonka wrote: http://software.complete.org/missingh/wiki/TransitionPlanning Your comments (and edits! -- must register/login first) are welcome. As for other code (say Data.Tree.Utils), I am not sure what's best: put it in some big

[Haskell-cafe] Re: Draft MissingH Reorg Plan

2006-12-01 Thread John Goerzen
Malcolm Wallace wrote: John Goerzen [EMAIL PROTECTED] wrote: Please tell me if I should just go away or go to another list here. How about [EMAIL PROTECTED] Fair enough. Will do. http://software.complete.org/missingh/wiki/TransitionPlanning Your comments (and edits! -- must

[Haskell-cafe] Download locations for former-base libraries?

2006-12-05 Thread John Goerzen
Hi, I am working on updating and splitting things out of MissingH. MissingH is going to depend on regex-compat, HUnit, QuickCheck, and FilePath, among others. For each such library, I need to be able to tell users where they can go to download the dependency. But I'm having a lot of trouble

[Haskell-cafe] Re: Download locations for former-base libraries?

2006-12-05 Thread John Goerzen
Ross Paterson wrote: You could direct them to http://hackage.haskell.org/packages/unstable/ Is that site guaranteed to have the same packages/versions as the ghc extralibs has? Oh, and BTW, does cabal-put work with the current cabal in GHC 6.6 these days? I would love to be able to

[Haskell-cafe] MissingH status and thanks

2006-12-08 Thread John Goerzen
Since the MissingH discussion took place on this list, I thought I should update you all on the status. First off, MissingH now has a new Trac-based homepage, complete with wiki, Darcs repository information, source browser, bug tracker, etc. It's at http://software.complete.org/missingh

[Haskell-cafe] Re: Good Haskell introduction for an Ocaml programmer?

2006-12-12 Thread John Goerzen
On Tue, 12 Dec 2006 07:39:41 -0500, Brian Hurt wrote: Greetings, all. I'm an experienced Ocaml programmer, looking to broaden my horizons yet further and pick up Haskell, and I'm wondering if there's a good introduction to Haskell for me. I have Simon Thompson's Haskell: The Craft of

[Haskell-cafe] Re: On improving libraries: wanted list

2006-12-12 Thread John Goerzen
On Mon, 11 Dec 2006 11:52:48 +1100, Donald Bruce Stewart wrote: With the upcoming hackathon[1], and its timely focus on real world libraries, infrastructure and tools support, I've started a list of truly missing libraries, for particular problem domains. If you have a problem, for which

[Haskell-cafe] Re: Trivial database access in Haskell

2006-12-12 Thread John Goerzen
On Mon, 11 Dec 2006 22:46:44 +, Paul Moore wrote: What I *can* do, is to attempt to install one of the libraries that looks closest to what I want (probably HDBC, because I'm familiar with the Python DB-API). But I honestly have little or no idea how to start - following the HDBC link

[Haskell-cafe] Re: Micro-contributions to MissingH

2006-12-12 Thread John Goerzen
On Tue, 12 Dec 2006 15:49:25 -0500, Yang wrote: Hi, I'm at the moment writing a very simple function, spanM (a la mapM). I realize that this is a rather general-purpose function, so I'm wondering if I should submit this as a patch for MissingH. If so, where in the new hierarchy should this be

Re: [Haskell-cafe] Re: On improving libraries: wanted list

2006-12-13 Thread John Goerzen
On Wed, Dec 13, 2006 at 04:19:58PM +1100, Donald Bruce Stewart wrote: In particular, you seem to be wanting my pipeBoth function. Note that your proposed String - IO String function type is insufficient because it does not provide a way to evaluate the return value of the function.

Re: [Haskell-cafe] Re: Micro-contributions to MissingH

2006-12-13 Thread John Goerzen
On Wed, Dec 13, 2006 at 12:01:36PM +, Neil Mitchell wrote: Hi I'm wondering if I should submit this as a patch for MissingH. If so, where in the new hierarchy should this be placed? I submitted 3 patches to missingh about a week ago, but have heard nothing back since. Did they get

[Haskell-cafe] Re: Writing Haskell For Dummies Or At Least For People Who Feel Like Dummies When They See The Word 'Monad'

2006-12-19 Thread John Goerzen
Kirsten Chevalier wrote: It's not as if this is the first time that this has been suggested, but some people have suggested that a practical book about Haskell would be a good idea. I agree. Some people have also suggested that the right moment for this hasn't arrived yet, and I see that as a

[Haskell-cafe] Re: Writing Haskell For Dummies Or At Least For People Who Feel Like Dummies When They See The Word 'Monad'

2006-12-19 Thread John Goerzen
John Goerzen wrote: I know this is a late reply, but some of us tried to get something like this off the ground a little while back. darcs get --partial http://software.complete.org/haskell-v8/ My brain is fried. Make that: darcs get --partial http://darcs.complete.org/haskell-v8

[Haskell-cafe] Re: HaskellForge?

2007-01-08 Thread John Goerzen
On 2007-01-07, Imam Tashdid ul Alam [EMAIL PROTECTED] wrote: is it a good idea to have HaskellForge? Ruby, Lua and some other languages have already adopted GForge, and I must say, those sites look *impressive*!!! Have you looked at trac? I'm using it for about a dozen projects over on

Re: [Haskell-cafe] Re: Resending: MissingH: profiler support?

2007-01-12 Thread John Goerzen
On Fri, Jan 12, 2007 at 08:10:47AM -0500, Gregory Wright wrote: -- John Does MissingH's cabal file have a line Ghc-Prof-Options: -prof -auto-all No, it doesn't. None of my Cabal files do. Could anyone confirm if this fixes it? The rhs of the option is added to compiler

[Haskell-cafe] Re: MissingH: profiler support?

2007-01-12 Thread John Goerzen
On 2007-01-12, Chris Eidhof [EMAIL PROTECTED] wrote: Thanks, this works! I had to build all the other libraries that are required with profiling support too. I also wrote it down on the MissingH wiki, see http://software.complete.org/missingh/wiki/Profiling Thanks for documenting that on

[Haskell-cafe] Re: How did you stumble on Haskell?

2007-01-30 Thread John Goerzen
On 2007-01-29, Alexy Khrabrov [EMAIL PROTECTED] wrote: How do people stumble on Haskell? I've taught ML at UPenn, and many Fascinating thread. Awhile back, I decided that, once I got familiar and comfortable with a programming language, I would learn a new one. I tend a learn a new language

[Haskell-cafe] ANN: HSH 1.0.0

2007-03-01 Thread John Goerzen
Hello, I'm pleased to announce the first release of HSH. HSH is designed to let you mix and match shell expressions with Haskell programs. With HSH, it is possible to easily run shell commands, capture their output or provide their input, and pipe them to/from other shell commands and arbitrary

[Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
it at: http://software.complete.org/hsh -- John Goerzen Author, Foundations of Python Network Programming http://www.amazon.com/exec/obidos/tg/detail/-/1590593715 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

[Haskell-cafe] Re: ANN: HSH 1.0.0

2007-03-03 Thread John Goerzen
On 2007-03-01, David Roundy [EMAIL PROTECTED] wrote: On Thu, Mar 01, 2007 at 01:47:38PM -0600, John Goerzen wrote: The input to this function is never read. Shouldn't this be called echo? Or just let people use the preexisting function const, which does the same thing? catFromS just seems

[Haskell-cafe] An HSH case study

2007-03-03 Thread John Goerzen
Some of you may be interested in my recent blog post[1], where I discuss porting hg-buildpackage[2] from a set of shell scripts to a set of Haskell programs that use HSH. To my surprise, I achieved a 20% *reduction* in source lines of code, while doing the exact same tasks. I guess I have to

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
On Sat, Mar 03, 2007 at 05:06:16PM +, Paul Moore wrote: On 03/03/07, John Goerzen [EMAIL PROTECTED] wrote: I'm pleased to announce HSH 1.2.0. Since version 1.0.0 was announced a few days ago, there have been some improvements: I've had a little look, and it looks nice. However

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
On Sat, Mar 03, 2007 at 11:58:42PM +0300, Bulat Ziganshin wrote: path-handling functions are not windows aware, at least i always thought that Haskell (probably, hugs) is a great shell scripting tool but it lacks filename/file processing libraries. with help of Filepath library by Neil and

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
On Sat, Mar 03, 2007 at 10:19:38PM +, Neil Mitchell wrote: I've got some stuff that FilePath doesn't, namely making paths absolute, wildcard matching/globbing, and also a function that converts a POSIX wildcard into a regexp. FilePath did have a function that made paths absolute, but it

[Haskell-cafe] Re: ANN: HSH 1.2.0

2007-03-04 Thread John Goerzen
On 2007-03-04, [EMAIL PROTECTED], Feustel dfeustel@mindspring.com [EMAIL PROTECTED] wrote: The Makefile in the HSH distribution should do this for you. But you can say: ghc --make -o setup -package Cabal Setup.lhs A40:/home/daf/Hsh/hsh}ghc --make -o setup -package Cabal Setu.lhs

[Haskell-cafe] Re: announcing darcs 2.0.0pre3

2008-01-31 Thread John Goerzen
On 2008-01-22, David Roundy [EMAIL PROTECTED] wrote: We are happy to announce the third prerelease version of darcs 2! Darcs 2 David, I'm very happy to see this, and will be trying it out today! I have one concern though, and it's a big one. On your DarcsTwo page, it says: Darcs get is now

[Haskell-cafe] Re: announcing darcs 2.0.0pre3

2008-01-31 Thread John Goerzen
On 2008-01-31, David Roundy [EMAIL PROTECTED] wrote: way to pull down everything that could possibly be needed? But from the way the wiki page is sounded, it doesn't sound that way. Running darcs check, darcs changes -s or darcs changes foobar for instance would ensure that you've got a

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

2008-02-20 Thread John Goerzen
Hi folks, Before I started using Haskell, I used OCaml for a spell. One of my biggest annoyances with OCaml was that it had two list types: the default list (strict), and a lazy list (known as a stream). This led to all sorts of annoyances. Libraries were always written to work with one list

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

2008-02-20 Thread John Goerzen
On 2008-02-20, Ross Paterson [EMAIL PROTECTED] wrote: conventions won't be usable in my ByteString code, for instance. [...] http://software.complete.org/listlike/static/doc/ListLike/Data-ListLike.html As Henning pointed out, multiple parameter type classes are problematic for core

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

2008-02-20 Thread John Goerzen
On 2008-02-20, John Goerzen [EMAIL PROTECTED] wrote: I notice that Data.Foldable does some similar things but does not use multi-parameter type classes. I seem to recall that I attempted to do this in the same manner, but got tripped up somewhere. I can't remember now exactly what

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

2008-02-20 Thread John Goerzen
On 2008-02-20, Jules Bean [EMAIL PROTECTED] wrote: Not directly, no. The point about Foldable, Functor, and Monad, is that they enforce the connection between container and contents. If the contents is of type a, the container is of type f a for a fixed type constructor 'f'. This works

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

2008-02-20 Thread John Goerzen
On 2008-02-20, John Goerzen [EMAIL PROTECTED] wrote: On the other hand, if you mean using a dictionary to wrap just the ByteString types (or other similar ones), I am currently thinking of something along those lines. I'll post here if I come up with something clever (or not). Can't come up

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

2008-02-20 Thread John Goerzen
On Wednesday 20 February 2008 5:13:34 pm Duncan Coutts wrote: On Wed, 2008-02-20 at 08:39 -0600, John Goerzen wrote: * The iconv library works only on lazy ByteStrings, and does not handle Strings or strict ByteStrings There is a very good reason for this. The right solution

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

2008-02-20 Thread John Goerzen
On Wednesday 20 February 2008 8:42:56 pm Roman Leshchinskiy wrote: John Goerzen wrote: I am concerned that the same thing is happening in Haskell. We know have three common list-like types: the regular list, strict ByteString, and lazy ByteString. Why do you consider ByteString

[Haskell-cafe] Re: SoC project: Python-Haskell bridge - request for feedback

2008-03-27 Thread John Goerzen
FWIW, my MissingPy project accomplishes part of this (calling Python from Haskell) already. -- John On 2008-03-27, Dan Weston [EMAIL PROTECTED] wrote: I notice that you omit from the advantages of calling Haskell from Python what I consider the most important reason of all (at least from

[Haskell-cafe] Web server libraries

2008-03-27 Thread John Goerzen
Hi again, I'm currently working on a project that has a Web interface to data stored in a SQL database. I wrote this thing in WASH a few years back. Overall, this has been acceptable, but the non-Haskell-adepts around here run away screaming from the code. Not only that, but we don't get

[Haskell-cafe] HTTP client libraries

2008-03-27 Thread John Goerzen
Hi folks, I was recently looking for HTTP client libraries for Haskell. I investigated several, and it seems that there aren't any really ready for primetime. Am I missing anything? Here's what I found: * Bjorn's String-based HTTP It eats RAM. Does not appear to read data lazily, returns

Re: [Haskell-cafe] HTTP client libraries

2008-03-27 Thread John Goerzen
On Thursday 27 March 2008 04:38:21 pm Paul Brown wrote: On Thu, Mar 27, 2008 at 12:08 PM, John Goerzen [EMAIL PROTECTED] wrote: * Bjorn's String-based HTTP It eats RAM. Does not appear to read data lazily, returns a String, and may have a memory leak as well. Does not appear

Re: [Haskell-cafe] Re: SoC project: Python-Haskell bridge - request for feedback

2008-03-27 Thread John Goerzen
On Thursday 27 March 2008 04:07:23 pm Dan Weston wrote: I did not see MissingPy on Hackage (presumably it would be next to MissingH?) I found it (listed on http://www.complete.org/jgoerzen/softindex.html) at http://darcs.complete.org/missingpy Is this the right place to get it? Yes, it is.

[Haskell-cafe] Re: HTTP client libraries

2008-03-28 Thread John Goerzen
On 2008-03-28, Don Stewart [EMAIL PROTECTED] wrote: paulrbrown+haskell-cafe: And we have a curl binding, already in wide use. http://code.haskell.org/curl.git/ a release to hackage is imminent. Do you mean this? http://hackage.haskell.org/cgi-bin/hackage-scripts/package/curl-1.3.1

[Haskell-cafe] Re: HTTP client libraries

2008-03-28 Thread John Goerzen
On 2008-03-27, Adam Langley [EMAIL PROTECTED] wrote: On Thu, Mar 27, 2008 at 12:08 PM, John Goerzen [EMAIL PROTECTED] wrote: * network-minihttp Doesn't appear to actually be very useful as a client. Also, as far as I have been able to deduce, none of these have built-in support

[Haskell-cafe] Re: HTTP client libraries

2008-03-31 Thread John Goerzen
On 2008-03-30, Iavor Diatchki [EMAIL PROTECTED] wrote: Hi, On Fri, Mar 28, 2008 at 6:42 AM, John Goerzen [EMAIL PROTECTED] wrote: On 2008-03-28, Don Stewart [EMAIL PROTECTED] wrote: paulrbrown+haskell-cafe: And we have a curl binding, already in wide use. http

[Haskell-cafe] ANN: hdbc-odbc 1.1.4.1

2008-04-02 Thread John Goerzen
Hi folks, HDBC-ODBC 1.1.4.1 has been uploaded to http://software.complete.org/hdbc-odbc and to Hackage. Bryn Keller reported a build problem on Windows with GHC 6.8.x, which has been fixed. -- John ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: HDBC, character encoding

2008-04-03 Thread John Goerzen
On 2008-04-01, Peter Gammie [EMAIL PROTECTED] wrote: On 31/03/2008, at 11:42 PM, Bjorn Bringert wrote: 2008/3/26 Adrian Neumann [EMAIL PROTECTED]: Hi, I wrote a CGI program to access a Postgres database using HDBC. [...] I think that Peter Gammie (copied) has some code to deal with this.

[Haskell-cafe] Re: HDBC, character encoding

2008-04-04 Thread John Goerzen
On 2008-04-04, Peter Gammie [EMAIL PROTECTED] wrote: through, however it is obtained, and let the programmer set the encoding as desired. If this approach isn't working for people, I'd like to fix it, but want to make sure it's done right. Assuming you're talking about the FFI's mandated

Re: [Haskell-cafe] problems building hpodder

2008-04-07 Thread John Goerzen
On Monday 07 April 2008 5:57:39 pm [EMAIL PROTECTED] wrote: So almost certainly the issue is that HaXml has updated and changed things around in a way that broke Hpodder; not surprising, since HaXml-1.19.2 is as recent as 14 January 2008, and Goerzen may simply not have updated and discovered

Re: [Haskell-cafe] problems building hpodder

2008-04-08 Thread John Goerzen
On Tue April 8 2008 3:21:34 pm Karl Hasselström wrote: http://www.haskell.org/haskellwiki/Package_versioning_policy seems to have something relevant to say. build-depends: HaXml = 1.13.3 1.14 ought to do the trick, since any changes in the published interface are supposed to be accompanied

[Haskell-cafe] I/O system brokenness with named pipes

2008-04-11 Thread John Goerzen
So I have a need to write data to a POSIX named pipe (aka FIFO). Long story involving a command that doesn't have an option to read data from stdin, but can from a named pipe. I have created the named pipe from Haskell no problem. But I can't use writeFile to write data to it. Worse, it

Re: [Haskell-cafe] I/O system brokenness with named pipes

2008-04-11 Thread John Goerzen
On Friday 11 April 2008 05:39:54 am Duncan Coutts wrote: On Thu, 2008-04-10 at 20:34 -0500, John Goerzen wrote: I have created the named pipe from Haskell no problem. But I can't use writeFile to write data to it. Worse, it returns: *** Exception: /tmp/bakroller.zD0xHj/fifo: openFile

Re: [Haskell-cafe] I/O system brokenness with named pipes

2008-04-11 Thread John Goerzen
On Fri April 11 2008 8:02:07 am Brandon S. Allbery KF8NH wrote: On Apr 11, 2008, at 8:12 , John Goerzen wrote: OK, I have referred to fifo(7) regarding this point. It seems I may need a loop trying over and over to open the FIFO in write mode. It also appears that ReadWriteMode

  1   2   3   4   5   >