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] 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] 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: [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] 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] 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: [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] 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] 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

[Haskell-cafe] how to listen on a specific IP using the network library

2010-03-15 Thread Jeremy Shaw
Hello, I would really like to modify happstack so that you can specific what IP address to listen on. So I think I want a function like: listenOnAddr :: SockAddr - IO Socket The problem is that the user might want to specify IPv4 or IPv6 address. But support for IPv6 is only conditionally

Re: [Haskell-cafe] Happstack basic question

2010-03-15 Thread Jeremy Shaw
Neat! I have been wondering how to do that. It is also useful if you want to run multiple happstack applications on the same machine, but each on a different IP address. It would be awesome if this was wrapped up in a more obvious way. I imagine we would extend the Conf type so that you could

[Haskell-cafe] a poorly thought out suggestion for cabal and packages that have lots of instances

2010-03-15 Thread Jeremy Shaw
Hello, There are a number of libraries like syb-with-class, happstack-data, etc, which provide a new class that potentially has a lot of new instances. For example, let's say I want a 'Data ctx Text' instance. Where should that go? To avoid orphan instances it would need to go in the 'text'

Re: [Haskell-cafe] Why no instance of Happstack.Data.Default.Default for Data.ByteString.Lazy

2010-03-19 Thread Jeremy Shaw
sloppiness probably. If you submit a patch that adds an instance I will apply it. That said, I am not sure it is going to solve your particular problem. simpleHTTP requires something that is an instance of ToMessage. ToMessage is a class that turns values into a Response. It happens that

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Jeremy Shaw
One study suggests that the perceived work environment is too geeky: http://www.msnbc.msn.com/id/34437233/ns/technology_and_science-science/ I also suspect that much Haskell promotion is targeted towards male oriented sites, which does not help things: http://www.quantcast.com/slashdot.org

Re: [Haskell-cafe] which version is in the platform

2010-03-28 Thread Jeremy Shaw
On a related note, I wanted to find out what version of parsec is included in the platform, but that version is not included on this page: http://hackage.haskell.org/platform/contents.html The package links just say 'parsec' and link to the lastest version on hackage. - jeremy On Mon, Mar 22,

[Haskell-cafe] Can everyone please update your code to the latest QuickCheck, Parsec, and HaXml this week? Thanks!

2010-03-28 Thread Jeremy Shaw
Hello, I keep running into issues where I want to use some version of parsec, quickcheck, haxml, etc, in my code, but my code links against a different third party library (e.g. network) which uses a different version of the library (e.g., parsec) than what I want to use, and that makes cabal

[Haskell-cafe] parsec and multiple simultaneous token types

2010-03-28 Thread Jeremy Shaw
Hello, I have some input which is divided up into segments like this: [foo, hi, there, world] And I want to use parsec to parse the segments. I am looking for a way to be able to use Char parsers on each segment, but also parse the list of segments as a whole. I have an implementation which

Re: [Haskell-cafe] Can everyone please update your code to the latest QuickCheck, Parsec, and HaXml this week? Thanks!

2010-03-28 Thread Jeremy Shaw
ivan.miljeno...@gmail.com wrote: Jeremy Shaw jer...@n-heptane.com writes: I keep running into issues where I want to use some version of parsec, quickcheck, haxml, etc, in my code, but my code links against a different third party library (e.g. network) which uses a different version

[Haskell-cafe] new focus for Happstack

2010-04-01 Thread Jeremy Shaw
Hello, I've been thinking a lot recently about the direction and future of the Happstack project. These days we hear a lot about technologies to allow servers to push data, such as Comet, Ajax Push, Reverse Ajax, Two-way-web, HTTP Streaming, and HTTP server push among others. HTML 5 includes

Re: [Haskell-cafe] [OT?] Haskell-inspired functions for BASH

2010-04-01 Thread Jeremy Shaw
How about: http://www.cse.unsw.edu.au/~dons/h4sh.html It brings a lot of familiar Haskell functions to the command-line. And *is* actually written in Haskell ;) - jeremy On Wed, Mar 31, 2010 at 6:05 PM, Patrick LeBoutillier patrick.leboutill...@gmail.com wrote: Hi all, I've been studying

Re: [Haskell-cafe] [OT?] Haskell-inspired functions for BASH

2010-04-01 Thread Jeremy Shaw
(apparently required), and hsplugins won't build with 6.12.1. Bob On 1 Apr 2010, at 15:41, Jeremy Shaw wrote: How about: http://www.cse.unsw.edu.au/~dons/h4sh.html It brings a lot of familiar Haskell functions to the command-line. And *is* actually written in Haskell ;) - jeremy On Wed, Mar

Re: [Haskell-cafe] [OT?] Haskell-inspired functions for BASH

2010-04-01 Thread Jeremy Shaw
On Thu, Apr 1, 2010 at 10:59 AM, Gwern Branwen gwe...@gmail.com wrote: On Thu, Apr 1, 2010 at 11:13 AM, Jeremy Shaw jer...@n-heptane.com wrote: fps is what we now call bytestring. Alas, hsplugins is dead. hsplugins is useful, but needs to be rewritten for modern GHC :( - jeremy I never

Re: [Haskell-cafe] Build problems (hsp, trhsx, ultimately Happstack)

2010-04-26 Thread Jeremy Shaw
Hello, Does trying to install hsp-0.5.1 work any better? - jeremy On Apr 26, 2010, at 12:27 PM, Alexander Solla wrote: On Apr 23, 2010, at 2:59 PM, Thomas Hartman wrote: So, you might need to -- upgrade hsx -- make sure that the upgraded trhsx executable is the one being executed by cabal

Re: [Haskell-cafe] Build problems (hsp, trhsx, ultimately Happstack)

2010-05-01 Thread Jeremy Shaw
Hello, I would recommend: darcs get --lazy http://patch-tag.com/r/mae/happstack cd happstack chmod +x bin/build-install-all.sh ./bin/build-install-all.sh This should install the latest version of happstack from darcs which resolves most install problems. I intend to release it any minute

[Haskell-cafe] ANNOUNCE: happstack 0.5.0

2010-05-03 Thread Jeremy Shaw
(Note: Reply-to is set to haskell-cafe@haskell.org) Hello, I am very pleased to announce Happstack 0.5.0. It should install cleanly from hackage via: cabal install happstack If it does not, please report errors to the happstack mailing list: http://groups.google.com/group/HAppS (You

Re: [Haskell-cafe] ANNOUNCE: happstack 0.5.0

2010-05-03 Thread Jeremy Shaw
On May 3, 2010, at 3:19 PM, Mads Lindstrøm wrote: Hi Pressing documentation-link here http://happstack.com/index.html I still get the 0.4.1 version. Yeah, that is updated now. Made the announcement, before I had really finished everything. Sorry about that. -

[Haskell-cafe] ANNOUNCE: happstack-hamlet: compile-time HTML templates for the Haskell application server stack

2010-05-04 Thread Jeremy Shaw
Hello, I am pleased to announce the availability of happstack-hamlet: http://hackage.haskell.org/package/happstack-hamlet http://patch-tag.com/r/mae/happstack/snapshot/current/content/pretty/happstack-hamlet Happstack is a web application development framework. Hamlet provides HTML templates

Re: [Haskell-cafe] Why cabal forces reinstallation of happstack-utils?

2010-05-04 Thread Jeremy Shaw
Hello, Seems that happstack-util had an artificially low upper bounds. I just uploaded happstack-util 0.5.0.1 which bumps it to parsec 4. Make sure that your version of the 'network' library is compiled against parsec 3, since happstack-server depends on both network and parsec.

Re: [Haskell-cafe] Re: ANNOUNCE: happstack 0.5.0

2010-05-05 Thread Jeremy Shaw
On May 4, 2010, at 11:20 PM, Michael Snoyman wrote: Hey Jeremy, I see below that you included the experimental WAI support. I'm excited to try it out, but I don't see it in happstack-server (maybe I'm blind). Could you point it out? Hello, I should have been more explicit about this,

Re: [Haskell-cafe] Re: ANNOUNCE: happstack 0.5.0

2010-05-05 Thread Jeremy Shaw
On May 5, 2010, at 8:01 AM, Michael Snoyman wrote: alas, there is no happstack-wai specific demo at the moment. But, if there was, it would look a lot like a normal happstack-server app... It wouldn't look like a normal WAI app? If you want something like that, Simon Hengel wrote a nice

[Haskell-cafe] Chicago Haskell Users Group Meeting Tuesday, May 11, 7PM

2010-05-09 Thread Jeremy Shaw
Hello Chicago People! The Chicago Haskell Users Group will be meeting this Tuesday, May 11, at 7PM at The Grafton. Say goodbye to Tom Tobin (our founder), and hello to Haskell world domination! The Grafton is in Lincoln Square next to the Old Town School of Folk Music, close to the Western

Re: [Haskell-cafe] ANNOUNCE: hamlet 0.2.0

2010-05-10 Thread Jeremy Shaw
I updated happstack-hamlet 0.2.1. Just had to update the example, and bump the version bounds. - jeremy On May 8, 2010, at 5:29 PM, Michael Snoyman wrote: Hi all, I'm happy to announce the second major release of Hamlet[1]. Hamlet is a HTML templating library which works via

[Haskell-cafe] ambiguous type variable problem when using forall, multiparameter type classes, and constraints on polymorphic values (and syb-with-class)

2010-05-21 Thread Jeremy Shaw
Hello, I am trying to understand why I am getting an ambigious type variable error, and what I can do to work around it. The problem is occurring while trying to use syb-with-class, but I have stripped it down to it's bare essentials, so the following code is self-contained, and does not require

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

2010-06-01 Thread Jeremy Shaw
A (hopefully) non-cropped version of the chart, http://tinyurl.com/2cl42js ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2010-06-01 Thread Jeremy Shaw
Hello, HSP does not use xhtml or any other library internally. The trhsx pre-processor turns this: bigTable :: [[Int]] - String bigTable t = renderAsHTML $ evalIdentity $ table % mapM (\r - tr% mapM (\d - td% show d %/td) r %/tr) t % /table into: bigTable :: [[Int]] - String {-#

[Haskell-cafe] Data.ByteString.Lazy.hPut and timeouts?

2010-06-02 Thread Jeremy Shaw
Hello, I am using Data.ByteString.Lazy.hPut to write data to a network socket. Is there any portable way to have hPut timeout if no data has been sent after some time period (say 120s?). I know that some OSes provide a per socket timeout that I can set in my application code (instead of

Re: [Haskell-cafe] Issue with connectTo function in network package

2010-06-07 Thread Jeremy Shaw
Perhaps it was only listening on IPv6 ? ::1 ? - jeremy On Thu, Jun 3, 2010 at 10:30 PM, aditya siram aditya.si...@gmail.comwrote: Hi all, I had an issue where using the connectTo [1] function would fail to connect to localhost if my wireless card was turned off. The moment I turned on my

[Haskell-cafe] Re: Rewriting a famous library and using the same name: pros and cons

2010-06-08 Thread Jeremy Shaw
I don't really see this listed on your list, but maybe I missed it. Happstack has been affected by QuickCheck 1 - QuickCheck 2, parsec 2 - 3, and HaXml 1.13 - 1.20. Those packages are common, and people often want to use happstack with other libraries that also use those packages. The problem is

[Haskell-cafe] Re: Rewriting a famous library and using the same name: pros and cons

2010-06-08 Thread Jeremy Shaw
On Tue, Jun 8, 2010 at 7:06 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: I recall having a discussion with either you or someone else from the happstack team about why it isn't applicable there, but the QuickCheck problem can be solved in the general case by having its dependency

Re: [Haskell-cafe] Harder than you'd think

2010-06-13 Thread Jeremy Shaw
Hello, My idea for solving this problem was to try to use something similar to a kd-tree. I have a proof of concept for 2 keys here: http://src.seereason.com/haskell-kdmap/ But, to extend it to an arbitrary number of keys may need template haskell. The basic concept is to build a

Re: [Haskell-cafe] Call for comments: neither package

2010-06-29 Thread Jeremy Shaw
On Jun 29, 2010, at 6:02 AM, Stephen Tetley wrote: Hi Michael Good names are a problem of course. The Applicative Programming with Effects Paper has the monodial accumulating applicative instance on a sum type Conor McBride and Ross Paterson call Except: data Except err a = OK a | Failed err

Re: [Haskell-cafe] can Haskell do everyting as we want?

2010-08-03 Thread Jeremy Shaw
I use Haskell for everything. In fact, I will be approaching my 10 year anniversary of using Haskell as my primary development language soon. The only area I have had any trouble with Haskell is doing realtime music synthesis. And only because the garbage collector is not realtime friendly. That

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: [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] 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] 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: [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: [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: 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] 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

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] 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] 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] 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] 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] 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

[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] 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

Re: [Haskell-cafe] Rendering TTF fonts in Haskell and OpenGL

2008-02-17 Thread Jeremy Shaw
At Mon, 18 Feb 2008 01:26:17 +, Luke Palmer wrote: I have an immature, but precise and picky implementation that renders text in a ttf font to an OpenGL texture (using SDL-ttf) here: http://svn.luqui.org/svn/misc/luke/work/code/haskell/frp/Fregl/Draw.hs (It may have some dependencies in

Re: [Haskell-cafe] Rendering TTF fonts in Haskell and OpenGL

2008-02-27 Thread Jeremy Shaw
At Fri, 22 Feb 2008 15:13:46 -, Claus Reinke wrote: i got the impression that accessing freetype2 via ftgl might make things slightly easier, while also offering more options (geometry instead of texture fonts), or did I misread? http://ftgl.wiki.sourceforge.net/ It appears to be

Re: [Haskell-cafe] IO () and IO [()]

2008-03-10 Thread Jeremy Shaw
At Mon, 10 Mar 2008 22:11:33 +, Paulo J. Matos wrote: I would like to know if in fact there's any difference in practice between (), [()], i.e. if in practice the difference matters. Well, you could do something like this: outputLines :: Int - IO [()] outputLines i = mapM (putStrLn .

Re: [Haskell-cafe] Dynamic typing makes you more productive?

2008-03-18 Thread Jeremy Shaw
At Tue, 18 Mar 2008 09:41:15 -0700, Justin Bailey wrote: From a recent interview[1] with the guy leading Ruby development on .NET at Microsoft: You spend less time writing software than you spend maintaining software. Optimizing for writing software versus maintaining software is

Re: [Haskell-cafe] Shouldn't this loop indefinitely = take (last [0..]) [0..]

2008-04-03 Thread Jeremy Shaw
Hello, Sadly, as others have pointed out, [0..] is not an infinite list in that context, so nothing too exciting is happening. You can making something almost exciting happen if you define some Peano numbers: data P = Z | S P inf = S Z [bunch of class instances skipped] main = print $

Re: [Haskell-cafe] one-way monads

2008-05-20 Thread Jeremy Shaw
Hello, You *can* get things out of the IO monad with: System.IO.Unsafe.unsafePerformIO :: IO a - a but, in almost all cases you shouldn't. The name 'unsafe' is there for a reason :) The IO monad does not explicitly contain any state -- it's entire purpose is to ensure that operations which can

Re: happs install seems to have become very slow since upgrading cabal Re: [Haskell-cafe] test driving cabal install...

2008-05-29 Thread Jeremy Shaw
At Thu, 29 May 2008 19:19:48 -0700, Thomas Hartman wrote: It did finish, but I still feel like this took too long. Facebook does take several minutes to compile and consumes quite a bit of memory while doing it. If you machine does not have atleast 1GB of memory it could be thrashing due to

Re: [Haskell-cafe] Bit streams

2008-06-18 Thread Jeremy Shaw
Malcolm Wallace wrote: The original Binary library, circa 1998, was based on bit-streams rather than bytes. You might be able to dig up a copy and bring it back to life. This derivative (by Hal Daume III) works with GHC 6.8.2 (I haven't tried 6.8.3):

Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)

2008-06-24 Thread Jeremy Shaw
based systems. Jeremy Shaw had ghc targeting the nokia last year, iirc. Perhaps he'll have more info. -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-06-26 Thread Jeremy Shaw
At Tue, 24 Jun 2008 20:43:45 -0400, Braden Shepherdson wrote: I recently acquired the ARM-based Nokia N810 (and 3 it), powered by Maemo. Running a uname -a on it: I might be one to attempt this, as I know C and ARM-ish asm decently well and have a powerful desktop to compile on. I have no

Re: [Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-06-27 Thread Jeremy Shaw
At Fri, 27 Jun 2008 09:57:29 +1000, Jeremy Apthorp wrote: Next year I'll be working on a project for my undergraduate computing course at UNSW that will involve getting GHC to target the Nintendo DS. It'll require cross-compilation, because the DS isn't powerful enough to actually run GHC (4M

Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)

2008-06-29 Thread Jeremy Shaw
Also, I have successfully run hugs on the Nokia N770. j. At Sat, 28 Jun 2008 22:39:00 +0100, Malcolm Wallace wrote: Just a random note. jhc works fine on ARM, Another semi-random note: nhc12 and nhc13 (precursors to nhc98) were originally developed on an ARM with 2Mb of memory, way

[Haskell-cafe] Re: GHC ARM Hackathon (Re: Haskell on ARM )

2008-07-02 Thread Jeremy Shaw
At Wed, 2 Jul 2008 11:16:18 -0700, Greg Fitzgerald wrote: Would anybody be interested in a GHC on ARM Hackathon in San Diego this year? Definitely. (Conveniently, I live in La Jolla). When is 6.10 estimated to come out? Do we really need to wait for it? According to this Release plan, the

Re: [Haskell-cafe] Template Haskell and haskell-src-exts

2008-07-10 Thread Jeremy Shaw
Hello, I am not sure about the full answer to your qusetion, but I do know that template haskell support in haskell-src-exts is currently broken, but supposedly easy to fix. Not sure if that will give you the features you need or not though. From this thread:

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Jeremy Shaw
Sweet! What are the chances of seeing a, instance Data Text, some day? text would be a great type to use with Happstack, because it is far more memory efficient than String. But it is difficult to do that with out a instance of Data. For the time being, I have been hacking it with:

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Jeremy Shaw
, Jeremy Shaw jer...@n-heptane.com wrote: What are the chances of seeing a, instance Data Text, some day? I might as well follow up here, since I've sent Jeremy a couple of messages on this subject. I think maybe someone else will have to take a crack at a Data instance for Text, because

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Jeremy Shaw
oops, for the sake of completeness you also need: textType = mkStringType Data.Text - jeremy On Oct 9, 2009, at 10:33 AM, Jeremy Shaw wrote: Sweet! What are the chances of seeing a, instance Data Text, some day? text would be a great type to use with Happstack, because it is far more

Re: [Haskell-cafe] ** for nested applicative functors?

2009-10-12 Thread Jeremy Shaw
This looks like what is described in Section 4 to me: http://www.haskell.org/haskellwiki/Applicative_functor#Applicative_transfomers - jeremy On Oct 12, 2009, at 11:22 AM, Kim-Ee Yeoh wrote: ** :: (Applicative m, Applicative n) = m (n (a-b)) - m (n a) - m (n b)

Re: [Haskell-cafe] bit of a noob question

2009-10-24 Thread Jeremy Shaw
There are many ways you can do it. Here are two. The first uses the Transform List Comp extensions introduced in 6.10. http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#generalised-list-comprehensions The second uses more normal Haskell. The second version is probably

Re: [Haskell-cafe] Applicative but not Monad

2009-10-30 Thread Jeremy Shaw
Formlets are not Monads. http://www.haskell.org/haskellwiki/Formlets If you tried, you could actually implement a Monad instance for Formlets, but it would lead to very undesirable behavior. Specially, if a field in the form failed to validate, then the rest of the form would not be

Re: [Haskell-cafe] Haskell image libraries

2009-11-08 Thread Jeremy Shaw
There is a partial binding to libgd: http://hackage.haskell.org/packages/archive/gd/3000.4.0/doc/html/Graphics-GD.html http://www.libgd.org/Main_Page But GD itself may not do what you want. - jeremy On Nov 8, 2009, at 8:34 AM, Max Rabkin wrote: Haskellers, To add image support to

[Haskell-cafe] SYB looping very, very mysteriously

2009-12-03 Thread Jeremy Shaw
I have the following program which loops under GHC 6.10.4: http://www.hpaste.org/fastcgi/hpaste.fcgi/view?id=13561#a13561 {-# LANGUAGE DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses, UndecidableInstances #-} module Main where import qualified Data.Data as Data import

Re: [Haskell-cafe] happstack homepage

2009-12-03 Thread Jeremy Shaw
Hello, See this thread, http://groups.google.com/group/happs/browse_thread/thread/6e4d6af0109cc649 - jeremy On Dec 3, 2009, at 9:30 AM, Roel van Dijk wrote: I noticed that happstack.com and tutorial.happstack.com are both equal to patch-tag.com. Google's cache has the original pages. Is

Re: [Haskell-cafe] SYB looping very, very mysteriously

2009-12-04 Thread Jeremy Shaw
I have stripped things down to the bare minimum, and test under GHC 6.10, GHC 6.12, Linux, and Mac OS X. Results are consistent. In the following code, 1. if you load the code into ghci and evaluate e it will hang, but (defaultValueD dict) :: Expression returns fine 2. if you change the

[Haskell-cafe] ANN: Happstack 0.4.1

2009-12-19 Thread Jeremy Shaw
Happstack 0.4.1 STABLE is now available. We recommend that all users of Happstack update to 0.4.1 immediately. Migration from Happstack 0.3 should be trivial. There was one race condition in happstack-state which could cause a state event to fail under heavy congestion. Happstack is the Haskell

Re: [Haskell-cafe] short licensing question

2010-01-11 Thread Jeremy Shaw
What reasons do people have to use a BSD license over a Public Domain license, for example with the license text from: http://www.lemur.com/pd-disclaimers.html ? Is the only difference that, with a BSD license, the copyright notice must be maintained? I've heard rumors that you can't

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Jeremy Shaw
Hello, Happstack is currently bundled with it's own lazy I/O based HTTP backend. Ideally, we would like to split that out, and allow happstack to be used with that backend, hyena, or other options. A primary using for using hyena would be for the benefits of predictability and constant

Re: [Haskell-cafe] Web application interface

2010-01-22 Thread Jeremy Shaw
of a few ways (cache gziped versions to the disk), but was wondering if you'd already come up with a good solution. I'm trying to keep all these things in mind when designing WAI. Thanks, Michael On Thu, Jan 14, 2010 at 5:42 PM, Jeremy Shaw jer...@n-heptane.com wrote: Hello, Happstack

[Haskell-cafe] could we get a Data instance for Data.Text.Text?

2010-01-22 Thread Jeremy Shaw
Hello, Would it be possible to get a Data instance for Data.Text.Text? This would allow us to create a Serialize instance of Text for use with happstack -- which would be extremely useful. We (at seereason) are currently using this patch:

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Jeremy Shaw
On Sat, Jan 23, 2010 at 7:57 AM, Neil Mitchell ndmitch...@gmail.comwrote: No, that's definitely not correct, or even remotely scalable as we increase the number of abstract types in disparate packages. Yes.. happstack is facing another aspect of this scalability issue as well. We have a

Re: [Haskell-cafe] Web application interface

2010-01-23 Thread Jeremy Shaw
On Jan 23, 2010, at 10:52 AM, Michael Snoyman wrote: Jeremy, What I meant is, if you use a sendfile system call to send raw files from the disk, how does this interact with gzip compression, which clearly cannot be used when using a sendfile call? I ask because you implied there were

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-25 Thread Jeremy Shaw
On Sun, Jan 24, 2010 at 5:49 AM, Neil Mitchell ndmitch...@gmail.com wrote: Hi, The problem with Data for Text isn't that we have to write a new instance, but that you could argue that proper handling of Text with Data would not be using a type class, but have special knowledge baked in to

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-26 Thread Jeremy Shaw
2010/1/26 José Pedro Magalhães j...@cs.uu.nl Hi Jeremy, As Neil Mitchell said before, if you really don't want to expose the internals of Text (by just using a derived instance) then you have no other alternative than to use String conversion. If you've been using it already and performance

[Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-26 Thread Jeremy Shaw
? For happstack-data, I think we only need dataTypeOf. The instance I posted before definitely did not have valid toConstr / gunfold instances, so I think we would have noticed if we were actually trying to use them.. - jeremy On Fri, Jan 22, 2010 at 4:24 PM, Jeremy Shaw jer...@n-heptane.com wrote: Hello

  1   2   3   4   >