[Haskell-cafe] Streamed creation of STArray from list?

2010-02-11 Thread Jason Dagit
Hello, I was wondering if there is a trick for generating a new STArray from a list in such a way that you do not have to hold both the list and array in memory? http://www.haskell.org/ghc/docs/latest/html/libraries/array-0.3.0.0/Data-Array-MArray.html As far as I can tell, that is the interface

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Jason Dagit
On Thu, Feb 11, 2010 at 9:35 AM, Job Vranish wrote: > Anyone know of a type inference utility that can run right on haskell-src > types? or one that could be easily adapted? > I want to be able to pass in an HsExp and get back an HsQualType. It > doesn't have to be fancy, plain Haskell98 types wo

[Haskell-cafe] Where are the Takusen sources?

2010-02-12 Thread Jason Dagit
Hello, I wanted the takusen sources as I may want to add features. I looked on hackage and it lists this url for the repository: http://darcs.haskell.org/takusen I get a 404 on that URL. I checked Oleg's website: http://okmij.org/ftp/Haskell/misc.html#takusen And the links on that page have si

Re: [Haskell-cafe] Where are the Takusen sources?

2010-02-12 Thread Jason Dagit
On Fri, Feb 12, 2010 at 3:24 PM, Brandon S. Allbery KF8NH < allb...@ece.cmu.edu> wrote: > On Feb 12, 2010, at 18:17 , Jason Dagit wrote: > > I wanted the takusen sources as I may want to add features. I looked on > hackage and it lists this url for the repository: > htt

Re: [Haskell-cafe] How can i run darcs in ghci?

2010-02-18 Thread Jason Dagit
On Tue, Feb 16, 2010 at 12:17 AM, Marc Weber wrote: > > > Any help on how to load the .h is greatly appreciated. I tried -i > > with > > path to the src directory but it didn't work (should it?). > Try -I -i is used for .hs files only (?). > This seems like a missing feature in cabal or ghci

Re: [Haskell-cafe] Lists of Existential DT

2010-02-28 Thread Jason Dagit
On Sun, Feb 28, 2010 at 6:31 AM, Yves Parès wrote: > > Hello! > > I have a class Drawable, and some datatypes which are instances of it, and > I > would like to be able to draw them all at once! > drawMany window [image, text, otherImage] > > I think the type of the function drawMany would be: >

Re: [Haskell-cafe] How do you set up windows enviroment

2010-03-04 Thread Jason Dagit
On Wed, Mar 3, 2010 at 12:26 PM, Maciej Piechotka wrote: > How do you set up Windows environment? I'd like to develop few > platform-specific code or rather port it to this platform. > > I tried to set up environment but I failed (darcs hanging on copy via > ssh, command line is... well slightly b

Re: [Haskell-cafe] Real-time garbage collection for Haskell

2010-03-04 Thread Jason Dagit
On Thu, Mar 4, 2010 at 11:10 AM, Don Stewart wrote: > cjs: > > On 2010-03-01 19:37 + (Mon), Thomas Schilling wrote: > > > > > A possible workaround would be to sprinkle lots of 'rnf's around your > > > code > > > > As I learned rather to my chagrin on a large project, you generally > > do

Re: [Haskell-cafe] Upgrading to Haskell Platform

2010-03-13 Thread Jason Dagit
On Wed, Mar 10, 2010 at 8:50 AM, David Place wrote: > Hi: > > I am running GHC 6.10.4 on Mac OSX 10.6.2. Somehow, I have a broken > version of Cabal (1.6.0.3) installed. In what was is it broken? A co-worker of mine had problem recently where her cabal was giving "Bus error" whenever it trie

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Jason Dagit
On Thu, Mar 11, 2010 at 3:44 PM, Arnoldo Muller wrote: > Daniel, > > Thank you so much for helping me out with this issue! > > Thanks to all the other answers from haskel-cafe members too! > > As a newbie, I am not able to understand why zip and map would make a > problem... > > Is there any link

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Jason Dagit
On Wed, Mar 10, 2010 at 2:03 PM, Arnoldo Muller wrote: > Hello Justin, > > I tried and what I saw was a constant increase in memory usage. > Any particular profiling option that you would use? > A great place to get started with profiling is the chapter in Real-World Haskell: http://book.realworl

Re: [Haskell-cafe] Parsec to parse tree structures?

2010-03-18 Thread Jason Dagit
On Sun, Mar 14, 2010 at 9:03 AM, david fries wrote: > Hello Café > > Some time ago I wrote a parser for a project of one our customers. The > format was proprietary and binary. The data was structured as a tree > with tables pointing to sub tables farther in the file. (Well actually > there was o

Re: [Haskell-cafe] Strange typing?

2010-03-19 Thread Jason Dagit
On Fri, Mar 19, 2010 at 8:15 AM, Ozgur Akgun wrote: > Hi Cafe! > > Disclaimer: I know what I'm going to ask is now available as a language > feature normally. > Did you mean "not available"? I don't know of a Haskell language feature for this, so if you really did mean "now" then I'd love to le

Re: [Haskell-cafe] Takusen and iteratee problem

2010-03-19 Thread Jason Dagit
On Fri, Mar 19, 2010 at 2:17 PM, Vasyl Pasternak wrote: > Hello Cafe. > > Today I stuck with the following problem: I want to read a file with > iteratee package, and but it to database through Takusen package, but > it doesn't work. The `Takusen` was built with `mtl` package, and > `iteratee` - w

Re: [Haskell-cafe] Re: Why does `flip` cause function type so different ?

2010-03-19 Thread Jason Dagit
On Fri, Mar 19, 2010 at 5:10 PM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > Heinrich Apfelmus writes: > > Ivan Miljenovic wrote: > >> Also, there's a haskell-beginners mailing list. You may wish to post > >> there rather than asking us every question you get whilst learning > >>

Re: [Haskell-cafe] HTTP package freezes on Windows 7

2010-03-19 Thread Jason Dagit
On Tue, Mar 16, 2010 at 3:12 PM, Phil wrote: > On 16/03/2010 01:05, Phil wrote: > > Scrap my original query - the problem isn't as black & white as I thought. > > The below works fine - I've changed the response type from json to xml > strange, but for some reason downloading json doesn't wo

Re: [Haskell-cafe] Takusen sqlite3 insert is very slow

2010-03-20 Thread Jason Dagit
On Sat, Mar 20, 2010 at 3:32 AM, Vasyl Pasternak wrote: > Hi Cafe, > > I have another problem, please look at code: > > storeInDb = withSession (connect "test.db") > (do > execDDL (sql "create table x (y int)") > forM_ ([1..1] :: [Int]) >

[Haskell-cafe] Is hGetLine lazy like hGetContents? And what about this todo item?

2010-03-25 Thread Jason Dagit
Hello, I was trying to figure out if hGetLine is safe to use inside of withFile. Specifically, I want to return the line I read and use it later, without inspecting it before withFile calls hClose. If you want to understand the concern I have, look here: http://www.haskell.org/haskellwiki/Mainta

[Haskell-cafe] Re: Is hGetLine lazy like hGetContents? And what about this todo item?

2010-03-25 Thread Jason Dagit
On Thu, 2010-03-25 at 16:13 +, Simon Marlow wrote: > On 25/03/2010 15:40, Jason Dagit wrote: > > Hello, > > > > I was trying to figure out if hGetLine is safe to use inside of > > withFile. Specifically, I want to return the line I read and use it > > la

[Haskell-cafe] Re: Is hGetLine lazy like hGetContents? And what about this todo item?

2010-03-25 Thread Jason Dagit
On Thu, 2010-03-25 at 21:38 +, Simon Marlow wrote: > On 25/03/10 17:07, Jason Dagit wrote: > > On Thu, 2010-03-25 at 16:13 +, Simon Marlow wrote: > >> On 25/03/2010 15:40, Jason Dagit wrote: > >>> Hello, > >>> > >>> I was try

Re: [Haskell-cafe] GHC vs GCC

2010-03-26 Thread Jason Dagit
On Fri, Mar 26, 2010 at 10:46 AM, Rafael Cunha de Almeida < almeida...@gmail.com> wrote: > Hello, > > During a talk with a friend I came up with two programs, one written in > C and another in haskell. > > Haskell >main :: IO () >main = print $ rangeI 0 0 > >rangeK :: Int -

Re: [Haskell-cafe] GHC vs GCC

2010-03-26 Thread Jason Dagit
On Fri, Mar 26, 2010 at 2:33 PM, Bryan O'Sullivan wrote: > On Fri, Mar 26, 2010 at 10:46 AM, Rafael Cunha de Almeida < > almeida...@gmail.com> wrote: > >> >> During a talk with a friend I came up with two programs, one written in >> C and another in haskell. > > > Your Haskell code builds a huge t

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

2010-03-27 Thread Jason Dagit
On Sat, Mar 27, 2010 at 9:05 AM, Daniel Fischer wrote: > -Ursprüngliche Nachricht- > Von: "Günther Schmidt" > Gesendet: 27.03.2010 16:14:57 > An: haskell-cafe@haskell.org > Betreff: [Haskell-cafe] Are there any female Haskellers? > > >Hi all, > > > >from the names of people on the list it

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Jason Dagit
On Sat, Mar 27, 2010 at 3:25 AM, Neil Mitchell wrote: > Hi John, > > Any chance of seeing the benchmark? You're not the only one with an > optimising compiler tucked away somewhere :-) > Neil, for some reason John's reply didn't thread with the rest of the thread. Probably because he changed th

Re: [Haskell-cafe] Internet game servers in Haskell?

2010-03-27 Thread Jason Dagit
On Sat, Mar 27, 2010 at 3:14 AM, Colin Paul Adams wrote: > Has anyone ever written a server in Haskell for managing live > game-playing (any game) across the internet? > I haven't yet, but I saw someone had a simple MUD-like game engine a few years ago. I don't know if Frag supports network play

Re: [Haskell-cafe] Haskell-friendly Linux Distribution

2010-03-28 Thread Jason Dagit
On Sat, Mar 27, 2010 at 9:11 PM, Chris Dornan wrote: > Hi, > > > > I am choosing a Linux distribution for a production Haskell project and > would would normally just go with Debian (pedigree, stability, and of course > Haskell Platfom included) but CentOS is in the frame. > > > > Are there any p

Re: [Haskell-cafe] Testing for valid data

2010-03-28 Thread Jason Dagit
On Sat, Mar 27, 2010 at 2:42 PM, michael rice wrote: > Hi Ketil, > > Good point, but I think it side-steps the question. Haskell coughs on a > data value. Do we grep our data, finding and fixing the offender, or build > extensive data tests into our application code? > I'm not convinced I unders

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

2010-03-28 Thread Jason Dagit
2010/3/28 Pekka Enberg > 2010/3/28 Günther Schmidt : > > This is definately a point where we will continue to disagree. I found > > myself assuming that there are no female haskellers and wanted to verify > it > > by asking for data. > > So what exactly is off-topic for this list? Is unsubscribi

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

2010-03-28 Thread Jason Dagit
On Sun, Mar 28, 2010 at 8:29 PM, wren ng thornton wrote: > Jon Fairbairn wrote: > >> Another (provocative) observation is that most of the women >> programmers I've known were good at it and thought they might >> not be, but most of the men claimed to be good at it but >> were not. >> > > I've ob

Re: [Haskell-cafe] Re: Haskell-friendly Linux Distribution

2010-03-29 Thread Jason Dagit
On Sun, Mar 28, 2010 at 4:53 AM, Joachim Breitner wrote: > Hi, > > Am Sonntag, den 28.03.2010, 09:04 +0100 schrieb Magnus Therning: > > I have to say it looks like Debian has gotten their act together > > somewhat when it comes to Haskel development. Many of the reasons for > > my deserting Debia

Re: [Haskell-cafe] Trying to figure out a segfault caused by haskeline.

2010-03-29 Thread Jason Dagit
On Mon, Mar 29, 2010 at 7:37 PM, ryan winkelmaier wrote: > Hey everyone, > > I'm looking for help with a seg fault that takes out both my ghci and darcs > as well as anything that uses haskeline. A bug on the haskeline trac hasn't > gotten any response so I figured I might as well figure this out

Re: [Haskell-cafe] Re: GSOC Haskell Project

2010-03-31 Thread Jason Dagit
On Wed, Mar 31, 2010 at 7:21 AM, Simon Marlow wrote: > On 30/03/2010 20:57, Mihai Maruseac wrote: > > I'd like to introduce my idea for the Haskell GSOC of this year. In >> fact, you already know about it, since I've talked about it here on >> the haskell-cafe, on my blog and on reddit (even on

Re: [Haskell-cafe] The 8 Most Important GSoC Projects

2010-04-01 Thread Jason Dagit
On Thu, Apr 1, 2010 at 7:10 PM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > Don Stewart writes: > > Portability? You already have GHC on the machine, right? You don't > > necessarily need the GHC API to get something prototyped quickly. > > I meant in the sense of writing this as

Re: [Haskell-cafe] GSoC: Improving Cabal's Test Support

2010-04-01 Thread Jason Dagit
On Thu, Apr 1, 2010 at 6:13 PM, Rogan Creswick wrote: > On Thu, Apr 1, 2010 at 3:52 PM, Thomas Tuegel wrote: > > > > At this point, the package author need only run: > > > > $ ./Setup configure > > $ ./Setup build > > $ ./Setup test > > My general feeling has been that Setup is being discouraged

Re: [Haskell-cafe] A function that makes list of Bool lists from list of Int lists

2010-04-03 Thread Jason Dagit
On Sat, Apr 3, 2010 at 7:29 AM, Maur Toter wrote: > Hey, > > thanks for the help! > > Yes it is part of a homework that I can't find out (I am fine with other > parts). > This is not the homework itself, just the part of it and I needed help with > it, thanks for that! > I would like to understan

Re: [Haskell-cafe] Profiling

2010-04-03 Thread Jason Dagit
On Sun, Feb 21, 2010 at 9:11 AM, Thomas DuBuisson < thomas.dubuis...@gmail.com> wrote: > > How do I tell Cabal to install the necessary code? > > set: > "library-profiling: True" > > in your ~/.cabal/config file and never deal with this again (for any > new packages you install). use --reinstall

Re: [Haskell-cafe] Metaprogramming in Haskell vs. Ocaml

2010-04-05 Thread Jason Dagit
On Mon, Apr 5, 2010 at 12:27 PM, Jacques Carette wrote: > Don Stewart wrote: > >> I think we don't see as much metaprogramming because of other language >> features -- laziness, operator syntax, and type classes -- make a bunch >> of common designs work without needing metaprogramming. >> >> > Whi

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

2010-04-06 Thread Jason Dagit
On Tue, Apr 6, 2010 at 5:49 PM, Thomas Schilling wrote: > Ok, based on both your and Ivan's comments I modified a bit more. > > http://i.imgur.com/cumLj.png > > Making the top columns and the lower columns the same width looks bad, > but I agree that the large margin between the blurb and the > Do

Re: [Haskell-cafe] ANNOUNCE: Hac phi 2010

2010-04-07 Thread Jason Dagit
2010/4/7 Chris Casinghino > Greetings, > > I am very pleased to officially announce Hac phi 2010, a Haskell > hackathon/get-together to be held May 21-23 at the University of > Pennsylvania in Philadelphia. The hackathon will officially kick off > at 2:30 Friday afternoon, and go until 5pm on Su

Re: [Haskell-cafe] Confusions about the Haskell Platform (for Mac)

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 2:57 PM, Malcolm Wallace < malcolm.wall...@cs.york.ac.uk> wrote: > The platform installer is supposed to erase previous platform > editions before it installs itself. > >>> I would consider that a serious bug. >>> >> >> "Lacking a feature I would consider esse

Re: [Haskell-cafe] GHC LLVM ARM Cross Compilation

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 6:06 PM, Nathaniel Neitzke wrote: > I saw the Google Summer of Code project for using LLVM to cross compile for > other architectures such as ARM. Professionally I write embedded Linux code > that targets ARM processors such as the TI DaVinci DM355 and am > very intrigued b

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

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 9:08 PM, Tim Docker wrote: > I'm experimenting with haskell and relational databases. I have > successfully coupled unixodbc + freetds + hdbc-odbc, and can make > trivial queries. However, I'm surprised at the result types: > > $ ghci > GHCi, version 6.10.3: http://www.hask

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

2010-04-07 Thread Jason Dagit
On Wed, Apr 7, 2010 at 9:45 PM, Jason Dagit wrote: > > darcs get --lazy http://darcs.haskell.org/takusen > Oops. That's a dead link, try this instead: darcs get --lazy http://code.haskell.org/takusen/ <http://code.ha

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Jason Dagit
On Sun, Apr 11, 2010 at 9:26 AM, Duncan Coutts wrote: > On Mon, 2010-03-08 at 13:33 +, Maciej Piechotka wrote: > > While I love Haskell it's packaging system have some problems - > > especially with parsec. > > > > Currently I'm not able to install an practically anything using cabal > > due

Re: [Haskell-cafe] dependent types

2010-04-11 Thread Jason Dagit
On Sun, Apr 11, 2010 at 1:59 AM, Andrew U. Frank wrote: > in modeling real application we have often the case that the type of > some object depends on a value. e.g. small_boat is a vessel with size > less than a constant. big_boat is a vessel with a larger size. for > example, many legal classif

Re: [Haskell-cafe] dependent types

2010-04-11 Thread Jason Dagit
On Sun, Apr 11, 2010 at 4:15 PM, Ozgur Akgun wrote: > > On 11 April 2010 22:54, Jason Dagit wrote: > >> >> > ... >> > >> > class Vehicle a where >> >> data Car >> data Truck >> >> instance Vehicle Car where >> instanc

Re: [Haskell-cafe] floating-point comparison (was haskell gsoc proposal for richer numerical type classes and supporting algorithms)

2010-04-11 Thread Jason Dagit
On Thu, Apr 8, 2010 at 7:29 PM, Doug Burke wrote: > > --- On Thu, 4/8/10, Gregory Crosswhite wrote: > > > From: Gregory Crosswhite > > > > > On a tangental note, I've considered coding up a package > > with an "AlmostEq" typeclass that allows one to test for > > approximate equality. The probl

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Jason Dagit
On Mon, Apr 12, 2010 at 4:00 AM, Duncan Coutts wrote: > On Sun, 2010-04-11 at 14:28 -0700, Jason Dagit wrote: > > > I've noticed another type of diamond dependency problem. Suppose I > > build and install Foo today and it depends on Bar 2.0.0. In a week, I > &g

Re: [Haskell-cafe] dependent types

2010-04-12 Thread Jason Dagit
On Mon, Apr 12, 2010 at 4:32 AM, Ben Millwood wrote: > > Personally I think this approach is all rather OO. The way that seems > most natural to me is: > > moveVehicleAcrossBridge :: Bridge -> Vehicle -> Maybe Move > moveVehicleAcrossBridge bridge { maxWeight = max } vehicle { weight = w } > | w

Re: [Haskell-cafe] GHC, odd concurrency space leak

2010-04-14 Thread Jason Dagit
On Wed, Apr 14, 2010 at 2:13 PM, Gregory Collins wrote: > Jesper Louis Andersen writes: > > > This post describes some odd behaviour I have seen in GHC 6.12.1 when > writing > > Combinatorrent. The post is literate Haskell so you can run it. The > executive > > summary: A space leak occurs when a

Re: [Haskell-cafe] GHC, odd concurrency space leak

2010-04-14 Thread Jason Dagit
On Wed, Apr 14, 2010 at 2:44 PM, Jason Dagit wrote: > > > On Wed, Apr 14, 2010 at 2:13 PM, Gregory Collins > wrote: > >> Jesper Louis Andersen writes: >> >> > This post describes some odd behaviour I have seen in GHC 6.12.1 when >> writing >> &

Re: [Haskell-cafe] GHC, odd concurrency space leak

2010-04-14 Thread Jason Dagit
On Wed, Apr 14, 2010 at 3:13 PM, Daniel Fischer wrote: > Am Mittwoch 14 April 2010 23:49:43 schrieb Jason Dagit: > > > It will be interesting to hear what fixes this! > > > > > > > > > forever' m = do _ <- m > > > forever

Re: [Haskell-cafe] Can't login to GHC trac

2010-04-14 Thread Jason Dagit
On Tue, Apr 13, 2010 at 3:47 AM, Erik de Castro Lopo > wrote: > Daniel Fischer wrote: > > > Am Dienstag 13 April 2010 09:29:18 schrieb Erik de Castro Lopo: > > > > > Anyone else have the same problem? > > > > I have that problem with my hackage (Cabal/cabal-install) trac account > > (Firefox, Sea

Re: [Haskell-cafe] Building regex-posix for windows

2010-04-15 Thread Jason Dagit
2010/4/15 Станислав Черничкин > I'm having trouble building regex-posix for Windows under MinGW because > MinGW does not include regex.h. As far as I know Haskell Platform uses MinGW > and it includes regex-posix. I'd like to build regex-posix by myself, like > Haskell Platform does. I would app

Re: [Haskell-cafe] GHC, odd concurrency space leak

2010-04-16 Thread Jason Dagit
On Fri, Apr 16, 2010 at 2:51 PM, Jesper Louis Andersen < jesper.louis.ander...@gmail.com> wrote: > On Thu, Apr 15, 2010 at 1:33 AM, Daniel Fischer > wrote: > >> > >> Can some core expert please look at these and explain the difference? > >> > > > > I'm interested in an explanation too. > > > > +1

Re: [Haskell-cafe] vector recycling

2010-04-16 Thread Jason Dagit
On Fri, Apr 16, 2010 at 8:32 PM, Ben wrote: > hello -- > > this is mostly a question for roman, or don, i guess. suppose i have > a list of similarly-sized vectors, and i want to add them up (possibly > with coefficients), to yield a result vector. something like > > module Main where > > impor

Re: [Haskell-cafe] Ocaml for Haskellers tutorial

2010-04-16 Thread Jason Dagit
On Fri, Apr 16, 2010 at 8:35 PM, C K Kashyap wrote: > I am a little surprised by the "shortcomings" of Haskell mentioned in the > thread. > > I was under the impression that Haskell was closest to Nirvana on the > usefulness vs safety graph. > > In the paper "Why FP matters" - Laziness is stated

Re: [Haskell-cafe] memory needed for SAX parsing XML

2010-04-19 Thread Jason Dagit
On Mon, Apr 19, 2010 at 3:01 AM, Daniil Elovkov < daniil.elov...@googlemail.com> wrote: > Hello haskellers! > > I'm trying to process an xml file with as little footprint as possible. SAX > is alright for my case, and I think that's the lightest way possible. So, > I'm looking at HaXml.SAX > > I'm

Re: [Haskell-cafe] Re: help with Haskell programming

2010-04-19 Thread Jason Dagit
On Sun, Apr 18, 2010 at 10:25 AM, Sean Leather wrote: > > >> This is the annoying part about Haskell . I can not understand composition >> . >> > > One of the ways of understanding composition (and many other functions in > Haskell) is by trying to understand its type. Here it is shown by looking

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

2010-04-23 Thread Jason Dagit
On Fri, Apr 23, 2010 at 11:34 AM, John Goerzen wrote: > > A one-character change. Harmless? No. It entirely changes what the > function does. Virtually any existing user of that function will be > entirely broken. Of particular note, it caused significant breakage in the > date/time handling

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

2010-04-23 Thread Jason Dagit
On Fri, Apr 23, 2010 at 4:49 PM, Don Stewart wrote: > ivan.miljenovic: > > Don Stewart writes: > > > > > I'll just quickly mention one factor that contributes: > > > > > > * In 2.5 years we've gone from 10 libraries on Hackage to 2023 > (literally!) > > > > > > That is a massive API to try t

Re: [Haskell-cafe] Benchmarks game updated to ghc 6.12.2

2010-04-29 Thread Jason Dagit
On Thu, Apr 29, 2010 at 12:38 AM, Ketil Malde wrote: > > Don Stewart writes: > > > http://shootout.alioth.debian.org/u64q/haskell.php > > Observations: > > Although we're mostly beaten on speed, and about the same on code size, > we're using a lot less memory than Java. > > As for code size, the

Re: [Haskell-cafe] Using the Clipboard under Windows

2010-04-29 Thread Jason Dagit
2010/4/29 Günther Schmidt > Hello, > > is there some sample code on how to use the Graphics.Win32.GDI.Clip? > That part of the library is fairly low level and has a mostly one-to-one correspondence to the C API. This means that you should be able to more or less read an example of how to do it

Re: [Haskell-cafe] Using the Clipboard under Windows

2010-04-29 Thread Jason Dagit
2010/4/29 Günther Schmidt > Dear Jason, > > I'd be happy not having to dig in deeply. Do you happen to know a "higher" > level one? > Sorry, I don't. The only thing I used GDI for was rendering fonts with transparency when I worked for a company that did some very special font applications. I

Re: [Haskell-cafe] FGL instance constraint

2010-04-30 Thread Jason Dagit
On Fri, Apr 30, 2010 at 11:08 PM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > > > You're putting the constraint in the wrong places: put the "(Cls a) => " > in the actual functions where you need it. > That's solid advice in general, but it's still not going to work here if any of

Re: [Haskell-cafe] FGL instance constraint

2010-04-30 Thread Jason Dagit
On Fri, Apr 30, 2010 at 11:30 PM, Jason Dagit wrote: > > > On Fri, Apr 30, 2010 at 11:08 PM, Ivan Lazar Miljenovic < > ivan.miljeno...@gmail.com> wrote: >> >> >> You're putting the constraint in the wrong places: put the "(Cls a) => " >&

Re: [Haskell-cafe] FGL instance constraint

2010-05-01 Thread Jason Dagit
On Fri, Apr 30, 2010 at 11:53 PM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > Jason Dagit writes: > > > On Fri, Apr 30, 2010 at 11:08 PM, Ivan Lazar Miljenovic < > > ivan.miljeno...@gmail.com> wrote: > >> > >> > >> You

Re: [Haskell-cafe] FGL instance constraint

2010-05-01 Thread Jason Dagit
On Sat, May 1, 2010 at 12:23 AM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > Hmmm this is an interesting way of doing it, but I would argue that > it's pointless: the fact that you're using MPTCs doesn't give you > anything extra that the original class. Furthermore, as I said

Re: [Haskell-cafe] FGL instance constraint

2010-05-01 Thread Jason Dagit
On Sat, May 1, 2010 at 12:49 AM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > Jason Dagit writes: > > > On Sat, May 1, 2010 at 12:23 AM, Ivan Lazar Miljenovic < > > ivan.miljeno...@gmail.com> wrote: > > > >> Hmmm this is an intere

Re: [Haskell-cafe] Cabal-install: bus error

2010-05-03 Thread Jason Dagit
On Mon, May 3, 2010 at 2:21 PM, Chris Eidhof wrote: > Hey everyone, > > After I upgraded to a newer cabal-install my cabal-install broke again: I > get a Bus Error when doing "cabal update" or "cabal install something". The > version that was bundled with the Haskell platform worked fine, but now

Re: [Haskell-cafe] Re: nun.haskell.org http services down?

2010-05-06 Thread Jason Dagit
On Thu, May 6, 2010 at 2:15 AM, Malcolm Wallace < malcolm.wall...@cs.york.ac.uk> wrote: > http://{code,community,projects}.haskell..org/ seem to be inaccessible. > > Could someone please look into it? > For me, it seems to be down everyday around 5-6pm (0700-0800 UTC) which >

Re: [Haskell-cafe] darcs to mercurial migration

2010-05-07 Thread Jason Dagit
On Fri, May 7, 2010 at 2:29 AM, Nicolas Pouillard < nicolas.pouill...@gmail.com> wrote: > On Thu, 06 May 2010 01:08:08 +0200, Günther Schmidt > wrote: > > Hello, > > > > I'm switching from darcs to mercurial with some of my projects. > > > > I'd like to retain as much of the history as possible,

Re: [Haskell-cafe] GHC 6.12 on OS X 10.5

2010-05-07 Thread Jason Dagit
On Mon, Dec 28, 2009 at 9:03 AM, Aaron Tomb wrote: > > On Dec 22, 2009, at 9:36 PM, wren ng thornton wrote: > > Aaron Tomb wrote: >> >>> I've come across the issue with iconv, as well. >>> The problem seems to be that some versions of iconv define iconv_open and >>> some related functions as mac

Re: [Haskell-cafe] debugging a hanging program: where to start?

2010-05-12 Thread Jason Dagit
On Wed, May 12, 2010 at 8:15 PM, Aran Donohue wrote: > Hi Cafe, > > I have a program that I can reliably cause to hang. It's concurrent using > STM, so I think it could be a deadlock or related issue. I also do some IO, > so I think it could be blocking in a system call. It only hangs when > compi

Re: [Haskell-cafe] corner case in Text.JSON 0.4.3

2010-05-13 Thread Jason Dagit
On Wed, May 12, 2010 at 10:05 PM, Don Stewart wrote: > martin: > > hi, > > > > since i got no answer from the maintainer, maybe someone else can take > > care of it, or at least point out, what i did wrong. > > > > so, i recently stumbled upon some error while using Text.JSON 0.4.3 [1]: > > > >

Re: [Haskell-cafe] debugging a hanging program: where to start?

2010-05-13 Thread Jason Dagit
On Thu, May 13, 2010 at 5:53 AM, Aran Donohue wrote: > Thanks folks! Forward progress is made... > > Unfortunately, programs don't seem to write out their threadscope event > logs until they terminate, and mine hangs until I kill it, so I can't get at > the event log. > > Tracing has taught me tha

Re: [Haskell-cafe] Re: Ideas of a polymorphic Tree in Haskell

2010-05-13 Thread Jason Dagit
On Thu, May 13, 2010 at 3:01 PM, Edgar Z. Alvarenga wrote: > On Thu, 13/May/2010 at 18:57 +0100, Maciej Piechotka wrote: > > > Hmm. What GDAT/existential do you use (for lazy people who do not want > > to read paper)? > > The GADT that I refered was from my faileds attempts. > > > How is it progra

Re: [Haskell-cafe] Chuch encoding of data structures in Haskell

2010-05-27 Thread Jason Dagit
2010/5/27 Günther Schmidt > Hello C, > > thank you for explaining. > > The funny thing is that I have never seen anybody take this even a single > step further than you have in your email. > > In particular I have not found anything where someone might use church > encoding to solve a quite pract

Re: [Haskell-cafe] A question on existential types and Church encoding

2010-05-29 Thread Jason Dagit
On Sat, May 29, 2010 at 9:28 PM, Cory Knapp wrote: > Hello, > > A professor of mine was recently playing around during a lecture with > Church booleans (I.e., true = \x y -> x; false = \x y -> y) in Scala and > OCaml. I missed what he did, so I reworked it in Haskell and got this: > > >type CB a

Re: [Haskell-cafe] name of this monadic combinator?

2010-05-30 Thread Jason Dagit
On Sun, May 30, 2010 at 1:35 AM, Michael Vanier wrote: > I stumbled across this monadic combinator: > > mcombine :: Monad m => (a -> a -> a) -> m a -> m a -> m a > mcombine f mx my = do >x <- mx >y <- my >return (f x y) > > I used it to chain the outputs of two Parsec String parsers t

Re: [Haskell-cafe] A question on existential types and Church encoding

2010-05-30 Thread Jason Dagit
On Sun, May 30, 2010 at 4:08 AM, wren ng thornton wrote: > Jason Dagit wrote: > >> In Church's λ-calc the types are ignored, >> > > > Not so. Church-style lambda calculus is the one where types matter; > Curry-style is the one that ignores types and evaluates

Re: [Haskell-cafe] A question on existential types and Church encoding

2010-06-01 Thread Jason Dagit
On Tue, Jun 1, 2010 at 12:40 PM, Cory Knapp wrote: > Thanks! That was exactly the sort of response I was looking for. > > This explains why you need to double up for your current definitions. To >> choose between two booleans (which will in turn allow you to choose >> between >> 'a's), you need a

Re: [Haskell-cafe] Proposal: Sum type branches as extended types (as Type!Constructor)

2010-06-03 Thread Jason Dagit
On Thu, Jun 3, 2010 at 8:14 AM, Gabriel Riba wrote: > Extending sum types with data constructors would spare runtime errors or > exception control, > > when applying functions to inappropriate branches, as in the example ... > > data List a = Nil | Cons a (List a) -- List!Nil and List!Cons >

Re: [Haskell-cafe] is there a way to prove the equivalence of these two implementations of (Prelude) break function?

2010-06-07 Thread Jason Dagit
On Sat, Jun 5, 2010 at 8:10 PM, Thomas Hartman wrote: > Here's two implementations of break, a snappy one from the prelude, > and a slow stupid stateful one. > > They are quickchecked to be identical. > > Is there a way to prove they are identical mathematically? What are > the techniques involve

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

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 wrote: > > From: Stephen Tetley > > > > 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 users harder. I'd argue th

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

Re: [Haskell-cafe] Contacting Planet Haskell

2010-06-10 Thread Jason Dagit
On Thu, Jun 10, 2010 at 3:59 AM, Yitzchak Gale 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 daemo

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 wrote: > 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 suggested improvements. >

Re: [Haskell-cafe] Literate programming

2010-06-12 Thread Jason Dagit
On Sat, Jun 12, 2010 at 9:21 AM, Martin Drautzburg 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 lhs2TeX or what? Do you

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-16 Thread Jason Dagit
On Wed, Jun 16, 2010 at 11:35 AM, Roman Beslik 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 corres

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Jason Dagit
On Thu, Jun 17, 2010 at 6:36 AM, Roman Beslik 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 existing pag

Re: [Haskell-cafe] HaskellWiki and Wikipedia

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

Re: [Haskell-cafe] Accounting Engine in Haskell

2010-06-23 Thread Jason Dagit
On Wed, Jun 23, 2010 at 2:30 PM, Paul Johnson 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 with it.

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 wrote: > 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: > http://code.google.com/p/memothing/source/browse/trunk/PCI/ch7

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

2010-06-24 Thread Jason Dagit
2010/6/22 José Romildo Malaquias > 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 write a compile

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 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 withCString, but my u

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 wrote: > * Jason Dagit [2010-06-24 20:52:03-0700] > > On Sat, Jun 19, 2010 at 1:06 AM, Roman Cheplyaka > wrote: > > > > > While ghc 6.12 finally has proper locale support, core packages (such > as > > > un

Re: [Haskell-cafe] Type-Level Programming

2010-06-25 Thread Jason Dagit
On Fri, Jun 25, 2010 at 2:26 PM, Walt Rorie-Baety wrote: > 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 in > MMORPGs).

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 [2010-06-25 > 05:00:08-0400] > >> You might want to look at how Python is dealing wi

  1   2   3   4   5   6   7   >