Re: [Haskell-cafe] Out of memory if compiled with -O2, why?

2010-12-01 Thread Jason Dagit
On Wed, Dec 1, 2010 at 6:23 AM, Dmitry Kulagin dmitry.kula...@gmail.comwrote: Hi, I have problems with memory leaks and can't find out how to avoid them. I tried to reduce sample to demonstrate the following problems: 1) when compiled without -O2 option, it iconsumes 1582MB (!) total memory

Re: [Haskell-cafe] Conditional compilation for different versions of GHC?

2010-11-30 Thread Jason Dagit
On Sat, Nov 27, 2010 at 9:59 AM, Jinjing Wang nfjinj...@gmail.com wrote: Thanks Michael, So the user should use `cabal install --flags -ghc7 package-name` to install the package, if I'm not mistaken? Will it work if the package is installed as a dependency? Will the flag environment be

[Haskell-cafe] Re: [Haskell] ANNOUNCE: The Fibon benchmark suite (v0.2.0)

2010-11-09 Thread Jason Dagit
On Tue, Nov 9, 2010 at 1:24 PM, David Peixotto d...@rice.edu wrote: I'm pleased to announce the release of the Fibon benchmark tools and suite. Fibon is a set of tools for running and analyzing benchmark programs in Haskell. Most importantly, it includes an optional set of benchmark programs

[Haskell-cafe] Re: [Haskell] ANNOUNCE: The Fibon benchmark suite (v0.2.0)

2010-11-09 Thread Jason Dagit
On Tue, Nov 9, 2010 at 5:47 PM, David Peixotto d...@rice.edu wrote: On Nov 9, 2010, at 3:45 PM, Jason Dagit wrote: I have a few questions: * What differentiates fibon from criterion? I see both use the statistics package. I think the two packages have different benchmarking targets

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-14 Thread Jason Dagit
On Wed, Oct 13, 2010 at 10:43 PM, Conrad Parker con...@metadecks.orgwrote: On 14 October 2010 14:00, Michael Snoyman mich...@snoyman.com wrote: As a side point, I'm wondering how I should let everyone know about the new features on the site. Emailing the cafe each time would be stupid (and

Re: [Haskell-cafe] Thunks

2010-10-14 Thread Jason Dagit
On Thu, Oct 14, 2010 at 1:53 PM, Mihai Maruseac mihai.marus...@gmail.comwrote: Hi, Is there a way to determine the order in which thunks are created and expanded/evaluated in Haskell (GHC)? I'm looking mainly at some existing interface but if there is only something in the GHC source it

Re: [Haskell-cafe] Thunks

2010-10-14 Thread Jason Dagit
On Thu, Oct 14, 2010 at 2:52 PM, Evan Laforge qdun...@gmail.com wrote: I don't know of any way to examine this for a running program. You can get GHC to spit out core and STG using -ddump-core and -ddump-stg flags: There's no -ddump-core flag. I was puzzled about the proper way to get

Re: [Haskell-cafe] Re: Re: Make your Darcs repositories hashed?

2010-10-13 Thread Jason Dagit
On Tue, Oct 12, 2010 at 4:41 PM, Ben Franksen ben.frank...@online.dewrote: Jason Dagit wrote: On Tue, Oct 12, 2010 at 2:02 PM, Ben Franksen ben.frank...@online.dewrote: One minor but important note: the hashed format is *not* readable with a darcs-1 program: Sorry about

Re: [Haskell-cafe] Re: Re: Re: Make your Darcs repositories hashed?

2010-10-13 Thread Jason Dagit
On Wed, Oct 13, 2010 at 11:56 AM, Ben Franksen ben.frank...@online.dewrote: As for your path, I'm reasonably confident that if you put your local darcs at the front of your path then you're good to go. I know that works for local push, what I'm wondering about is push over ssh. Works

Re: [Haskell-cafe] Re: Make your Darcs repositories hashed?

2010-10-12 Thread Jason Dagit
On Tue, Oct 12, 2010 at 2:02 PM, Ben Franksen ben.frank...@online.dewrote: One minor but important note: the hashed format is *not* readable with a darcs-1 program: Sorry about that. The support for hashed repos existed long before 2.0 was released and so I misremembered the hashed support

Re: [Haskell-cafe] Make your Darcs repositories hashed?

2010-10-09 Thread Jason Dagit
On Sat, Oct 9, 2010 at 3:06 PM, Brandon S Allbery KF8NH allb...@ece.cmu.edu wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/9/10 08:30 , Christopher Done wrote: Every Darcs repository I've pulled this year has always showed me this message:

Re: [Haskell-cafe] Make your Darcs repositories hashed?

2010-10-09 Thread Jason Dagit
On Sat, Oct 9, 2010 at 8:52 PM, Brent Yorgey byor...@seas.upenn.edu wrote: On Sat, Oct 09, 2010 at 03:43:42PM -0700, Jason Dagit wrote: The Haskell.org server doesn't have to be upgraded. Maintainers can install a newer darcs locally (cabal install darcs), do the upgrade locally

Re: [Haskell-cafe] Make your Darcs repositories hashed?

2010-10-09 Thread Jason Dagit
On Sat, Oct 9, 2010 at 8:52 PM, Brent Yorgey byor...@seas.upenn.edu wrote: On Sat, Oct 09, 2010 at 03:43:42PM -0700, Jason Dagit wrote: The Haskell.org server doesn't have to be upgraded. Maintainers can install a newer darcs locally (cabal install darcs), do the upgrade locally

Re: [Haskell-cafe] Bulletproof resource management

2010-10-08 Thread Jason Dagit
On Fri, Oct 8, 2010 at 9:39 AM, Florian Weimer f...@deneb.enyo.de wrote: At least in my experience, in order to get proper resource management for things like file or database handles, you need both a close operation and a finalizer registered with the garbage collector.  The former is needed

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-07 Thread Jason Dagit
On Wed, Oct 6, 2010 at 2:11 AM, Michael Snoyman mich...@snoyman.com wrote: Hi all, After finally getting OpenID 2 support worked out, I've now put up the Haskellers.com website[1]. Not all features are implemented yet, but the basics are in. One of the most important features is going to be

Re: [Haskell-cafe] Notes from Haskell takes over the world BoF at ICFP

2010-10-06 Thread Jason Dagit
At the risk of starting a darcs vs. git discussion I have some thoughts about the tension. On Wed, Oct 6, 2010 at 12:10 PM, Don Stewart d...@galois.com wrote: [snip] == GHC ==  * ghc status        + 50% split in room on moving ghc from darcs to git. I don't see that tension resolving itself

[Haskell-cafe] Re: darcs vs. git

2010-10-06 Thread Jason Dagit
On Wed, Oct 6, 2010 at 7:42 PM, Conrad Parker con...@metadecks.org wrote: (subject changed for easy filtering of flamebait, removed libraries@) On 7 October 2010 10:45, Jason Dagit da...@codersbase.com wrote: At the risk of starting a darcs vs. git discussion I have some thoughts about

Re: [Haskell-cafe] When I change the cabal file to say preference: base = 4

2010-09-29 Thread Jason Dagit
On Wed, Sep 29, 2010 at 3:56 PM, cas...@istar.ca wrote: When I change the cabal file to say preference: base = 4 I still get, you are using base 3.0 which is deprecated. When I change the overall cabal profile, the error message still comes up. It seems like some other part of the install

Re: [Haskell-cafe] Re: capture of idioms and patterns

2010-09-23 Thread Jason Dagit
On Wed, Sep 22, 2010 at 11:24 PM, a...@spamcop.net wrote: There is no GoF-like book for Haskell because it's not an idea that needs promoting in printed form.  We just point people to the wiki. I think a book would/could still be beneficial even with the wiki. There are some learners who

Re: [Haskell-cafe] ANNOUNCE: Utrecht Haskell Compiler (UHC), version 1.1.0

2010-09-22 Thread Jason Dagit
Congrats on the release! On Wed, Sep 22, 2010 at 7:30 AM, Atze Dijkstra a...@cs.uu.nl wrote:  * For the default backend libraries are provided until including    package haskell98. I'm having trouble parsing/understanding what you mean. Could you please elaborate? Thanks, Jason

Re: [Haskell-cafe] searching haskell-cafe ?

2010-09-19 Thread Jason Dagit
On Sun, Sep 19, 2010 at 4:01 PM, bri...@aracnet.com wrote: is there a way to search the haskell-cafe list. I found a potential link on the haskell wiki, but the link is busted. Didn't see anything on the haskell-cafe mailing list page. I usually search my gmail haskell-cafe tag. You could

Re: [Haskell-cafe] Haskell/JDK/tail-calls etc. (please vote on bug No. 6804517)

2010-09-19 Thread Jason Dagit
On Sun, Sep 19, 2010 at 5:15 PM, Stephen Sinclair radars...@gmail.com wrote: On Sun, Sep 19, 2010 at 3:51 PM, Karel Gardas karel.gar...@centrum.cz wrote: Hello, from time to time request for Haskell running on top of Java's VM pops on the haskell related mailing list and then usually dies

Re: [Haskell-cafe] ANN: ieee version 0.7

2010-09-19 Thread Jason Dagit
On Sun, Sep 19, 2010 at 6:49 PM, Patrick Perry patpe...@gmail.com wrote: ieee is a Haskell library for dealing with IEEE floating numbers.  It was originally written to make testing with floating point values less painful.  The library provides an approximate equality type class, AEq, with

Re: [Haskell-cafe] Unified Haskell login

2010-09-17 Thread Jason Dagit
On Thu, Sep 16, 2010 at 11:47 PM, Michael Snoyman mich...@snoyman.com wrote: Hi cafe, Let me preface this by stating that this is purposely a half-baked idea, a straw man if you will. I'd like to hear what the community thinks about this. I mentioned yesterday that I was planning on

Re: [Haskell-cafe] Re: Curious why quot; cabal upgrade parsecquot; not installing latest version

2010-09-16 Thread Jason Dagit
On Thu, Sep 16, 2010 at 4:48 AM, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: Jason Dagit dagit at codersbase.com writes: preference: base = 4, parsec = 3 I am trying this, but ... Warning: Error parsing config file /home/waldmann/.cabal/config:14: Parse of field 'preference

Re: [Haskell-cafe] Curious why cabal upgrade parsec not installing latest version

2010-09-15 Thread Jason Dagit
On Wed, Sep 15, 2010 at 7:47 PM, Peter Schmitz ps.hask...@gmail.com wrote: Not that I'm having any problem with parsec 2.1.0.1, but I guess I would like to install the latest (3.1.0), unless there is a reason not to. I can't seem to get Cabal to do so; thanks in advance for any help. I

Re: [Haskell-cafe] copy of boost graph library

2010-09-14 Thread Jason Dagit
On Tue, Sep 14, 2010 at 2:12 PM, Thomas Bereknyei tombe...@gmail.com wrote:  --TODO: Visitors? DFF searches I don't feel qualified to comment on much in your email, but this todo gave me pause: http://www.mail-archive.com/haskell-cafe@haskell.org/msg60468.html I think you might have a

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-14 Thread Jason Dagit
On Tue, Sep 14, 2010 at 5:50 PM, David Terei dave.te...@gmail.com wrote: On 13 September 2010 20:41, Vo Minh Thu not...@gmail.com wrote: ... the post is from 2008. No LLVM goodness. So I thought GHC 6.12.1 (not the latest and greatest HEAD) would be enough. I compiled the two programs myself

Re: [Haskell-cafe] Cost: (:) vs head

2010-09-11 Thread Jason Dagit
On Sat, Sep 11, 2010 at 7:10 AM, michael rice nowg...@yahoo.com wrote: Hi Baz, That's quite an analysis, one I'll keep for future reference. So, my original coding was the fastest. Guess I should stop second guessing myself. ;-) I think Bas's point was actually that you should second

Re: [Haskell-cafe] A new cabal odissey: cabal-1.8 breaking its own neck by updating its dependencies

2010-09-11 Thread Jason Dagit
On Sat, Sep 11, 2010 at 11:56 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: - is there a specification of which are the core packages? Are there packages on which the community standardizes?  That's the goal of Haskell-Platform [1], but I don't place any special value in a package

Re: [Haskell-cafe] Proposal: Form a haskell.org committee

2010-09-05 Thread Jason Dagit
On Sun, Sep 5, 2010 at 3:40 PM, Ian Lynagh ig...@earth.li wrote: Dear Haskellers, In recent years, haskell.org has started to receive assets, e.g. money from Google Summer Of Code, donations for Hackathons, and a Sparc machine for use in GHC development. We have also started spending this

Re: [Haskell-cafe] help me evangelize haskell.

2010-09-04 Thread Jason Dagit
On Sat, Sep 4, 2010 at 5:53 PM, Michael Litchard mich...@schmong.org wrote: I will be going into a situation where there are tasks that have yet to be automated, so I will be going after that before re-writing anything. But if I can come up with here's why, there will be less eyebrows raised.

Re: [Haskell-cafe] HDBC-postgresql and safe/unsafe FFI calls

2010-09-01 Thread Jason Dagit
On Wed, Sep 1, 2010 at 7:40 PM, David Powell da...@drp.id.au wrote: Greetings, I'm having an issue with the HDBC-postgresql package that requires me to manually patch it before installation for most of my use cases. All the FFI calls in this package are marked unsafe.  Unfortunately, this

Re: [Haskell-cafe] HDBC-postgresql and safe/unsafe FFI calls

2010-09-01 Thread Jason Dagit
On Wed, Sep 1, 2010 at 10:00 PM, David Powell da...@drp.id.au wrote: Thanks Jason, I think I had read that - I quite enjoy Edward's posts. Re-reading, seems to confirm what I thought, most (all?) of the FFI calls in HDBC-postgresql should be changed to safe. Yes I think so. Unless you know

Re: [Haskell-cafe] ANNOUNCE: iteratee-compress 0.1

2010-08-31 Thread Jason Dagit
On Tue, Aug 31, 2010 at 6:51 AM, Maciej Piechotka uzytkown...@gmail.com wrote: Iteratee-compress provides compressing and decompressing enumerators. Currently only gzip is provided but at least bzip is planned. Additionally more fine-control over stream (i.e. flushing) is planned.

Re: [Haskell-cafe] Projects that could use student contributions?

2010-08-31 Thread Jason Dagit
On Tue, Aug 31, 2010 at 1:52 PM, Brent Yorgey byor...@seas.upenn.edu wrote: Hi all, This fall I'll be teaching a half-credit introduction to Haskell to some undergrads.  As a final project I am thinking of giving them the option of (instead of developing some program/project of their own)

Re: [Haskell-cafe] Warning: Module `Prelude' is deprecated:

2010-08-26 Thread Jason Dagit
On Thu, Aug 26, 2010 at 6:45 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 27 August 2010 11:42, Mathew de Detrich dete...@gmail.com wrote: As said, this is an issue with the package maintainer who explicitly used base 3.0 as a dependancy Or they have no upper bound on the

Re: [Haskell-cafe] Re: Fwd: Semantics of iteratees, enumerators, enumeratees?

2010-08-24 Thread Jason Dagit
On Tue, Aug 24, 2010 at 12:49 AM, Heinrich Apfelmus apfel...@quantentunnel.de wrote: Jason Dagit wrote: From a purely practical viewpoint I feel that treating the chunking as an abstraction leak might be missing the point. If you said, you wanted the semantics to acknowledge the chunking

Re: [Haskell-cafe] ANNOUNCE: ipatch, the interactive patch editor

2010-08-23 Thread Jason Dagit
On Mon, Aug 23, 2010 at 1:32 PM, Joachim Breitner m...@joachim-breitner.dewrote: $ ipatch split --help Usage: darcs split [OPTION]... PATCHFILE Darcs? $ ./dist/build/ipatch/ipatch apply --help Usage: darcs apply [OPTION]... PATCHFILE Darcs? I assume those are typos left over from

Re: [Haskell-cafe] Re: Fwd: Semantics of iteratees, enumerators, enumeratees?

2010-08-23 Thread Jason Dagit
I'm not a semanticist, so I apologize right now if I say something stupid or incorrect. On Mon, Aug 23, 2010 at 9:57 PM, Conal Elliott co...@conal.net wrote: So perhaps this could be a reasonable semantics? Iteratee a = [Char] - Maybe (a, [Char]) I've been tinkering with this model as

Re: [Haskell-cafe] Re: Fwd: Semantics of iteratees, enumerators, enumeratees?

2010-08-23 Thread Jason Dagit
On Mon, Aug 23, 2010 at 10:37 PM, Conrad Parker con...@metadecks.orgwrote: On 24 August 2010 14:14, Jason Dagit da...@codersbase.com wrote: I'm not a semanticist, so I apologize right now if I say something stupid or incorrect. On Mon, Aug 23, 2010 at 9:57 PM, Conal Elliott co

Re: [Haskell-cafe] Re: cabal-install profiling libraries

2010-08-20 Thread Jason Dagit
On Fri, Aug 20, 2010 at 7:14 AM, Johan Tibell johan.tib...@gmail.comwrote: On Fri, Aug 20, 2010 at 4:07 PM, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: Of course I understand lack of developer time. Could any of this be forked out as student projects? These kind of projects are

Re: [Haskell-cafe] ANNOUNCE: enumerator, an alternative iteratee package

2010-08-19 Thread Jason Dagit
Hi John, Thanks for creating a competitor to the iteratee library. I think iteratees are an important abstraction, but there are some things about the iteratee library that I'm not fond of, despite John Lato doing a great job. I think having a bit of healthy competition to explore the design

Re: [Haskell-cafe] Maintainer wanted for pappy

2010-08-19 Thread Jason Dagit
On Wed, Aug 18, 2010 at 1:58 AM, Christopher Done chrisd...@googlemail.comwrote: On 18 August 2010 01:30, John Meacham j...@repetae.net wrote: On Tue, Aug 17, 2010 at 10:38:53PM +0200, Christopher Done wrote: 2. Not really interested in maintaining, but in a good state and probably worth

Re: [Haskell-cafe] Having a connection between kind * and kind * - *

2010-08-19 Thread Jason Dagit
On Thu, Aug 19, 2010 at 6:26 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: I'm trying to update container-classes to duplicate the pre-existing classes defined in the Prelude (Functor, etc.) and am trying to get my approach on how to have functions/classes that work on types of

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-19 Thread Jason Dagit
On Thu, Aug 19, 2010 at 8:05 PM, Michael Litchard mich...@schmong.orgwrote: I'd like the community to give me feedback on the difficulty level of implementing an awk interpreter. What language features would be required? Specifically I'm hoping that TH is not necessary because I'm nowhere

Re: [Haskell-cafe] Question about memory usage

2010-08-16 Thread Jason Dagit
On Mon, Aug 16, 2010 at 9:00 AM, Sebastian Fischer s...@informatik.uni-kiel.de wrote: [CC-ing café again] On Aug 16, 2010, at 5:52 PM, Daniel Fischer wrote: I am a bit concerned about the memory usage. Of your implementation of the matrix power algorithm? Yes. Making the fields

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-13 Thread Jason Dagit
On Fri, Aug 13, 2010 at 4:03 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Kevin Jardine kevinjard...@gmail.com writes: Hi Don, With respect, I disagree with that approach. Almost every modern programming language has one or at most two standard representations for

Re: [Haskell-cafe] Re: A GHC error message puzzle

2010-08-12 Thread Jason Dagit
On Thu, Aug 12, 2010 at 1:25 PM, Wei Hu wei@gmail.com wrote: Anyone care to explain why? I also tested a slightly changed program pasted below, and am very confused. main = do -- This call doesn't terminate, why? print $ nonTermination a -- Comment the above line to test the

Re: [Haskell-cafe] [ANNOUNCE] (and request for review): directory-tree v0.9.0

2010-08-10 Thread Jason Dagit
On Mon, Aug 9, 2010 at 10:48 PM, Brandon Simmons brandon.m.simm...@gmail.com wrote: Greetings Haskellers! directory-tree is a module providing a directory-tree-like datatype along with Foldable and Traversable instances, along with a simple, high-level IO interface. You can see the package

Re: [Haskell-cafe] [ANNOUNCE] (and request for review): directory-tree v0.9.0

2010-08-10 Thread Jason Dagit
On Tue, Aug 10, 2010 at 5:54 PM, Brandon Simmons brandon.m.simm...@gmail.com wrote: On Tue, Aug 10, 2010 at 4:34 PM, Jason Dagit da...@codersbase.com wrote: On Mon, Aug 9, 2010 at 10:48 PM, Brandon Simmons brandon.m.simm...@gmail.com wrote: Greetings Haskellers! directory-tree

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

2010-08-04 Thread Jason Dagit
On Wed, Aug 4, 2010 at 3:37 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Marc Weber marco-owe...@gmx.de writes: Hi Qi, have a look at brainfuck language. Its turing complete as Python, Haskell, etc are. Then you'll learn that the quesntion Can I do everything possible

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-02 Thread Jason Dagit
On Sun, Aug 1, 2010 at 11:44 AM, aditya siram aditya.si...@gmail.comwrote: Why are the Takusen module links on Hackage dead? I would also like to take this opportunity to request a Takusen tutorial and to thank you for this innovative library.

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-02 Thread Jason Dagit
On Mon, Aug 2, 2010 at 5:48 AM, Yitzchak Gale g...@sefer.org wrote: Jason Dagit wrote: There you go for a starter tutorial. Thanks Jason, that's a great start. It already goes a long way towards making Takusen more accessible. I noticed that QuickCheck is still a dependency. That's

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-01 Thread Jason Dagit
On Sun, Aug 1, 2010 at 9:10 AM, David Anderson d...@natulte.net wrote: Congrats on the release. Just one humble suggestion: your email assumes that the reader already knows what Takusen is. Reading the email, all I can infer is that it has something to do with databases, because of the ODBC

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-01 Thread Jason Dagit
Using the generous resources of community.haskell.org I've created a mailing list for takusen discussions. I encourage interested parties to join that list and maybe move the takusen design discussion there: http://projects.haskell.org/cgi-bin/mailman/listinfo/takusen I've added the list in

[Haskell-cafe] Re: ANNOUNCE: Takusen 0.8.6

2010-08-01 Thread Jason Dagit
On Sat, Jul 31, 2010 at 11:10 AM, Jason Dagit da...@codersbase.com wrote: = Interested in Takusen development? = Takusen is looking for a new long term maintainer. I have agreed to fill the role of maintainer for now, but we are seeking an enthusiastic individual with spare time

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-01 Thread Jason Dagit
On Sun, Aug 1, 2010 at 5:11 PM, Felipe Lessa felipe.le...@gmail.com wrote: On Sun, Aug 1, 2010 at 6:58 PM, Jason Dagit da...@codersbase.com wrote: This same issues comes up fairly often on the darcs-users mailing list. My understanding of the way things are handled

[Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-07-31 Thread Jason Dagit
the reference). Should fix bind errors found by Jason Dagit. * Database/ODBC/Enumerator.lhs: Oracle only supports two transaction isolation levels (like Postgres). String output bind parameters have max size 8000 (we use 7999 because module OdbcFunctions adds one to the size

Re: [Haskell-cafe] Can we come out of a monad?

2010-07-30 Thread Jason Dagit
On Thu, Jul 29, 2010 at 11:48 PM, Lyndon Maydwell maydw...@gmail.comwrote: You cannot break out of a monad if all you have available to use are the monad typeclass functions, however there is nothing preventing an instance from being created that allows escape. Many of these escape methods

Re: [Haskell-cafe] Can we come out of a monad?

2010-07-30 Thread Jason Dagit
On Fri, Jul 30, 2010 at 12:29 AM, Stefan Holdermans ste...@vectorfabrics.com wrote: Jason, There is one case where you can break out of a monad without knowing which monad it is. Well, kind of. It's cheating in a way because it does force the use of the Identity monad. Even if it's

Re: [Haskell-cafe] data.binary get reading beyond end of input bytestring?

2010-07-29 Thread Jason Dagit
On Thu, Jul 29, 2010 at 6:15 AM, Duncan Coutts duncan.cou...@googlemail.com wrote: No idea what WrappedByteString is. WrappedByteString is a newtype wrapper around ByteString that has a phantom type. This allows instances of to be written such that ByteString can be used with the iteratee

Re: [Haskell-cafe] data.binary get reading beyond end of input bytestring?

2010-07-29 Thread Jason Dagit
On Thu, Jul 29, 2010 at 10:35 AM, Jason Dagit da...@codersbase.com wrote: On Thu, Jul 29, 2010 at 6:15 AM, Duncan Coutts duncan.cou...@googlemail.com wrote: No idea what WrappedByteString is. WrappedByteString is a newtype wrapper around ByteString that has a phantom type

Re: [Haskell-cafe] An experimental Zipper using Thrists and first-class Labels. Help or thoughts?

2010-07-27 Thread Jason Dagit
On Mon, Jul 26, 2010 at 10:59 PM, Jason Dagit da...@codersbase.com wrote: ($) is application, but in the space of functions it is identity. So, if you think the elements in your thrist as being values in the space of functions, you're asking for a right fold that is like, v1 `id` (v2 `id

Re: [Haskell-cafe] Techniques for ensuring parser correctness?

2010-07-26 Thread Jason Dagit
On Mon, Jul 26, 2010 at 12:03 AM, S. Doaitse Swierstra doai...@swierstra.net wrote: On 26 jul 2010, at 03:51, Jason Dagit wrote: Hello, I find that parser correctness is often hard to verify. Therefore, I'm interested in techniques that others have used successfully, especially

Re: [Haskell-cafe] Techniques for ensuring parser correctness?

2010-07-26 Thread Jason Dagit
On Mon, Jul 26, 2010 at 4:14 AM, S. Doaitse Swierstra doai...@swierstra.net wrote: I took a quick look at this file. To me it seems a mixture of a lexer and a parser built on top of a home brewn parser library. I see function like maybeWork which (if I interpret correctly) test whether

Re: [Haskell-cafe] 1st attempt at concurrency

2010-07-26 Thread Jason Dagit
2010/7/26 Günther Schmidt gue.schm...@web.de Dear Felipe, thank you for the code and for the correction :). As usual I come across interesting stuff when I have no immediate need for it and when I do I can't find it anymore. I am looking for something slightly more abstracted and iirc

Re: [Haskell-cafe] An experimental Zipper using Thrists and first-class Labels. Help or thoughts?

2010-07-26 Thread Jason Dagit
On Mon, Jul 26, 2010 at 9:00 PM, Brandon Simmons brandon.m.simm...@gmail.com wrote: I had the idea for a simple generic Zipper data structure that I thought would be possible to implement using type-threaded lists provided by Gabor Greif's thrist package:

[Haskell-cafe] Techniques for ensuring parser correctness?

2010-07-25 Thread Jason Dagit
Hello, I find that parser correctness is often hard to verify. Therefore, I'm interested in techniques that others have used successfully, especially with Haskell. Techniques I'm aware of: * Round trip checks: Generate a datastructure, render as a string, parse back, and compare. Quickcheck

Re: [Haskell-cafe] Hackage survey

2010-07-16 Thread Jason Dagit
On Fri, Jul 16, 2010 at 5:51 AM, Sylvain Le Gall sylv...@le-gall.netwrote: Hello dear haskellers, I am working on OASIS-DB, a tool similar to Hackage and would like to have more information on how Haskellers use Hackage. I have setup a small poll (10 questions only) with the help of John

Re: [Haskell-cafe] Handling absent maintainers

2010-07-15 Thread Jason Dagit
On Thu, Jul 15, 2010 at 5:54 PM, Mark Wotton mwot...@gmail.com wrote: Hello all, I've recently had problems with haskell-src-meta. While it's a great package, it doesn't currently compile on GHC 6.12, and Matt Morrow doesn't seem to be around to push the version that does to Hackage. Our

Re: [Haskell-cafe] library for objective-j?

2010-07-13 Thread Jason Dagit
2010/7/13 Günther Schmidt gue.schm...@web.de Hi all, is there a haskell library for generating Objective-J? http://www.google.co.uk/search?hl=enas_sitesearch=hackage.haskell.org/packageas_q=object-j Hackage upload or it didn't happen! Jason ___

Re: [Haskell-cafe] library for objective-j?

2010-07-13 Thread Jason Dagit
2010/7/13 Günther Schmidt gue.schm...@web.de Jason dearest, http://hoc.sourceforge.net/ did happen but isn't on hackage, http://code.google.com/p/hoc/issues/detail?id=26#c0 WASH did happen but isn't on hackage ... http://hackage.haskell.org/package/WashNGo

Re: [Haskell-cafe] darcs 2.5 beta 1 release

2010-07-11 Thread Jason Dagit
On Sun, Jul 11, 2010 at 5:51 AM, Reinier Lamers tux_roc...@reinier.dewrote: Hi all, The darcs team would like to announce the immediate availability of darcs 2.5 beta 1. Important changes since darcs 2.4.4 are: * trackdown can now do binary search with the --bisect option * darcs

Re: [Haskell-cafe] building ghc-6.12.3 from source on Open Solaris

2010-07-10 Thread Jason Dagit
2010/7/10 Günther Schmidt gue.schm...@web.de Hi, does anyone here have experience what it takes to build ghc-6.12.3 from source on Open Solaris, with binary ghc-6.12.1 installed? This isn't specific to Open Solaris, but it's where I would start:

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

2010-07-08 Thread Jason Dagit
On Wed, Jul 7, 2010 at 1:16 PM, Michael Snoyman mich...@snoyman.com wrote: * I wanted the SQLite backend to be the default backend that anyone could use, without library dependencies. It would be nice if HDBC-sqlite3 had an option to build against the sqlite3 amalgamation instead of system

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-08 Thread Jason Dagit
On Thu, Jul 8, 2010 at 6:35 PM, Daniel Cook danielkc...@gmail.com wrote: Hi, Someone has written a large Java library (QuickFIX/J) which speaks a gnarled, ugly protocol (FIX). There don't appear to be any FIX protocol libraries in Hackage. I need my Haskell program to talk to a 3rd-party

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

2010-07-07 Thread Jason Dagit
On Wed, Jul 7, 2010 at 10:44 AM, Christopher Done chrisd...@googlemail.comwrote: I did try Takusen with PostgreSQL and it worked perfectly for me, too. The only reason I'm using HDBC is because there was already a HaskellDB HDBC driver. I was considering writing a Takusen driver for

Re: [Haskell-cafe] Re: Suggestions for an MSc Project?

2010-07-05 Thread Jason Dagit
On Mon, Jul 5, 2010 at 1:39 AM, John Smith volderm...@hotmail.com wrote: None of the frameworks in http://www.haskell.org/haskellwiki/Applications_and_libraries/GUI_libraries#High-levelappear to have a working build in http://hackage.haskell.org/packages/archive/pkg-list.html#cat:gui, except

Re: [Haskell-cafe] Rank2Types and pattern matching

2010-07-03 Thread Jason Dagit
On Sat, Jul 3, 2010 at 4:24 PM, Yves Parès limestr...@gmail.com wrote: Hello everybody, I'm trying to implement the type protection used by ST to prevent a monad from returning a certain type. There's my code: import Control.Monad.Identity newtype SomeMonad s a = SomeMonad { unSome ::

Re: [Haskell-cafe] MState: A consistent State monad for concurrent applications

2010-07-02 Thread Jason Dagit
On Fri, Jul 2, 2010 at 9:21 AM, Nils Schweinsberg m...@n-sch.de wrote: Hi, I have been trying to use the State monad for concurrent applications and came up with a little library.[1] My MState uses an IORef to maintain the state between different threads. The library also offers a simple way

Re: [Haskell-cafe] Type-Level Programming

2010-06-26 Thread Jason Dagit
On Sat, Jun 26, 2010 at 12:07 AM, Andrew Coppin andrewcop...@btinternet.com wrote: wren ng thornton wrote: And, as Jason said, if you're just interested in having the same programming style at both term and type levels, then you should look into dependently typed languages. Out of

Re: [Haskell-cafe] Type-Level Programming

2010-06-26 Thread Jason Dagit
On Sat, Jun 26, 2010 at 12:27 AM, Jason Dagit da...@codersbase.com wrote: On Sat, Jun 26, 2010 at 12:07 AM, Andrew Coppin andrewcop...@btinternet.com wrote: wren ng thornton wrote: And, as Jason said, if you're just interested in having the same programming style at both term and type

Re: [Haskell-cafe] Type-Level Programming

2010-06-26 Thread Jason Dagit
On Sat, Jun 26, 2010 at 11:23 AM, Andrew Coppin andrewcop...@btinternet.com wrote: Brandon S Allbery KF8NH wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/26/10 07:28 , Andrew Coppin wrote: Oh, right. So you mean that as well as being able to say Foo Bar, you can say Foo 7,

Re: [Haskell-cafe] Core packages and locale support

2010-06-25 Thread Jason Dagit
On Thu, Jun 24, 2010 at 11:42 PM, Roman Cheplyaka r...@ro-che.info wrote: * Jason Dagit da...@codersbase.com [2010-06-24 20:52:03-0700] On Sat, Jun 19, 2010 at 1:06 AM, Roman Cheplyaka r...@ro-che.info wrote: While ghc 6.12 finally has proper locale support, core packages

Re: [Haskell-cafe] Type-Level Programming

2010-06-25 Thread Jason Dagit
On Fri, Jun 25, 2010 at 2:26 PM, Walt Rorie-Baety black.m...@gmail.comwrote: I've noticed over the - okay, over the months - that some folks enjoy the puzzle-like qualities of programming in the type system (poor Oleg, he's become #haskell's answer to the Chuck Norris meme commonly encountered

Re: [Haskell-cafe] Core packages and locale support

2010-06-25 Thread Jason Dagit
On Fri, Jun 25, 2010 at 3:15 PM, Brandon S Allbery KF8NH allb...@ece.cmu.edu wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/25/10 17:56 , Roman Cheplyaka wrote: * Brandon S Allbery KF8NH allb...@ece.cmu.edu [2010-06-25 05:00:08-0400] You might want to look at how Python is

Re: [Haskell-cafe] design question: decision tree from Programming Collective Intelligence

2010-06-24 Thread Jason Dagit
On Mon, Jun 21, 2010 at 11:22 AM, Daniel Lyons fus...@storytotell.orgwrote: Hi, I'm having a little trouble figuring out precisely how to port the decision tree code from the book Programming Collective Intelligence. You can see the code here:

Re: [Haskell-cafe] Tiger compiler: variable escaping analysis phase

2010-06-24 Thread Jason Dagit
2010/6/22 José Romildo Malaquias j.romi...@gmail.com Hello. I have been teaching an introductory course on compiler construction to our undergraduates students using Appel's Modern Compiler Implementation in Java. There are also versions of the book in ML and C. The books explain how to

Re: [Haskell-cafe] Core packages and locale support

2010-06-24 Thread Jason Dagit
On Sat, Jun 19, 2010 at 1:06 AM, Roman Cheplyaka r...@ro-che.info wrote: While ghc 6.12 finally has proper locale support, core packages (such as unix) still use withCString and therefore work incorrectly when argument (e.g. file path) is not ASCII. Pardon me if I'm misunderstanding

Re: [Haskell-cafe] Accounting Engine in Haskell

2010-06-23 Thread Jason Dagit
On Wed, Jun 23, 2010 at 2:30 PM, Paul Johnson p...@cogito.org.uk wrote: On 15/06/10 09:08, Amiruddin Nagri wrote: I wanted some insight as to how Haskell is going to help me with my project. Also there has been some concerns because of lazy evaluation in Haskell and memory leaks associated

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-18 Thread Jason Dagit
On Fri, Jun 18, 2010 at 8:50 AM, Roman Beslik ber...@ukr.net wrote: On 18.06.10 07:41, Jason Dagit wrote: On Thu, Jun 17, 2010 at 6:36 AM, Roman Beslik ber...@ukr.net wrote: I mean that a link [[X]] leads to HaskellWiki if X exists in HaskellWiki and to Wikipedia otherwise. I think

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Jason Dagit
On Thu, Jun 17, 2010 at 6:36 AM, Roman Beslik ber...@ukr.net wrote: I mean that a link [[X]] leads to HaskellWiki if X exists in HaskellWiki and to Wikipedia otherwise. Interwiki links requires to change all occurrences of [[X]] when X is created. [[wikipedia:{{PAGENAME}}]] may be handy on

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-16 Thread Jason Dagit
On Wed, Jun 16, 2010 at 11:35 AM, Roman Beslik ber...@ukr.net wrote: Hi all. There are some notions which are not described in HaskellWiki but described in Wikipedia, e.g. catamorphism. When clicking on a link [[catamorphism]] that leads to create a new page it would be nice to show link to a

Re: [Haskell-cafe] Literate programming

2010-06-12 Thread Jason Dagit
On Sat, Jun 12, 2010 at 9:21 AM, Martin Drautzburg martin.drautzb...@web.de wrote: Hello all, Is literate programming something you guys actually do (I only know that Paul Hudak does), or is it basically a nice idea from days gone by? In case you do, then how do you do it? Do you use

Re: [Haskell-cafe] Contacting Planet Haskell

2010-06-10 Thread Jason Dagit
On Thu, Jun 10, 2010 at 3:59 AM, Yitzchak Gale g...@sefer.org wrote: Jason Dagit wrote: I recently tried to send an email to the planet Haskell admins. The webpage says to use pla...@community.haskell.org. The mail was undelivered after several days and the daemon gave up trying

Re: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-10 Thread Jason Dagit
On Thu, Jun 10, 2010 at 8:45 PM, Derek Elkins derek.a.elk...@gmail.comwrote: Or... one could just use the exceptions that are already built into the IO monad... It feels to me like this discussion has a lot of speculation in it. I would like to see concrete examples of the code and the

[Haskell-cafe] Contacting Planet Haskell

2010-06-09 Thread Jason Dagit
Hello, I recently tried to send an email to the planet Haskell admins. The webpage says to use pla...@community.haskell.org. The mail was undelivered after several days and the daemon gave up trying to deliver it. My sending did overlap with the haskell.org downtown but I don't think that

Re: [Haskell-cafe] Re: package naming policy

2010-06-08 Thread Jason Dagit
On Tue, Jun 8, 2010 at 4:13 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Don Stewart d...@galois.com writes: Yes, my intent here is to produce a set of guidelines for maintainers of important packages, that ensures we balance stability with innovation. We have a great

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

2010-06-08 Thread Jason Dagit
On Tue, Jun 8, 2010 at 6:28 PM, John Lato jwl...@gmail.com wrote: From: Stephen Tetley stephen.tet...@gmail.com Hello all While new libraries develop at pace, their documentation rarely does; so I'd have to disagree with John's claim that re-naming libraries makes development by new

<    1   2   3   4   5   6   7   >