Re: [Haskell-cafe] getSymbolicLinkStatus completely broken on some 6.8.2 systems

2008-02-14 Thread Jeremy Shaw
Created a ticket with a patch: http://hackage.haskell.org/trac/ghc/ticket/2093 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] getSymbolicLinkStatus completely broken on some 6.8.2 systems

2008-02-14 Thread Jeremy Shaw
Hello, You rule! Here is where I am at now. It seems that when I build ghc from source, the top level configure script detects that my system has large file support, and enables it. As you discovered, this gets dumped into: /usr/lib/ghc-6.8.2/include/ghcautoconf.h which gets included when

[Haskell-cafe] getSymbolicLinkStatus completely broken on some 6.8.2 systems

2008-02-12 Thread Jeremy Shaw
Hello, I get funny results when I call getSymbolicLinkStatus in ghc 6.8.2 on Ubuntu 7.10. This happens on several systems and has been confirmed by other people. Though, some people on almost the exact same system claimed to not see it at all. Here is an interactive example with ghci, note how

Re: [Haskell-cafe] anybody can tell me the pronuncation of haskell?

2008-01-28 Thread Jeremy Shaw
Hello, If my sources are to be believed, the following clip contains Simon Peyton Jones saying 'Haskell' several times. http://www.n-heptane.com/nhlab/spj-haskell.wav j. At Tue, 29 Jan 2008 08:28:44 +0800 , [EMAIL PROTECTED] wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; gbk

Re: [Haskell-cafe] anybody can tell me the pronuncation of haskell?

2008-01-28 Thread Jeremy Shaw
At Mon, 28 Jan 2008 17:06:58 -0800, Tim Chevalier wrote: I should really read more carefully -- I see now that you weren't trying to disagree with me by posting that clip, but the person who *did* disagree with me was also named Jeremy. How confusing. tehehe. For the record, I believe I

Re: [Haskell-cafe] Not to load Prelude

2008-01-10 Thread Jeremy Shaw
At Thu, 10 Jan 2008 17:22:02 -0200, Maurí­cio wrote: Hi, Is it possible not to load Prelude module when compiling a Haskell module? Or instruct ghc to “unload” it? You can either do: import Prelude() or compile with the -fno-implicit-prelude flag, or add {-# LANGUAGE NoImplicitPrelude

Re: [Haskell-cafe] More accessible papers

2007-11-21 Thread Jeremy Shaw
At Wed, 21 Nov 2007 12:10:38 +0100, Peter Verswyvelen wrote: Yes, but why don't researchers just publish their TEX file? You can regard that as the source code for generating PDF/PS whatever no? Yes. but things have a way of getting lost. The primary advantage to embedding the data is you

Re: [Haskell-cafe] More accessible papers

2007-11-20 Thread Jeremy Shaw
At Mon, 19 Nov 2007 19:57:14 +, Neil Mitchell wrote: All these PDF's are produced from a standard Latex class file. For all my papers I have the original source .tex files. I suspect you'll have more luck going from the original .tex rather than the PDF. I would be especially neat if

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Jeremy Shaw
At Mon, 19 Nov 2007 21:25:23 +, Andrew Coppin wrote: If you were going to implement Tetris in Haskell, how would you do it? (For that matter, has anybody already *done* it? It would probably make a nice example program...) A minimal openGL haskell tetris clone:

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Jeremy Shaw
At Mon, 19 Nov 2007 10:25:40 -0800, brad clawsie wrote: so far the haskell community has taken the cpan route for most practical libs but i wonder if a batteries included approach might help get some key libraries to a more complete state. in particular, i would like to see support for basic

Re: [Haskell-cafe] Translations and Haskell

2007-11-19 Thread Jeremy Shaw
At Mon, 19 Nov 2007 23:18:58 -0200, Felipe Lessa wrote: If there aren't any libraries available, are there any suggestions on how to create one? I am not sure if a better way exists already, but here is how I would do it if nothing better exists. Creating a binding to the gettext library

Re: State of parallel GC?

2007-11-15 Thread Jeremy Shaw
Hello, Is real-time, parallel garbage collection at all feasible? My thinking is, real-time garbage collection requires the garbage collector to be able to work on the problem in small, predictable, pieces. That seems like something which would also be useful for scaling up GC to multiple

Re: [Haskell-cafe] Re: How much of Haskell was possible 20 years ago?

2007-10-22 Thread Jeremy Shaw
At Sun, 21 Oct 2007 17:21:00 -0200, Maurí­cio wrote: Brandon S. Allbery KF8NH escreveu: On Oct 21, 2007, at 14:40 , Maurí cio wrote: I like Haskell, and use it as my main language. However, compiling a Haskell program usually takes a lot of memory and CPU. Last night I was

Re: [Haskell-cafe] Local Search Module

2007-10-22 Thread Jeremy Shaw
At Mon, 22 Oct 2007 14:45:51 -0400, David F. Place wrote: On Oct 22, 2007, at 2:26 PM, Jeremy Shaw wrote: Hello, If you have not seen this paper, you may enjoy it: Modular Lazy Search for Constraint Satisfaction Problems (2001) Thomas Nordin, Andrew Tolmach http

Re: [Haskell-cafe] Using type-level programming to tag functions with time and space complexity

2007-10-18 Thread Jeremy Shaw
Hello, Oleg, Chung-chieh Shan, and others have done some work close to this area. On this page, see the Monads parameterized by time section: http://okmij.org/ftp/Haskell/number-parameterized-types.html Also see this page: http://okmij.org/ftp/Haskell/types.html#ls-resources The new type

Re: [Haskell-cafe] Sending email from a Haskell program

2007-09-26 Thread Jeremy Shaw
At Wed, 26 Sep 2007 22:11:12 +0700, Peter Gammie wrote: Hello, Does anyone have a library for sending email from a Haskell program? I'd like something portable and cabalised. I note there is code in darcs to send email on Windows and UNIX-y systems, and also something in WASH (I

Re: ANNOUNCE: GHC 6.8.1 Release Candidate

2007-09-13 Thread Jeremy Shaw
At Thu, 13 Sep 2007 13:26:05 +0100, Ian Lynagh wrote: Hi Stefan, On Thu, Sep 13, 2007 at 07:55:21AM +0200, Stefan Holdermans wrote: We are pleased to announce the Release Candidate phase for GHC 6.8.1. That's 6.8, right? Or have I missed something? No, it's 6.8.1:

Re: [Haskell-cafe] quoting in Haskell

2007-08-27 Thread Jeremy Shaw
At Mon, 27 Aug 2007 17:04:17 +0200, Peter Verswyvelen wrote: In Scheme, on can quote code, so that it becomes data. Microsoft's F# and C# 3.0 also have something similar that turns code into expression trees. The latter is used extensively in LINQ which translates plain C# code into SQL

Re: [Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-25 Thread Jeremy Shaw
At Sun, 26 Aug 2007 00:19:25 +0200, =?UTF-8?Q?Rados=C5=82aw_Grzanka?= wrote: It's funny. But 5 minutes ago I was thinking: did anyone compiled haskell application for Palm (m68k and/or Arm) that runs on Palm OS? I have looked into doing this in the past. Historically speaking, the first

Re: [Haskell-cafe] money type ?

2007-07-12 Thread Jeremy Shaw
At Thu, 12 Jul 2007 00:42:46 -0700, Simon Michael wrote: Good day all, my budding ledger program could not balance transactions exactly because of rounding error with Double. I *think* I got it working better with Rational (it was late). Another suggestion from #haskell was to multiply

Re: [Haskell-cafe] better error expression in IO function

2007-07-11 Thread Jeremy Shaw
At Thu, 12 Jul 2007 09:18:14 +1000, Thomas Conway wrote: On 7/12/07, Andrew Coppin [EMAIL PROTECTED] wrote: It's fairly common to use the Either type for this. By convention, Right means correct, and by elimination Left means an error... Presumably, this is because the world is dominated

Re: [Haskell-cafe] Status of MIME Strike Force

2007-06-27 Thread Jeremy Shaw
At Wed, 27 Jun 2007 18:54:58 +0200 (CEST), Arie Peterson wrote: What is the status of the MIME Strike Force? The goals proposed at http://www.haskell.org/haskellwiki/Libraries_and_tools/MIMEStrikeForce promise a very useful library. Has the design been initiated? Currently it is on hold

Re: [Haskell-cafe] Status of MIME Strike Force

2007-06-27 Thread Jeremy Shaw
At Wed, 27 Jun 2007 21:14:02 +0200, Marc Weber wrote: exampleHeaders2 :: [RawHeader] exampleHeaders2 = ((Subject whee) .+. (Subject bork) .+. (Keywords [baz, bar, bam]) .*. (Keywords [zip, zap, zop]) .*. empty ) [...] But, it is also really

Re: [Haskell-cafe] directory tree?

2007-06-22 Thread Jeremy Shaw
Hello, Have you seen Tom Moertel's series on directory-tree printing in Haskell ? http://blog.moertel.com/articles/2007/03/28/directory-tree-printing-in-haskell-part-three-lazy-i-o j. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Hardware

2007-06-01 Thread Jeremy Shaw
Hello, Did you see the recently announce reduceron project? (Or perhaps you are already involved in that project?) http://www-users.cs.york.ac.uk/~mfn/reduceron/index.html If you search scholar.google.com for graph reduction machine you should turn up a bunch of papers about attempts to build a

Re: [Haskell-cafe] Monads and constraint satisfaction problems (CSP)

2007-05-31 Thread Jeremy Shaw
At Thu, 31 May 2007 10:42:57 -0700, Greg Meredith wrote: BTW, i think this could have a lot of bang-for-buck because the literature i read exhibited two basic features: - the standard treatments (even by CS-types) are decidedly not compositional - the people in the field who face

Re: [Haskell-cafe] Monads and constraint satisfaction problems (CSP)

2007-05-31 Thread Jeremy Shaw
At Thu, 31 May 2007 11:36:55 -0700, Jeremy Shaw wrote: This paper describes a non-monadic, compositional method for solving CSPs: http://www.cse.ogi.edu/PacSoft/publications/2001/modular_lazy_search_jfp.pdf btw, there are multiple versions of this paper. This version includes a section

Re: [Haskell-cafe] How do I insert an element in HaXml?

2007-05-21 Thread Jeremy Shaw
At Sun, 20 May 2007 10:55:26 +0100, Malcolm Wallace wrote: Jeremy Shaw [EMAIL PROTECTED] writes: How do I create a HaXml filter that adds a new element as a child of an existing element. For example, let's say I have the XML document: a b/ c/ /a How do I add a new element under

[Haskell-cafe] How do I insert an element in HaXml?

2007-05-19 Thread Jeremy Shaw
Hello, How do I create a HaXml filter that adds a new element as a child of an existing element. For example, let's say I have the XML document: a b/ c/ /a How do I add a new element under a / so that I have the document: a newElement/ b/ c/ /a The following works, but it seems very

Re: main main main main main

2007-05-12 Thread Jeremy Shaw
Hello, If one of the modules you are importing (for example, Fu.NewLogging), does *not* contain a line at the top like: module Fu.NewLogging where then I think you will get an error that looks something like that. I am not sure if this is your problem, but if it is, it is an easy fix :) hope

Re: main main main main main

2007-05-12 Thread Jeremy Shaw
At Sun, 13 May 2007 02:49:13 +0100, Frederik Eaton wrote: Hello, However, should either of these things be necessary? no. I think users oughtn't have to memorize and execute a list of haphazard tricks, for instance like reading the modules they import and visually checking that they

[Haskell] ANNOUNCE: AGI library (Asterisk Gateway Interface)

2007-05-12 Thread Jeremy Shaw
Hello, I have uploaded a simple AGI interface to hackage. It is still very alpha, but that has never stopped me before :) http://hackage.haskell.org/cgi-bin/hackage-scripts/package/AGI-1.0 darcs get http://www.n-heptane.com/nhlab/repos/haskell-agi/ The best way to understand how to use it is

Re: [Haskell-cafe] Type classes and type equality

2007-04-16 Thread Jeremy Shaw
At Mon, 16 Apr 2007 13:44:13 +0100, Neil Mitchell wrote: Hi, So my question is if this is safe? Will the compiler always pick the right one? Is there a better way to do this? I noticed that the results can be a bit suprising sometimes. See if you can predict the answers to these (in ghci):

[Haskell-cafe] implementing try for RWST ?

2007-04-13 Thread Jeremy Shaw
Hello, I defined a newtype like this (the ()s will be replace with something more useful in the future): newtype DryRunIO a = DryRunIO { runDryRunIO :: RWST Bool () () IO a } deriving (Monad, MonadIO, MonadError IOError, MonadFix, Functor, MonadReader Bool, MonadWriter (), MonadState ())

Re: [Haskell-cafe] [Beginner's Question] How to read filenames from a DirStream

2007-04-09 Thread Jeremy Shaw
Hello, This multipart tutorial seems similar to what you are describing: http://blog.moertel.com/articles/2007/03/28/directory-tree-printing-in-haskell-part-three-lazy-i-o The tutorial is actually a bit more complicated, it is traversing a whole directory tree and printing a nice graph. HTH,

[Haskell] ANNOUNCE: Haskell SWF generation library

2007-04-07 Thread Jeremy Shaw
Hello, I would like to take this opportunity to announce the availability of an Adobe Shockwave Flash (SWF) library for Haskell: darcs get http://www.n-heptane.com/nhlab/repos/haskell-swf/ The library is a bit old and crufty, and it is not really release quality code. The cabal files are out of

Re: [Haskell-cafe] ANN: XMPP 0.0.1

2007-04-07 Thread Jeremy Shaw
, you are (at least) the third person to do this. Jeremy Shaw (stepcut): http://www.n-heptane.com/nhlab/repos/haskell-xmpp/ In my library I try to preserve the extensible nature of XMPP. It was my hope that people could add support for XMMP Extension Protocols (XEP), by writing additional

[Haskell] ANNOUNCE: Debian library

2007-04-03 Thread Jeremy Shaw
Hello, I would like to announce the availability of the a library for interacting with the Debian system. This library does not (currently) depend on dpkg or apt for any functionality. Contributions are welcome. You should probably send an email first to make sure you are not duplicating any of

Re: [Haskell] ANNOUNCE: Debian library

2007-04-03 Thread Jeremy Shaw
At Tue, 3 Apr 2007 13:04:36 -0700, Sounds like your duplicating a lot of the functionality of jgoerzen's MissingH library. http://software.complete.org/missingh yes. but better ;) Not all of your functionality is subsumed, but he has a control-file parser and a version type too. Yes and

Re: [Haskell-cafe] Data.ByteStream.Char8.words performance

2007-03-30 Thread Jeremy Shaw
Hello, Did you compile with -O2 ? That makes a huge difference when using ByteString. j. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] cost of modules

2007-03-27 Thread Jeremy Shaw
At Tue, 27 Mar 2007 23:10:21 +0200, Fawzi Mohamed wrote: If someone has an idea on how else I can improve timings please tell me. I believe you are seeing a speed decrease, because GHC is not inlining functions as much when you split them into modules. If you add explicit inline statements, I

Re: [Haskell-cafe] toClockTime

2007-03-20 Thread Jeremy Shaw
At Tue, 20 Mar 2007 12:02:20 -0400, Jeff Polakow wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; US-ASCII (7bit)] Hello, On my system, GHC 6.6 running on windows xp, System.Time.toClockTime fails on calendar times later than (by days, I didn't check hours, minutes, etc.)

[Haskell-cafe] ANN: MIME Strike Force

2007-03-18 Thread Jeremy Shaw
Hello, If you have tried to do any MIME processing using Haskell, you are likely to have found two things: 1) There are a lot of MIME libraries for Haskell 2) None of them do everything you want So, I propose that we form a MIME Strike Force and create the one, true MIME library. The plan

Re: [Haskell-cafe] Stack Space Overflow.

2007-03-18 Thread Jeremy Shaw
At Sun, 18 Mar 2007 14:22:34 -0700, Stefan O'Rear wrote: This was solved on #haskell yesterday after you left. http://tunes.org/~nef/logs/haskell/07.03.71 Scroll down to 21:48:47 and read stepcut's comment. In fact, it's already patched in darcs: darcs get

Re: [Haskell-cafe] A valuable new combinator for Parsec?

2007-03-12 Thread Jeremy Shaw
At Mon, 12 Mar 2007 11:24:48 +0100, Maxime Henrion wrote: pmaybe :: GenParser tok st a - GenParser tok st (Maybe a) pmaybe p = option Nothing (p = return . Just) I've been using it happily with some code of mine. Do people think that it would be generally useful to have in Parsec? I

Re: [Haskell-cafe] A different Maybe maybe

2007-03-07 Thread Jeremy Shaw
Hello, Your definition for Bool reminds me a bit of the definition for booleans in Robert Dockins pure, untyped lambda calculus evaluator: http://www.eecs.tufts.edu/~rdocki01/lambda/prelude.lam http://www.eecs.tufts.edu/~rdocki01/lambda.html j. ___

Re: [Haskell-cafe] IO and lazyness.

2007-03-06 Thread Jeremy Shaw
Hello, There are a few solutions, depending on what behaviour you want. If you plan to read the file all the way to the end, then you do not need to explicitly close the handle, hGetContents will do it for you.

Re: [Haskell-cafe] IO and lazyness.

2007-03-06 Thread Jeremy Shaw
At Tue, 6 Mar 2007 22:56:52 +0100, D.V. wrote: The problem is that hGetContents only reads the contents of the file on demand and, without the 'return $!' you don't demand the value until somewhere outside of rechf. By this point the hClose has happened and hGetContents has no

Re: ghci and ghc -threaded broken with pipes forking

2007-03-01 Thread Jeremy Shaw
At Thu, 1 Mar 2007 11:38:54 -0600, John Goerzen wrote: On Thu, Mar 01, 2007 at 04:21:45PM +, Simon Marlow wrote: Between that and the lack of support for forkProcess in Hugs, this renders anything that needs to fork and then do I/O as being usable only in GHC-compiled code. Which is

Re: ghci and ghc -threaded broken with pipes forking

2007-02-28 Thread Jeremy Shaw
At Wed, 28 Feb 2007 11:15:04 -0600, John Goerzen wrote: You can see my test case with: darcs get '--tag=glasgow ml' http://darcs.complete.org/hsh ghc -fglasgow-exts --make -o test2 test2.hs I get an erro when I use that darcs command-line, and test2.hs does not appear to be in the directory

Re: ghci and ghc -threaded broken with pipes forking

2007-02-28 Thread Jeremy Shaw
*without* the -threaded flag. hth, j. At Wed, 28 Feb 2007 13:29:17 -0600, John Goerzen wrote: On Wed, Feb 28, 2007 at 10:40:18AM -0800, Jeremy Shaw wrote: At Wed, 28 Feb 2007 11:15:04 -0600, John Goerzen wrote: You can see my test case with: darcs get '--tag=glasgow ml' http

Re: ghci and ghc -threaded broken with pipes forking

2007-02-28 Thread Jeremy Shaw
-0600, John Goerzen wrote: On Wed, Feb 28, 2007 at 01:06:25PM -0800, Jeremy Shaw wrote: Hello, Your first problem is just a line buffering issue. You need to explicitly set the line buffer inside the child processes: redir fstdin stdInput

Re: ghci and ghc -threaded broken with pipes forking

2007-02-28 Thread Jeremy Shaw
Hello, Here is a simplified example that seems to exhibit the same behaviour, unless I screwed up: --- module Main where import System.Posix import System.IO import System.Exit main = do putStrLn running... (stdinr, stdinw) - createPipe (stdoutr, stdoutw) - createPipe

Re: [Haskell-cafe] Memoisation

2007-02-25 Thread Jeremy Shaw
At Mon, 26 Feb 2007 07:54:56 +1000, Tony Morris wrote: [1 multipart/signed (7bit)] [1.1 text/plain; ISO-8859-1 (quoted-printable)] I have a backtracking algorithm that I need to memoise with. Rather than go into the intricacies of the algorithm, I figure (and hope) the factorial function

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

2007-01-29 Thread Jeremy Shaw
Hi, I was working in embedded development, writing lots of C code. My primary tool for debugging things was turning an LED on or off. So, I became quite interested in figuring out how to write code with less bugs. After some searching, I found lclint, (now knows as splint:

Re: [Haskell-cafe] Re: proposal: HaBench, a Haskell Benchmark Suite

2007-01-26 Thread Jeremy Shaw
At Fri, 26 Jan 2007 07:23:26 -0800, David Roundy wrote: I would think that what we'd want to benchmark would be clean, optimized actually-used code. Maybe there should be two versions of each benchmark: 1) an clean, simple, idiomatic version, aka the code we would like to write if

Re: [Haskell-cafe] trouble installing ghc 6.6: xargs: /usr/bin/ar: terminated by signal 11

2007-01-06 Thread Jeremy Shaw
At Sat, 6 Jan 2007 15:41:37 -0800, Stefan O'Rear wrote: On Sat, Jan 06, 2007 at 03:30:56PM -0800, tphyahoo wrote: I'm having trouble installing ghc 6.6. On ubuntu, virtual server (user mode linux). Is it repeatable? i.e. If you run 'make' again, do you get the same error at the same

Re: [Haskell-cafe] Stupid newbie question

2007-01-05 Thread Jeremy Shaw
Hi, In this case, the stack overflow you are seeing is due to laziness not tail recursion. Because you never demand the value of any element in the list, Haskell never bothers to calculate it. So you have a list that looks like: [ i, i - 1, (i - 1) - 1, ((i - 1) - 1 - 1), .. ] So, by the

Re: [Haskell-cafe] Stupid newbie question

2007-01-05 Thread Jeremy Shaw
At Fri, 05 Jan 2007 17:58:14 -0800, Jeremy Shaw wrote: Because you never demand the value of any element in the list, Haskell never bothers to calculate it. So you have a list that looks like: [ i, i - 1, (i - 1) - 1, ((i - 1) - 1 - 1), .. ] I should clarify that this is the list

Re: [Haskell-cafe] Stupid newbie question

2007-01-05 Thread Jeremy Shaw
At Fri, 05 Jan 2007 20:59:16 -0800, Mike Gunter wrote: pps. I didn't explain why [1..100] works, but [1..] fails, because I don't know :) It's a bit suprising to me... With [1..100], the generated values have to be tested against 100 as you go. So, they get evaluated.

Re: [Haskell-cafe] HaXML - creating a simple document

2006-12-30 Thread Jeremy Shaw
Hello, According to this page: http://www.cs.york.ac.uk/fp/HaXml/HaXml/Text-XML-HaXml-Wrappers.html processXmlWith is used to apply a filter to an existing XML document. By default, it will try to read the input document from stdin. So, I am imagine that is what it is doing -- sitting their

[Haskell] ANNOUNCE: Another Haskell MIME Library

2006-12-02 Thread Jeremy Shaw
Hello, I would like to announce the availability of my partially complete MIME processing library. This library is supposed to be able to parse emails and decode various attachments, and generate emails with attachments. The library includes modules that implement portions of: RFC 2045 -

Re: bignums, gmp, bytestring, .. ?

2006-11-19 Thread Jeremy Shaw
At Sun, 19 Nov 2006 13:46:10 -0500, Peter Tanski wrote: What is the problem building GMP for PalmOS? According to the GMP install documentation, it supports ARM and Motorola's m68k processors, so you would not be using generic C code. You are probably also using PRC-Tools, correct?

Re: bignums, gmp, bytestring, .. ?

2006-11-17 Thread Jeremy Shaw
At Sat, 18 Nov 2006 00:44:32 +, Neil Mitchell wrote One advantage you probably haven't thought of is the size of the binary. Currently GMP adds about 50Kb on to the Yhc runtime, for what in the most cases is probably an occasional addition. If the bytecode for a bignum library was less

[Haskell] Re: Haskell web forum

2006-09-21 Thread Jeremy Shaw
Christian Neumann christian at altfrau.de writes: Am Thu, 21 Sep 2006 08:07:36 +0100 schrieb David House dmhouse at gmail.com: As a real Haskell newbie I must say that this is (IMHO) a very bad idea. It's annoying to register on yet another forum just to ask one question (and even more to

Re: Re[2]: [Haskell-cafe] foreach

2006-09-13 Thread Jeremy Shaw
At Wed, 13 Sep 2006 15:24:39 +0400, Bulat Ziganshin wrote: because REAL code is somewhat larger than examples. try to rewrite the following: directory_blocks - (`mapM` splitBy (opt_group_dir command) files_to_archive) ( \filesInOneDirectory - do datablocks - (`mapM`

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

2006-09-04 Thread Jeremy Shaw
At Tue, 5 Sep 2006 03:03:51 + (UTC), John Goerzen wrote: 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 have not looked in detail at your code -- but it could simply be the fact that String requires gobs

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

2006-09-04 Thread Jeremy Shaw
At Mon, 04 Sep 2006 22:05:57 -0700, Jeremy Shaw wrote: At Tue, 5 Sep 2006 03:03:51 + (UTC), John Goerzen wrote: 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. If you fold a Data.Map or associative

Re: [Haskell] putStr is not evaluated in the correct order

2006-09-02 Thread Jeremy Shaw
Hello, GHCi and the compiled program do not buffer the output in quite the same way. In the compile program, stdout is line buffered, so it will not output anything until it gets a '\n'. You can force the output using 'hFlush stdout': import System.IO main = do putStr Who are you?

Re: [Haskell-cafe] Serializing Functions and Actions for Distributed Programming

2006-07-29 Thread Jeremy Shaw
At Sat, 29 Jul 2006 14:07:51 -0400, Brian Sniffen wrote: I'm very excited by the ability to pass functions or IO actions between threads of the same program. But I don't see any language or library support for doing so between programs, or between sessions with the same program. There is

Re: Building NewBinary with ghc 6.5

2006-07-26 Thread Jeremy Shaw
... done. ghc-pkg: invalid package identifier: It's not showing me the ghc-pkg that's being invoked. On Jul 26, 2006, at 12:56 AM, Jeremy Shaw wrote: At Wed, 26 Jul 2006 00:40:33 +0100, Joel Reymont wrote: Is there something that looks particularly wrong below? Can you try

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-26 Thread Jeremy Shaw
At Wed, 26 Jul 2006 23:07:36 +0200, Udo Stenzel wrote: What does Emacs do with double separators? I'm at a loss thinking of anything they could denote, but it could be useful. You mean like, /path/to/somewhere//with/double/seperator If so, it treats it as if you had typed in:

Re: Building NewBinary with ghc 6.5

2006-07-25 Thread Jeremy Shaw
At Wed, 26 Jul 2006 00:40:33 +0100, Joel Reymont wrote: Is there something that looks particularly wrong below? Can you try the install with verbosity turned up: $ sudo runhaskell Setup.lhs install -v or perhaps even $ sudo runhaskell Setup.lhs install -v5 I believe this will show

Re: [Haskell-cafe] Hackathon hesitation

2006-07-12 Thread Jeremy Shaw
At Wed, 12 Jul 2006 10:57:54 -0700, Chad Scherrer wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] Hi, I'm interested in attending the Hackathon, but I don't have any previous experience working on compilers. Perhaps we should start a list of pre-session

Re: [Haskell-cafe] Using of C constants in Haskell sources; Determining compilation environment (Unix vs Windows)

2006-07-11 Thread Jeremy Shaw
At Tue, 11 Jul 2006 19:28:13 +0400, Bulat Ziganshin wrote: Hello Haskell, what is a best way to bring C constant (defined in header file) into the Haskell source? If this ^^^ was your entire question, I would say, use hsc2hs.

Re: [Haskell-cafe] Re: how to write an haskell binding

2006-06-27 Thread Jeremy Shaw
At Tue, 27 Jun 2006 20:36:30 +0100, Brian Hulley wrote: What about words like 'hour' and 'honest'? Don't forget honor. So I'd say these two words are closely related, so the search is still on for another word with silent 'h' not related to time or integrity. How about heir? Also, until

Re: Re[2]: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-27 Thread Jeremy Shaw
At Thu, 25 May 2006 13:42:11 +0400, Bulat Ziganshin wrote: Hello Jeremy, Monday, May 22, 2006, 12:20:54 AM, you wrote: For my own needs, I cabalized and debianized the Streams library. It generates binary debs for ghc6 and hugs -- but I think the hugs version is broken. In any case,

Re: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-21 Thread Jeremy Shaw
Hello, I really wanted to respond to the parent thread, but I deleted it already, so this message will be a bit out of context. For my own needs, I cabalized and debianized the Streams library. It generates binary debs for ghc6 and hugs -- but I think the hugs version is broken. In any case, it

Re: [Haskell-cafe] Newbie: Applying Unknown Number Arguments to A Partial Function

2006-05-19 Thread Jeremy Shaw
Hello, You can do it -- but it may not be very useful in its current form. The primary problem is, What is the type of 'f'? applyArgument f [arg] = f arg -- NOTE: I changed (arg) to [arg] applyArgument f (arg:args) = applyArgument (f arg) args Looking at the second line, it seems that f is a

Re: [Haskell-cafe] Parsec memory behavior

2006-05-18 Thread Jeremy Shaw
At Thu, 18 May 2006 02:37:56 -0700, Juan Carlos Arevalo Baeza wrote: I'd be worried about the performance you can get from this breadth-first approach. I sort of like the fine-tuning control that the try approach gives in parsec. I'll finish the paper before giving this any more

Re: [Haskell-cafe] Parsec memory behavior

2006-05-17 Thread Jeremy Shaw
At Wed, 17 May 2006 11:36:00 -0700, Juan Carlos Arevalo Baeza wrote: Is there any known alternative that doesn't exhibit this behavior? It would have to somehow return errors inline or on a side channel. I'll be toying with this sort of thing for a while. You might try reading, Polish

Re: [Haskell-cafe] develop new Haskell shell?

2006-05-11 Thread Jeremy Shaw
At Thu, 11 May 2006 23:05:14 +0100, Brian Hulley wrote: Of course the above could no doubt be improved but surely it is already far easier to understand and much more powerful than the idiosyncratic text based approach used in UNIX shells (including rc). The idea of representing unix pipes

Re: Unregisterised GHC 6.4.2 on the ARM success -- now what?

2006-05-09 Thread Jeremy Shaw
Update Summary -- The testsuite indicates that the first-pass ghc arm build is in pretty good shape -- I think it now does everything that can be expected without porting the rts, etc. I have uploaded a tarball for anyone who wants to try it:

Re: Unregisterised GHC 6.4.2 on the ARM success -- now what?

2006-05-04 Thread Jeremy Shaw
At Wed, 03 May 2006 22:06:05 -0700, Jeremy Shaw wrote: Hello, I believe I have successfully got an unregisterised version of ghc 6.4.2 compiled for arm/linux. Updates: --- 1) I turns out I only had a in-place build of ghc, I have now got a real build 'working'. 2) I have started

Unregisterised GHC 6.4.2 on the ARM success -- now what?

2006-05-03 Thread Jeremy Shaw
Hello, I believe I have successfully got an unregisterised version of ghc 6.4.2 compiled for arm/linux. Details: --- I only had to do a minor bit of hacking -- this bug contains the details of what went wrong: http://hackage.haskell.org/trac/ghc/ticket/762 My target platform is the nokia

Re: [Haskell] Ignoring input

2006-04-09 Thread Jeremy Shaw
://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-List.html You probably want to attack it as two steps: (1) remove unwanted characters (2) convert to lower case Jeremy Shaw. ps. Remember that String is just an alias for [Char] in haskell. At Sun, 9 Apr 2006 16:59:19 -0700 (PDT), UnfitElf

Re: [Haskell-cafe] Numerical methods in Haskell

2006-02-10 Thread Jeremy Shaw
-| roundHint == RoundOneHalf (lastIsEven d) = (Decimal s (coef + 1) exp) +| roundHint == RoundOneHalf (lastIsEven d) = (Decimal s (coef + 1) exp) -- FIXME: this may be wrong, see pep327 Jeremy Shaw At Fri, 10 Feb 2006 14:09:23 -0500, Rob Tougher wrote: I'm currently working on a mathematics

Re: [Haskell-cafe] binary IO

2005-12-26 Thread Jeremy Shaw
On Dec 26, 2005 10:20 PM, Brian McQueen [EMAIL PROTECTED] wrote: How is this different from the (un)pickle process that has been discussed here recently? There is one important difference in my mind. Most of the pickling code is concerned with turning haskell data into a binary stream that

Re: [Haskell-cafe] Arrows and pickler combinators

2005-12-22 Thread Jeremy Shaw
At Thu, 22 Dec 2005 11:26:51 +, Joel Reymont wrote: Folks, I'm trying to monadify the pickler code. sequ below positively looks like = but you can't really join both pickle and unpickle into a single monad. I would like to keep the ops together, though, as this allows me a

Re: [Haskell-cafe] Can't Haskell catch up with Clean's uniqueness typing?

2005-12-08 Thread Jeremy Shaw
performance gains associated with it -- and they have to do it without the help of the type-checker. Having written a bit of clean code, I can say that it is very easy to accidently un-uniquify things. Jeremy Shaw. ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell] [ANNOUNCE] yhc - York Haskell Compiler

2005-11-10 Thread Jeremy Shaw
At Fri, 11 Nov 2005 01:11:17 +, Thomas Davie wrote: Announcing the York Haskell Compiler - a Haskell 98 compiler with roots in nhc98. It's not totally finished, but is getting there quickly, and could well be of interest to Haskell developers. Is there some trick to getting it to build ?

FunPtr callbacks broken?

2005-10-20 Thread Jeremy Shaw
Thanks! Jeremy Shaw. ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: FunPtr callbacks broken?

2005-10-20 Thread Jeremy Shaw
it. Thanks! Jeremy Shaw. ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

[Haskell-cafe] Announce: Decimal arithmetic library (questions inside)

2005-10-17 Thread Jeremy Shaw
everything later. Thanks! Jeremy Shaw. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] CGI module almost useless

2005-06-01 Thread Jeremy Shaw
Hello, I have done all of those things in WASH. But, don't let that stop you from writing something better :) I think some people started a project to write a CGI interface based on a 'Category' -- where a 'Category' is like an 'Arrow' without the 'pure/arr' function... Jeremy Shaw. At Wed, 1

Re: [Haskell-cafe] Where do you use Haskell?

2005-05-03 Thread Jeremy Shaw
... I hope this makes some sense (and I hope what I have said is reasonably correct...) Jeremy Shaw. On May 02, 2005 09:38 PM, Daniel Carrera [EMAIL PROTECTED] wrote: Hi all, Again, I'm the new guy slowly learning this fuctional programming thing. :-) I've been reading, and I'm really liking

Re: [Haskell-cafe] YAWQ (Yet Another Wash Question)

2005-02-24 Thread Jeremy Shaw
I am making a wild guess because I do not have all the information in front of me right now but would this work ? ... do x - if cond then textInputField ... else return () note the addition of 'return' to the else clause ? Jeremy Shaw. On Feb 24, 2005 08:42 AM

[Haskell-cafe] Is it possible to print out types of instances in scope

2005-01-16 Thread Jeremy Shaw
~ It could never be done ~ It could be done, but it would be a really horrible idea, and here's why So don't hold back :) Thanks! Jeremy Shaw. [1] I suppose by 'currently in scope' I mean all the instances that type checker is considering when it type checks the function at compile time. But I am

Re: [Haskell-cafe] Is it possible to print out types of instances in scope

2005-01-16 Thread Jeremy Shaw
At Sun, 16 Jan 2005 12:09:43 +0100, Lemmih wrote: On Sun, 16 Jan 2005 00:13:08 -0800, Jeremy Shaw [EMAIL PROTECTED] wrote: Hello, Is it possible to write a function that would display all the instances of a class currently in scope[1]? For example, for 'Show a' it should output

Re: [Haskell-cafe] Seeking comments on this IO proposal

2004-12-17 Thread Jeremy Shaw
At Fri, 17 Dec 2004 10:48:34 -0600, John Goerzen wrote: First, if someone were to make a working, useful package out of this, is it likely that it would become the standard (whatever that means) IO system in Haskell anytime in the near future? I ask because I don't want to put a lot of time

<    1   2   3   4   5   >