Re: [Haskell-cafe] Uploading a new hsc2hs
On Wed, Apr 25, 2012 at 06:57:14PM -0700, Thomas DuBuisson wrote: On Wed, Apr 25, 2012 at 5:27 PM, Antoine Latter aslat...@gmail.com wrote: On Wed, Apr 25, 2012 at 4:59 PM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: Warning: I, not the maintainer of hsc2hs, will be uploading a trivial fix for hsc2hs to hackage (new build deps). Even after public attempts to contact anyone in charge of hsc2hs (last January) there still has been no word. Speak now or forever hold your peace. I don't think I've ever installed hsc2hs from Hackage as it ships with GHC. Fair point, and Ian has been the one pushing patches to the repo lately. Ian - any objections to me bumping to version 0.68 and uploading that to hackage? I have no objections. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4
On Thu, Feb 09, 2012 at 11:40:28AM -0800, John Meacham wrote: On Thu, Feb 9, 2012 at 11:23 AM, Ian Lynagh ig...@earth.li wrote: On Thu, Feb 09, 2012 at 04:52:16AM -0800, John Meacham wrote: Since CSigSet has sigset_t associated with it, 'Ptr CSigSet' ends up turning into 'sigset_t *' in the generated code. (Ptr (Ptr CChar)) turns into char** and so forth. What does the syntax for associating sigset_t with CSigSet look like? There currently isn't a user accessable once, My current syntax idea is. data CFile = foreign stdio.h FILE but it doesn't extend easily to 'newtype's or maybe a {-# CTYPE FILE #-} pragma... I've now implemented this in GHC. For now, the syntax is: type{-# CTYPE some C type #-} Foo = ... newtype {-# CTYPE some C type #-} Foo = ... data{-# CTYPE some C type #-} Foo = ... The magic for (Ptr a) is built in to the compiler. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4
On Thu, Feb 09, 2012 at 04:52:16AM -0800, John Meacham wrote: Since CSigSet has sigset_t associated with it, 'Ptr CSigSet' ends up turning into 'sigset_t *' in the generated code. (Ptr (Ptr CChar)) turns into char** and so forth. What does the syntax for associating sigset_t with CSigSet look like? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4
On Tue, Feb 07, 2012 at 06:26:48PM -0800, John Meacham wrote: Hi, from my reading, it looks like 'capi' means from a logical perspective, Don't assume the object is addressible, but rather that the standard c syntax for calling this routine will expand into correct code when compiled with the stated headers So, it may be implemented by say creating a stub .c file that includes the headers and creates a wrapper around each one or when compiling via C, actually including the given headers and the function calls in the code. That sounds right. It basically means you don't have to write the C stubs yourself, which is nice because (a) doing so is a pain, and (b) when the foreign import is inside 2 or 3 CPP conditionals it's even more of a pain to replicate them correctly in the C stub. Unfortunately, there are cases where C doesn't get all the type information it needs, e.g.: http://hackage.haskell.org/trac/ghc/ticket/2979#comment:14 but I'm not sure what the best fix is. I ask because jhc needs such a feature (very hacky method used now, the rts knows some problematic functions and includes hacky wrappers and #defines.) and I'll make it behave just like the ghc one when possible. Great! Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4
On Sun, Feb 05, 2012 at 07:17:32PM -0800, John Millikin wrote: That was my understanding also, then QuickCheck found a counter-example. It turns out that there are cases where a valid path cannot be roundtripped in the GHC 7.2 encoding. This is fixed in GHC 7.4.1. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] How to ensure code executes in the context of a specific OS thread?
On Tue, Jul 05, 2011 at 08:11:21PM +0100, Simon Marlow wrote: In GHCi it's a different matter, because the main thread is running GHCi itself, and all the expressions/statements typed at the prompt are run in forkIO'd threads (a new one for each statement, in fact). If you want a way to run command-line operations in the main thread, please submit a feature request. I'm not sure it can be done, but I'll look into it. We already have a way: -fno-ghci-sandbox Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Template Haskell a Permanent solution?
On Tue, Jan 04, 2011 at 04:15:07PM +0100, Christian Maeder wrote: Am 04.01.2011 15:48, schrieb Henning Thielemann: Christian Maeder schrieb: Am 27.12.2010 08:44, schrieb Henning Thielemann: On Mon, 27 Dec 2010, Jonathan Geddes wrote: #2 Provide instances automatically. http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/generic-classes.html I see the text below and have no idea where the package lang or the module Generic comes from. Can someone enlighten me? The package 'syb' - 'scrap your boilerplate' looks quite similar. Yes, thanks. So the documentation should be updated to say package syb and module Data.Generics. @Ian, can you take care of this (without ticket)? Done, ta. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Test
A1 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Splittable random numbers
On Thu, Nov 04, 2010 at 05:38:12PM +, Simon Peyton-Jones wrote: The generator uses crypto functions, Does that mean it couldn't be used in some countries? so it's probably more computationally expensive than common linear-sequence generators, but in exchange you get robust splitting. I wonder if you can make a splittable generator that uses crypto functions when you split it, but is a common linear-sequence generator otherwise? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: [Haskell] haskell.org committee: Call for nominations
We're half-way through the nomination period now, and have 4 nominations so far. If you're considering nominating yourself, you only have 1 week left! On Wed, Sep 15, 2010 at 01:16:40PM +0100, Ian Lynagh wrote: Dear Haskellers, The recent discussion indicates there is consensus for forming a haskell.org committee. We are therefore calling for nominations for members of the initial committee. To nominate yourself, please send an e-mail to commit...@haskell.org by 29 September 2010. Please feel free to include any information about yourself that you think will help us to make a decision. We do not expect that being a member of the committee will require a significant amount of time, but committee members should aim to be responsive during discussions when the committee is called upon to make a decision. More details about the committee's roles and responsibilities are on http://www.haskell.org/haskellwiki/Haskell.org_committee If you have any questions about the process, please feel free to e-mail us at commit...@haskell.org or to contact one of us individually. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] haskell.org committee: Call for nominations
Dear Haskellers, The recent discussion indicates there is consensus for forming a haskell.org committee. We are therefore calling for nominations for members of the initial committee. To nominate yourself, please send an e-mail to commit...@haskell.org by 29 September 2010. Please feel free to include any information about yourself that you think will help us to make a decision. We do not expect that being a member of the committee will require a significant amount of time, but committee members should aim to be responsive during discussions when the committee is called upon to make a decision. More details about the committee's roles and responsibilities are on http://www.haskell.org/haskellwiki/Haskell.org_committee If you have any questions about the process, please feel free to e-mail us at commit...@haskell.org or to contact one of us individually. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Proposal: Form a haskell.org committee
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 money: on the community server, on a server to take over hosting haskell.org itself, and on the haskell.org domain name. There is also interest in running fundraising drives for specific things such as Hackathon sponsorship and hosting fees. However, it is not currently clear who is responsible for determining what the haskell.org money should be spent on, or what are and are not acceptable uses of the domain name and hardware. To fix this problem, we propose that we create a haskell.org committee, which is responsible for answering these sorts of questions, although for some questions they may choose to poll the community at large if they think appropriate. We suggest that the committee be composed of 5 representatives from the community, with committee members standing down after at most 3 years. Each year the committee will appoint one of their members to be the chair. As membership of the Haskell community is not well-defined, and voting would potentially be open to abuse if anyone were able to vote, we propose that the committee should choose their replacements from open nominations. Unfortunately, this gives us a bootstrapping problem, so we suggest that the initial committee be chosen from open nominations by some of the people who currently de-facto end up making the decisions currently: Duncan Coutts, Isaac Jones, Ian Lynagh, Don Stewart and Malcolm Wallace. These 5 would still be elligible to nominate themselves. Two of the initial members will stand down after one year, and two after two years, in order to bootstrap rolling membership turnover. We would love to hear feedback from you about this proposal, so that we can see whether the proposal, or something similar, has consensus amongst the community! A related issue is that haskell.org does not currently exist as a legal entity. We also hope to solve that problem, but we are still gathering information so that the community can make an informed decision, so I won't say more about that for now. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Broken registration link on hackage trac
On Mon, Jan 18, 2010 at 07:35:31PM +, Andy Gimblett wrote: I want to register an account on hackage's trac instance, but the register an account link on the start page: http://hackage.haskell.org/trac/hackage/wiki/WikiStart is broken. Fixed - thanks for the report. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Recompiling Hackage to estimate the impact of a change [Was: StricterLabelledFieldSyntax]
On Sun, Jul 26, 2009 at 08:21:00AM +0200, Johan Tibell wrote: On Sun, Jul 26, 2009 at 3:34 AM, Ian Lynagh ig...@earth.li wrote: http://hackage.haskell.org/trac/haskell-prime/wiki/StricterLabelledFieldSyntax In general, I think it would be a good idea to provide some statistics of how many packages would break as the result of a backwards incompatible change. Without that data I find it hard to do a cost-benefit analysis. To some extent you are right, and if we had an easy to to get those stats when I would be in favour of doing so. But it is important to remember that a count of packages that break won't tell you how hard it would be to fix them. For example, the complete diff needed to fix old-time for StricterLabelledFieldSyntax was: - toClockTime cal{ctMonth=month', ctYear=year'} + toClockTime $ cal{ctMonth=month', ctYear=year'} Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Recompiling Hackage to estimate the impact of a change [Was: StricterLabelledFieldSyntax]
On Sat, Jul 25, 2009 at 11:25:12PM -0700, Donald Bruce Stewart wrote: johan.tibell: In general, I think it would be a good idea to provide some statistics of how many packages would break as the result of a backwards incompatible change. Agreed. And it should be required as part of release processes for GHC. Duncan has described the process of building large amounts of Hackage, http://blog.well-typed.com/2009/03/regression-testing-with-hackage/ That process requires too much effort. IIRC it took more than a day of actual human time to get the package list set up etc, and requires you to make some non-obvious decisions along the way. I think a better process would be more along the lines of: for p in $packages cabal install p rollback? except smarter, so that it doesn't try to install packages that it has already installed as a dependency of something else. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] community.haskell.org and code.haskell.org problems
On Mon, May 18, 2009 at 11:38:09AM +0100, Neil Mitchell wrote: Is there a reason for the poor reliability of these servers? We do have a plan to move community to a beefier machine with more reliable hosting. There are a few details to sort out first, and then we just need to find the time to do it. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Introducing Instances in GHC point releases
Hi John, On Thu, May 21, 2009 at 09:30:24PM -0500, John Goerzen wrote: I guess my larger point is just a plea to the community: please be really careful about what you do to GHC in point releases. We are careful about what goes into the official GHC release. However, ever since GHC 6.6 (when extralibs were first separated out), we have not made any guarantees about whether point releases come with the same, or a compatible, version; we just take what's in the darcs repo at the time of the release. Anyway, this will be a non-issue in 6.12, when there are no extralibs, and the Haskell Platform takes over the role. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Possible floating point bug in GHC?
On Fri, Apr 03, 2009 at 10:10:17PM +0200, Peter Verswyvelen wrote: I tried both precise and fast, but that did not help. Compiling to SSE2 fixed it, since that does not use a floating point stack I guess. You didn't say what version of GHC you are using, but it sounds like this might already be fixed in 6.10.2 by: Tue Nov 11 12:56:19 GMT 2008 Simon Marlow marlo...@gmail.com * Fix to i386_insert_ffrees (#2724, #1944) The i386 native code generator has to arrange that the FPU stack is clear on exit from any function that uses the FPU. Unfortunately it was getting this wrong (and has been ever since this code was written, I think): it was looking for basic blocks that used the FPU and adding the code to clear the FPU stack on any non-local exit from the block. In fact it should be doing this on a whole-function basis, rather than individual basic blocks. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Making videos of your project
On Tue, Mar 31, 2009 at 03:01:52PM +0100, Claus Reinke wrote: Is there anyone here with experience in screencasting of text-based applications, who could offer advice on how to produce screencasts on windows/xp? The basic screencasting (capture+annotation/editing) is not the problem, eg, CamStudio seems ok, and Wink gives me more control for mostly input-driven sessions (where I want screenshots whenever something useful happens, not long videos of my mousepointer wavering about the screen;-). Both can generate .swf. This doesn't exactly answer your questions, but I figure it might be useful to you or someone else anyway, so here goes: This is what I found out when making: http://projects.haskell.org/camp/unique (based on hazy memories and incomplete notes, so may not be entirely accurate). YouTube recommends: * Video Format: MPEG4 (Divx, Xvid) * Resolution: 640x480 pixels * Audio Format: MP3 * Frames per second: 30 * Maximum length: 10 minutes (we recommend 2-3 minutes) * Maximum file size: 1 GB Google video recommends: - MPEG4 (mp3 or mp4 audio) at 2 mbps - MPEG2 (mp3 or mp4 audio) at 5 mbps - 30 frames per second - 640x480 resolution - 4:3 frame - de-interlace I think making .swf is a mistake, but I'm not sure. I recorded sound and audio separately. I don't remember what I used for sound, but that's the easy bit. I probably used either audacity or arecord. To record the video, I think I did this: # Make an xserver-in-a-window, the same size as the video will be Xephyr :1 -screen 640x480 -br -dpi 100 -kb # Give the X server a window manager sawfish --display :1 # Put an xterm in it xterm -display :1 -rv # Stop the shell telling me I have new mail mailpath[0]=/dev/null # Record the video recordmydesktop -o v1.ogv --no-sound -fps 30 -display :1 Then, using audacity, I chopped the audio up into smaller files as necessary. Finally, I used kdenlive to combine the audio files, the video (which looks like actually ended up coming in 3 pieces, but I don't recall why), and the opening/closing picture, with the pretty fades etc. This bit was the hardest to find a good tool for, on Linux. I rendered it in 2 or 3 formats (at 640x480 etc, following the you tube / google video recommendations), and uploaded the one that looked best. You-tube immediately(ish) makes a low quality version available (320x240?), and a high quality version(480x360?), with more readable text etc, is available a little later. The problem comes when trying to scale down the size to what would fit in a browser window (what a viewer would see, without having to scroll around) - text becomes hard to read (quality, not size) if I scale from 1280x800 to 640x400, and if I try to work in a screen area that fits 640x400 in the first place (so no scaling would be needed), I can't really show anything.. The intended topic is still haskellmode for Vim, updating the old screenshot tour from http://www.cs.kent.ac.uk/~cr3/toolbox/haskell/Vim/vim.html so there'd be a gvim window and a browser window (in real life, also a GHCi window, and quite possibly a cygwin window, but lets keep it simple), and the most interesting info is not in graphics, but in the texts, source code, menus, tooltips, ..., I had two xterms 42 columns wide, and 10 and 11 lines tall. They could have been 63 columns wide, but I wanted images to their right. I would recommend working in a 640x480 screen area. If you can't show anything in that area, then people won't be able to see anything in your video (at the size/quality youtube shows it, at least). Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Haskell Logo Voting has started!
On Tue, Mar 17, 2009 at 04:03:21PM -0400, Rick R wrote: QED Only relative ordering matters for condorcet, not the absolute rank. e.g., ranking A, B and C rank 1, and D, E and F rank 6 is exactly the same as ranking e.g., ranking A, B and C rank 2, and D, E and F rank 3. In both cases below, moving X down is moving X from the same rank as B to a new rank between B and C,D. Presumably moving it down a second time would merge the X and C,D ranks. Personally, I found assigning ranks with the dropdown list to be easiest. I first sorted them into approx 8 buckets (using ranks like 10,20,40,60,80,100 as buckets, although some ended up between two buckets), and then sorted my highly ranked buckets (where high is the end near 10). 2009/3/17 Daniel Schüssler anotheraddr...@gmx.de (correction of the example) (105: ) (106: A) (107: X,B) (108: C,D) (109: E ) (110: ) moving down X will result in either (105: A) (106: B) (107: X ) (108: C,D) (109: E ) (110: ) or equivalently (105: ) (106: A) (107: B ) (108: X ) (109: C,D) (110: E) Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Logo Preferences
On Mon, Mar 09, 2009 at 11:13:40AM +, Sebastian Sylvan wrote: Another reason condorcet voting is nice is that there is no need to group similar items together. I think the plan is that once a logo class is chosen, we'll have another vote for the actual colour scheme etc to be used, if applicable. Yes, we could have done this in a single vote, but then people would need to spend time creating 30 variants of each logo, and we'd be ranking 3000, rather than 100, options. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Help using catch in 6.10
On Sat, Feb 21, 2009 at 01:18:35AM +0100, Martijn van Steenbergen wrote: You now need to specify the exact type of the exception you wish to catch. For example, to catch any exception: action `catch` (\(e :: SomeException) - handler) For more information, see: http://www.haskell.org/~simonmar/papers/ext-exceptions.pdf See also Catching all exceptions http://www.haskell.org/ghc/dist/stable/docs/libraries/base/Control-Exception.html#4 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: speed: ghc vs gcc
I think this thread has stopped being useful and started going round in circles, so I've blocked all messages to it and... On Sat, Feb 21, 2009 at 04:28:21PM -0800, Donald Bruce Stewart wrote: I'm setting your moderation bit now ...reverted this. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Open unqualified imports
On Fri, Jan 16, 2009 at 06:42:46AM -0800, eyal.lo...@gmail.com wrote: Closed-unqualified import: import Data.Map(Map, lookup) One problem with this style is that you can get lots of conflicts from your VCS if you have multiple people working on the same module. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: HTTPbis / HTTP-4000.x package available
Hi Sigbjorn, On Thu, Jan 15, 2009 at 10:36:35PM -0800, Sigbjorn Finne wrote: I've yet to gain access to www.haskell.org and update http://www.haskell.org/http, Perhaps this would be a good point to move the website to the community server? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt
On Thu, Jan 15, 2009 at 10:39:18PM -0600, Creighton Hogg wrote: For you folks who work on GHC, is it acceptable to open tickets for poor documentation of modules in base? Personally, I don't think that doing so would make it more likely that someone would actually write the documentation; it would just be another ticket lost in the noise. The best way to get better docs would be to create a wiki page with proposed docs, and send a URL to the libraries list and solicit improvements, in my opinion. While you may say that people asking for docs for X don't know enough to write them, I would claim that they normally manage to use X in their program shortly afterwards, and could thus at least put together a tiny example of what X can be used for (in English) and how to use it (in Haskell). These initial drafts don't have to be perfect, or even correct, as the libraries list can refine them, but someone does need to put the effort into picking a good, small example, getting the phrasing nice, etc. Once the list has settled on good docs, then filing a ticket with the docs attached is definitely useful. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trouble with interact in ghci
Hi Adrian On Wed, Dec 17, 2008 at 11:44:14AM +0100, Adrian Neumann wrote: I have a strange problem with interact on OS X (ghc 6.10.1). It seems to garble stdin. See the After using getContents section of http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-faq.html Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: GHC 6.10.1 for Solaris i86
On Tue, Dec 16, 2008 at 04:24:25PM +0100, Christian Maeder wrote: Donald Halomoan wrote: I am waiting for GHC 6.10. 1 binary for Solaris i86. Thanks. You could try mine: http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/pc-solaris/ghcs/ghc-6.10.1-i386-unknown-solaris2.tar.bz2 it needs libedit.so.0 and libncurses.so.5 Thanks Christian - I've added this to the 6.10.1 download page. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] haskell compiler never comes back
Hi Greg, On Mon, Dec 15, 2008 at 12:23:08PM -0800, Greg Meredith wrote: The simple-minded and smallish code sample at this linkhttp://paste.pocoo.org/show/95503/causes the compiler to go off into never-never land. Any clues would be greatly appreciated. I've lost track of this thread, but if you still think there's a bug then can you report it in the GHC trac please?: http://hackage.haskell.org/trac/ghc/wiki/ReportABug Please give an example without UndecidableInstances if possible, and the smaller the example is the easier it is for us to look into it. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] workarounds for Codec.Compression.Zlib errors in darcs
On Wed, Nov 26, 2008 at 10:28:21PM +, Duncan Coutts wrote: On Wed, 2008-11-26 at 14:38 +, Eric Kow wrote: Older versions of darcs can to produce gzipped files with broken CRCs. We never noticed this because our homegrown wrapper around the C libz library does not pick up these errors. I should note that one moral of this story is to check that your FFI imports are correct. That is, check they import the foreign functions at the right Haskell types. In this case the mistake was that the foreign function returned a C int, but the Haskell foreign import declaration stated that the C function returned IO () rather than IO CInt. While that's true, Haskell also makes it easy to make the same sort of error with IO (or any other Monad) values, whether created with the FFI or not. If you say f = do x y z and y has type IO CInt then you won't get an error (and I don't think you can even ask for a warning with the current implementations). Should we have () :: (Monad m) = m () - m a - m a and force you to write _ - y ? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Possible issue with Hoogle and Haddock?
On Thu, Nov 20, 2008 at 02:25:25PM -0500, Stephen Hicks wrote: I was noticing recently that there seems to be a problem with Hoogle and Haddock. In particular, I just hoogled bracket and got the following result: bracket :: IO a - a - IO b - a - IO c - IO c Clearly this is the wrong type, as it should be bracket :: IO a - (a - IO b) - (a - IO c) - IO c Is this a bug? Is is something that's well-known? Yes, it's a known bug: http://hackage.haskell.org/trac/ghc/ticket/2584 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] problem with boolean splicing in templates in ghc 6.10.1
On Tue, Nov 11, 2008 at 02:16:21PM -0600, Leonidas Fegaras wrote: Seems that boolean splicing in haskell templates in ghc 6.10.1 does not work correctly. If you do: $((\b - [| b |]) True) you get the error: Can't find interface-file declaration for data constructor GHC.Base.True Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error It seems that GHC.Base.True is now GHC.Bool.True, but the splicing code still generates the former. Fixed in HEAD and 6.10 branch, and I've added a test to the testsuite. If you want to build a fixed template-haskell package locally then the fix is: hunk ./Language/Haskell/TH/Syntax.hs 264 -trueName = mkNameG DataName base GHC.Base True -falseName = mkNameG DataName base GHC.Base False +trueName = mkNameG DataName ghc-prim GHC.Bool True +falseName = mkNameG DataName ghc-prim GHC.Bool False Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trouble installing ghc-6.10.1 on linux
Hi Bit, On Mon, Nov 10, 2008 at 03:05:23PM +0200, Bit Connor wrote: First I tried the binary version ghc-6.10.1-i386-unknown-linux.tar.bz2 and I very quickly get this error: $ ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Which we'll further canonicalise into: i386-unknown-linux checking for path to top of build tree... configure: error: cannot determine current directory $ This probably means your libc is too old for the bindist to work. Presumably running utils/pwd/pwd forwardslash gives a SIGFPE or similar? Next I tried building the source version ghc-6.10.1-src.tar.bz2 using ghc 6.6 that is already installed. configure works but make eventually dies with: ... Configuring ghc-6.10.1... cabal-bin: At least the following dependencies are missing: Cabal -any, This is the output of a cabal-bin command, right? Appending -v to the commandline might shed some light on what's going wrong. Or if that doesn't help, try -v 3. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] performance difference for binary-0.4.3.1 with ghc-6.8.3 and ghc-6.10
On Wed, Oct 29, 2008 at 10:40:48AM +0700, Donald Halomoan wrote: Where can I get ghc-6.10? I cannot see it at haskell.org website. No releases from the 6.10 branch have been made yet. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Error building GHC 6.8.3: version of ../../compiler/stage1/ghc-inplace could not be determined
Hi Devin, On Sun, Oct 12, 2008 at 06:03:30PM -0700, Devin Mullins wrote: I'm trying to build 6.8.3 on Linux PowerPC, based on an old binary of 6.4 (latest build for this arch that I found). stage1 seems to have built, but from there, building libraries almost immediately fails: You could unpack the Debian package of 6.8.2: http://packages.debian.org/lenny/powerpc/ghc6/download ar -x foo.deb and then tar -zxf data.tar.gz if I remember correctly. You'll have to manually tweak the paths in package.conf and the shell script wrappers, though. Also, when building yourself, an unregisterised build is more likely to work correctly on PPC/Linux: http://hackage.haskell.org/trac/ghc/wiki/Building/Unregisterised What's going wrong? How do I fix it? Is there a better mailing list to ask? glasgow-haskell-users is a better list for this sort of question. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Could not build win32 dll..
Hi Yakov, On Mon, Oct 13, 2008 at 07:47:15PM +0400, Yakov ZAYTSEV wrote: Sadly, I've found --mk-dll option unrecognized by latest stable GHC 6.8.3.. I'm new to win32 development How one can make win32 dll at the moment? I've successfully compiled Adder sources from example from section 11.5.4 of user guide It sounds like you have the wrong version of the users guide. 12.6 is the section on Windows DLLs with 6.8.3, and doesn't mention that flag: http://www.haskell.org/ghc/docs/6.8.3/html/users_guide/win32-dlls.html Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Code.haskell.org down
On Mon, Sep 29, 2008 at 04:02:06PM +0100, Mitchell, Neil wrote: For me, it seems that code.haskell.org is down. Is this the case for other people as well? It seems code.haskell.org regularly looses connectivity for me :-( Thanks for the heads-up. On http://community.haskell.org/mrtg/localhost_venet0-day.png it looks like Apache had been unhappy since about 8:30 EDT. I've now restarted it. Not sure what caused the problem. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hackage - MacPorts?
On Thu, Sep 04, 2008 at 12:09:33PM -0400, David Menendez wrote: Does anyone know whether arch linux and debian can handle multiple Haskell environments? Debian currently only handles one version of GHC (but package dependencies mean that you can't end up with libraries compiled for the wrong version installed). There wouldn't be any technical problems embedding the ghc version in the package names, and /usr/bin/ghc would work fine with the alternatives system. I don't think that having multiple versions in Debian itself is feasible, but you could certainly do it in another repository. (technically, it's one version of ghc 6.*, as the package names use ghc6 rather than just ghc). Having libraries for other implementations is fine in Debian, although most of the libraries are ghc6-only at the moment, I believe. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Linux version of ghc-6.8.3 won't intall or run for me: Floating point exception.
On Thu, Sep 04, 2008 at 11:20:35PM +0200, Johannes Waldmann wrote: ./configure fails with checking for path to top of build tree... configure: error: cannot determine current directory. I guess the 6.8.3 binary does not work because it expects a newer version of libc or whatever. That's right. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: wavconvert 0.1.1
On Tue, Aug 19, 2008 at 08:51:04AM +0200, Ketil Malde wrote: What is the current recommended way to build debian packages? I notice there's a step-by-step description at http://www.haskell.org/haskellwiki/Creating_Debian_packages_from_Cabal_package That's the way I recommend. Any reason the manual steps here aren't automated? There's not much benefit from automating them (although if someone did so, with a nice way to edit the description etc, then it would be handy). The vast majority of the time in creating Debian packages is: Collecting the copyright info to put in debian/copyright. In theory this is just taking the copyright field from the cabal file, but it's often not that simple, e.g. the latest (1.4.2) X11 package claims: 1999-2003, Alastair Reid 2003-2007, [EMAIL PROTECTED] but when packaging it I found: 1997-2003, Alastair Reid 2006, Frederik Eaton 2007, Spencer Janssen 2003-2007, [EMAIL PROTECTED] in the sources, plus the copyright for the configure script. Checking the Cabal package description is suitable, or writing a suitable description. Testing the package. Thanks Ian, who has no idea what [EMAIL PROTECTED] claiming copyright actually means, if anything ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] helping you contribute to darcs (poll results so far)
On Wed, Aug 06, 2008 at 12:20:17AM -0700, Jeremy Shaw wrote: Are the darcs developers familiar with these papers (available on citeseer): Undo Actions in Collaborative Work, Prakash Knister 1992 Undoing Actions in Collaborative Work: Framework and Experience, Prakash Knister 1994 The papers describe an undo mechanism for multiuser collaborative editing which sounds like how I imagine darcs patch theory to be (and, they even run into the dreaded exponential merge bug and propose a solution). They include some formal reasoning that may be easy to adapt to darcs? I've just had a quick read of http://citeseer.ist.psu.edu/prakash92undoing.html AFAICS this only really deals with the case where there are no conflicts, and doesn't talk about merging. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] helping you contribute to darcs (poll results so far)
On Wed, Aug 06, 2008 at 11:28:58AM -0700, Jeremy Shaw wrote: At Wed, 6 Aug 2008 10:48:03 +0100, Ian Lynagh wrote: I've just had a quick read of http://citeseer.ist.psu.edu/prakash92undoing.html AFAICS this only really deals with the case where there are no conflicts, and doesn't talk about merging. AFAIK, the papers do not talking about merging. They cover conflicts in the case where you want to remove/reorder an older patch which conflicts with a newer one. Only in the case where you have already undone the newer one, and thus can just remove both the new patch and its inverse, I thought. Since I don't know the darcs internals or patch theory, I don't have a concept of how much is still missing The difficult part is still missing :-) Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs
On Fri, Jul 25, 2008 at 01:47:25PM -0400, Jefferson Heard wrote: Is there a list of outstanding bugs somewhere? A few of these are OpenGL/GLUT/OpenAL/ALUT bugs: http://hackage.haskell.org/trac/ghc/query?status=newstatus=assignedstatus=reopenedcomponent=libraries+%28other%29order=priority It would be nice to set up an opengl bug tracker so that we can move them out of GHC's trac, incidentally. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Data.Complex.magnitude slow?
On Thu, Jul 17, 2008 at 06:56:52PM +0200, stefan kersten wrote: c_magnitude0 (Complex.Data.magnitude) 0m7.249s c_magnitude1 (non-scaling version) 0m1.176s c_magnitude2 (scaling version, strict square) 0m3.278s Thanks! I've filed a bug here: http://hackage.haskell.org/trac/ghc/ticket/2450 Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Data.Complex.magnitude slow?
On Thu, Jul 17, 2008 at 05:18:01PM +0200, Henning Thielemann wrote: On Thu, 17 Jul 2008, stefan kersten wrote: i've attached an example program which seems to indicate that the magnitude function from Data.Complex is very slow compared to a more naive implementation (for Complex Float). on my machine (intel core2 duo, osx 10.4) the CPU time using the library function is about 6-7 times as much as when using the other function. any ideas what might be going on? any flaws in my measurement code? Complex.magnitude must prevent overflows, that is, if you just square 1e200::Double you get an overflow, although the end result may be also around 1e200. I guess, that to this end Complex.magnitude will separate mantissa and exponent, but this is done via Integers, I'm afraid. Here's the code: {-# SPECIALISE magnitude :: Complex Double - Double #-} magnitude :: (RealFloat a) = Complex a - a magnitude (x:+y) = scaleFloat k (sqrt ((scaleFloat mk x)^(2::Int) + (scaleFloat mk y)^(2::Int))) where k = max (exponent x) (exponent y) mk = - k So the slowdown may be due to the scaling, presumably to prevent overflow as you say. However, the e^(2 :: Int) may also be causing a slowdown, as (^) is lazy in its first argument; I'm not sure if there is a rule that will rewrite that to e*e. Stefan, perhaps you can try timing with the above code, and also with: {-# SPECIALISE magnitude :: Complex Double - Double #-} magnitude :: (RealFloat a) = Complex a - a magnitude (x:+y) = scaleFloat k (sqrt (sqr (scaleFloat mk x) + sqr (scaleFloat mk y))) where k = max (exponent x) (exponent y) mk = - k sqr x = x * x and let us know what the results are? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Fwd: [GHC] #2407: internal error
Hi Vasili, On Mon, Jun 30, 2008 at 04:15:58AM -0500, Galchin, Vasili wrote: Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2407 I tried to upload/attach a Linux core file to no avail. I'd guess it was too large? Anyway, if you could please attach the source code for the program you were running, and tell us how you compiled it and how you ran it, then that would be very helpful. Also, is the problem repeatable? There's not much we can do without that info. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)
On Tue, Jun 24, 2008 at 11:27:03AM -0700, Jeremy Shaw wrote: The unregisterised build is not that useful because: 1. no FFI If libffi supports it then this should now work. 1. add ARM support to the evil mangler (basically, a few regexps to strip prolog and epilogue stuff from the ASM) Note that the mangler is on the way out for 6.10: http://www.haskell.org/pipermail/cvs-ghc/2008-June/042979.html 5. (Optional), implement native assembly generation You'll need to do this instead. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] message passing style like in Haskell?
On Fri, Jun 20, 2008 at 07:57:58AM +0200, Ketil Malde wrote: Albert Y. C. Lai [EMAIL PROTECTED] writes: While we are kind of on this topic, what makes the characters ħ þ prefix operator by default, while º and most other odd ones infix? alphanumeric vs non-alphanumeric Testing this, I find that isAlpha is True also for 'º', but as the OP claims, Haskell will use it as a(n infix) symbol. This is a bug in GHC. The characters = '\255' were done specially, but incorrectly for many of those = '\128'. I'll fix it, probably by just removing the specialisation for them. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] lhs syntax highlighting in vim
On Wed, Jun 11, 2008 at 01:23:58AM +0100, Eric Stansifer wrote: The syntax highlighting file for literate haskell in vim says that its maintainer is haskell-cafe@haskell.org, so hopefully one of you will find this relevant. In literate haskell files, vim optionally highlights the non-code text according to TeX markup. The syntax highlighting file looks for key phrases (e.g., \documentclass) to decide whether to use TeX markup highlighting; but it (erroneously, in my opinion, and at variance with the documentation) will use TeX markup highlighting on any lhs file that contains the '%' character anywhere in it. The bug is in line 74 of version 1.01 of the lhaskell.vim syntax highlighting file. I agree that this is wrong. It used to only look at the first 20 lines, so we were covering the case where a TeX file began with some TeX comments. We'd also look for ^\s*%, rather than a % anywhere. If we are going to look at the whole file then checking for comments isn't necessary. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Unable to hc-build ghc 6.6.1
On Mon, Jun 09, 2008 at 01:48:48PM -0400, Re, Joseph (IT) wrote: I'm trying to do a registered hc-build on linux2.4 x86 with ghc 6.6.1. You're likely to find it easier to bootstrap by installing a bindist onto the machine, unless that is impossible for some reason. GenApply.o(.text+0x13a55): In function `s5cr_info': : undefined reference to `base_DataziList_zdsintersperse_info' Nothing comes to mind. Were the libraries rebuilt after building GenApply on the machine on which the hc files were generated? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Data.Map traversal.
Hi Serguey, On Sat, Jun 07, 2008 at 05:32:46PM +0400, Serguey Zefirov wrote: So I propose to include those operations into next version of Data.Map. If anyone could point me in the right direction I could do any necessary modifications myself (just because I need it). Please see http://www.haskell.org/haskellwiki/Library_submissions for how to propose changes to the libraries. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Issues of the mailto link on the list archive page
On Sat, Jun 07, 2008 at 10:21:13AM -0400, Xiao-Yong Jin wrote: I had private conversation with Andrzej Jaworski about the fact that his reply to Alberto Ruiz's post is off thread. What he did was clicking on the mailto link beside the author's name on the list archive web page [1]. [1] http://www.haskell.org/pipermail/haskell-cafe/2008-June/044023.html I am not quite sure about what this link is supposed to do. But, if it is meant for people to click and reply to the thread, it is not doing this correctly, as the Subject and In-Reply-To fields in the link are obtained from these fields in the head of current email. It would be useful if the link shows Subject with an added Re: if there is not already one, and fill in the in-Reply-To field with the value from the Message-Id field of current email head. An optional Reference field is informative for most of the email client, too. If anyone knows how we can make mailman do this better, please let us know. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: ghc-core, command line pager for reading GHC Core
On Fri, May 23, 2008 at 05:54:36PM +0200, Henning Thielemann wrote: An even more advanced tool could show differences between two Core listings. That would be great. In the meantime, from GHC 6.10, -ddump-simpl -dsuppress-uniques can be good enough to get by (it means you don't get different random names, so diff more-or-less works). Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question about GHC and Unicode
On Sun, Apr 27, 2008 at 12:29:34PM -0700, Donald Bruce Stewart wrote: Ian Lynagh wrote a pure haskell readline implementation a while ago, I think that was Malcolm Wallace. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: bytestring 0.9.1.0
On Sun, Apr 20, 2008 at 05:07:48PM -0700, Donald Bruce Stewart wrote: The use of bytestring inside GHC is limited only to a little bit in the GHCi modules -- and could easily be replaced, I suspect. Doing so would remove one dependency from GHC's core, as well as making it easier to upgrade bytestring versions. Ian, have you looked at this? I'd certainly be happy for bytestring to be removed from the bootlibs. When I last looked this was pretty easy to do. The only reason it's still in bootlibs at the moment is that you and/or Duncan were talking about rewriting some of the IO library on top of it, but if that happens in the future then we can always put it back into bootlibs again. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: bytestring 0.9.1.0
On Mon, Apr 21, 2008 at 01:27:20AM +0100, Duncan Coutts wrote: I guess we could try and adjust the names of the C symbols to include the package name and version. Or just rewrite the C bits in Haskell? There isn't much of it, and it doesn't look like there is a good reason that C should be able to do it more efficiently than Haskell impls. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANNOUNCE: Well-Typed LLP - The Haskell Consultants
Fellow Haskellers, We (Björn Bringert, Duncan Coutts and Ian Lynagh) are pleased to announce that we have recently set up a Haskell consultancy company, Well-Typed LLP (http://www.well-typed.com/). Our services include application development, library and tool maintenance, project advice, and training. Please see our website or drop us an e-mail for more details. We look forward to hearing from you in the future! -- Björn Bringert, Duncan Coutts, Ian Lynagh http://www.well-typed.com/ [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] SYB with class: Bug in Derive.hs module
On Mon, Mar 31, 2008 at 03:47:04PM +0200, Alexey Rodriguez Yakushev wrote: The Data instance that Derive generates is as follows: instance (Data ctx a, Data ctx (BinTree a), Sat (ctx (BinTree a))) = Data ctx (BinTree a) where Note the recursive |Data ctx (BinTree a)| in the context. This looks like it is related to these tickets: http://hackage.haskell.org/trac/ghc/ticket/1470 http://hackage.haskell.org/trac/ghc/ticket/1735 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] installing ghc-6.8.2
On Wed, Apr 02, 2008 at 07:12:16PM -0400, [EMAIL PROTECTED] wrote: so it's this line that seems of the most interesting cc1: error: unrecognized option `-fno-unit-at-a-time' It looks like your version of ghc isn't designed to be used with the version of gcc you have. Putting this in mk/build.mk ought to let the build go through: SRC_HC_OPTS = -fasm GhcStage1HcOpts = -fasm Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] announce: Glome.hs raytracer
On Thu, Mar 27, 2008 at 02:49:35AM +, Ian Lynagh wrote: On Wed, Mar 26, 2008 at 02:33:20PM -0700, Jim Snow wrote: -Memory consumption is atrocious: 146 megs to render a scene that's a 33k ascii file. Where does it all go? A heap profile reports the max heap size at a rather more reasonable 500k or so. (My architecture is 64 bit ubuntu on a dual-core amd.) I haven't looked properly yet, but it looks like something is leaking memory that shouldn't be. Bug filed here: http://hackage.haskell.org/trac/ghc/ticket/2185 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] announce: Glome.hs raytracer
On Wed, Mar 26, 2008 at 02:33:20PM -0700, Jim Snow wrote: -Memory consumption is atrocious: 146 megs to render a scene that's a 33k ascii file. Where does it all go? A heap profile reports the max heap size at a rather more reasonable 500k or so. (My architecture is 64 bit ubuntu on a dual-core amd.) I haven't looked properly yet, but it looks like something is leaking memory that shouldn't be. The attached Gloom.hs uses constant memory, but if you replace the map with the commented out (parMap rnf) then the memory use seems to keep increasing, even once it has run display once and is running it a second or third time. Thanks Ian import Vec import Clr import Solid import Trace import Spd import Control.Parallel.Strategies import Data.Time.Clock.POSIX import IO get_color :: Flt - Flt - Scene - Clr.Color get_color x y scn = let (Scene sld lights (Camera pos fwd up right) dtex bgcolor) = scn dir = vnorm $ vadd3 fwd (vscale right (-x)) (vscale up y) ray = Ray pos dir in Trace.trace scn ray infinity 3 seqPixel :: (Float,Float,Float,Float,Float) - () seqPixel (f1, f2, f3, f4, f5) = f1 `seq` f2 `seq` f3 `seq` f4 `seq` f5 `seq` () seqList' :: (a - ()) - [a] - () seqList' _ [] = () seqList' f (x : xs) = f x `seq` seqList' f xs gen_pixel_list :: Flt - Flt - Flt - Flt - Flt - Flt - Scene - [(Float,Float,Float,Float,Float)] gen_pixel_list curx cury stopx stopy maxx maxy scene = [ let scx = (x - midx) / midx scy = (y - midy) / midy Clr.Color r g b = get_color scx (scy * (midy / midx)) scene in (scx, scy, r, g, b) | x - [curx .. (stopx - 1)], y - [cury .. (stopy - 1)] ] where midx = maxx / 2 midy = maxy / 2 gen_blocks_list :: Flt - Flt - Flt - Scene - IO () gen_blocks_list maxx maxy block_size scene = let xblocks = maxx / block_size yblocks = maxy / block_size blocks = [ (x*block_size, y*block_size) | x - [0..xblocks-1], y - [0..yblocks-1] ] pixels = map -- (parMap rnf) (\(x,y) - gen_pixel_list x y (x+block_size) (y+block_size) maxx maxy scene) blocks in do print ('A', xblocks) print ('B', yblocks) print ('C', blocks) seqList' (seqList' seqPixel) pixels `seq` return () main :: IO () main = do filedes - openFile scene.spd ReadMode filestring - hGetContents filedes (scene,s) - return $ head $ reads filestring print $ leftover: ++ s display scene display scene display scene display :: Scene - IO () display scene = do t1 - getPOSIXTime gen_blocks_list 512 512 128 scene t2 - getPOSIXTime print (t2-t1) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Broken http://darcs.haskell.org/darcsweb/?
On Wed, Feb 20, 2008 at 07:28:54PM +, Dominic Steinitz wrote: I'm getting errors when I click on any of the links. I've created /tmp/darcsweb-cache and made it writable, which seems to have made it work again. I'm not sure who administers the site. Neither am I, but it needs some tweaking or it will break whenever monk is rebooted. It would be useful if an admin address could be put on the pages, too. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GHC + interactive input/output
Hi Richard, On Mon, Feb 11, 2008 at 12:37:27PM +1300, Richard A. O'Keefe wrote: On 9 Feb 2008, at 2:29 pm, Philip Weaver wrote: GHC certain *could* do this, but it's arguably not the right thing to do. I have reminded the GHC maintainers before that the Haskell specification *REQUIRES* a Haskell system to support this; [this is flushing stdout when we read from stdin, if I have followed correctly] Can you please say where the report says this? I've just skimmed http://haskell.org/onlinereport/io.html and didn't see it mentioned. Also, if there's a GHC bug about this, can you please point me to it? A quick search didn't find anything. there is an example that makes no sense whatever without it. I'm not sure which example you're referring to, but the first example on the above page 21.10.1 Summing Two Numbers starts off by doing hSetBuffering stdout NoBuffering which implies to me that implementations are not expected to do the flushing hack. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] building the unix package and cabal
On Mon, Feb 04, 2008 at 10:50:13AM -0600, Galchin Vasili wrote: more specifically the gmp unsatisfied ref shows up with the DynamicLinker. This works for me, with GHC 6.8.2 and http://hackage.haskell.org/packages/archive/unix/2.2.0.0/unix-2.2.0.0.tar.gz $ ghc --make Setup $ ./Setup configure --user $ ./Setup build If it's not working for you then you might need a RHEL package called something like gmp-devel. If that doesn't fix it, please send us the exact commands you are running and the complete output. Note that you wouldn't normally compile the unix package yourself, however, as it is one of the packages that comes with GHC. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Has character changed in GHC 6.8?
On Tue, Jan 22, 2008 at 03:16:15PM +, Magnus Therning wrote: On 1/22/08, Duncan Coutts [EMAIL PROTECTED] wrote: On Tue, 2008-01-22 at 09:29 +, Magnus Therning wrote: I vaguely remember that in GHC 6.6 code like this length $ map ord a string being able able to generate a different answer than length a string That seems unlikely. Unlikely yes, yet I get the following in GHCi (ghc 6.6.1, the version currently in Debian Sid): map ord a [97] map ord ö [195,182] In 6.6.1: Prelude Data.Char map ord ö [195,182] Prelude Data.Char length ö 2 there are actually 2 bytes there, but your terminal is showing them as one character. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Has character changed in GHC 6.8?
On Tue, Jan 22, 2008 at 03:59:24PM +, Magnus Therning wrote: Yes, of course, stupid me. But it is still the UTF-8 representation of ö, not Latin-1, and this brings me back to my original question, is this an intentional change in 6.8? Yes (in 6.8.2, to be precise). It's in the release notes: http://www.haskell.org/ghc/docs/6.8.2/html/users_guide/release-6-8-2.html GHCi now treats all input as unicode, except for the Windows console where we do the correct conversion from the current code page. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Poisx select support
On Wed, Jan 16, 2008 at 12:40:22PM -0800, Donald Bruce Stewart wrote: If something you need is missing from there, write it as a patch against the darcs repository for `unix', http://darcs.haskell.org/packages/unix/, and submit it to [EMAIL PROTECTED] for inclusion in the next release of that library. Please note that patches for the unix library should follow the library submissions process: http://www.haskell.org/haskellwiki/Library_submissions Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Gtk2HS and GHC 6.8.2
On Fri, Jan 11, 2008 at 06:50:02PM +0100, Peter Verswyvelen wrote: It seems GHC 6.8.2 fixes a couple of bugs in GHC 6.8.1, so I'm using that one. Gtk2HS does not yet detect my GHC 6.8.2 installation, but I guess it is 100% compatible. No, it's not binary-compatible. You'll need a Gtk2HS built for 6.8.2. Is it possible to get the Gtk2HS installer detect GHC 6.8.2? I’m on Windows. I believe Duncan plans to make a Windows installer soon. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] HsColour version confusion
On Thu, Jan 03, 2008 at 06:12:05PM +, Adrian Hey wrote: ..the latest version is 1.9. But the latest version in Hackage is 1.6, the latest version in the ftp downloads dir is 1.8, unless you want a pre-compiled windows version in which case you're stuck with 1.3 :-) The history looks like it is just a changelog, so it can contain changes that have been made in darcs but not yet released. 1.8 is the latest released version (use the tarball/zip, don't get it from darcs), but not everywhere is up-to-date. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell performance
On Thu, Dec 20, 2007 at 10:58:17AM +, Malcolm Wallace wrote: Nobench does already collect code size, but does not yet display it in the results table. I specifically want to collect compile time as well. Not sure what the best way to measure allocation and peak memory use are? This: http://lists.osuosl.org/pipermail/darcs-devel/2006-January/004016.html should be Haskell-implementation-independent, but is probably Linux-specific. Adapting it to other Unix-like OSes is probably easy, but I have no idea about Windows. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Not sure where to send this: delivery failure to community.haskell.org
Hi Magnus, On Thu, Dec 13, 2007 at 10:17:26AM +, Magnus Therning wrote: I received the following response when sending an email to [EMAIL PROTECTED] Delivery to the following recipient has been delayed: Thanks for letting us know. We've been having some trouble with community, and it looks like the mail server had died. It should work now. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Template Haskell examples?
On Tue, Dec 04, 2007 at 12:21:40PM -0500, Brent Yorgey wrote: I'm looking for good examples of using Template Haskell to evaluate CAFs at compile time, e.g. if I have some expensive-to-calculate lookup table which I'd rather have evaluated at comile time and included in the executable as a constant value, rather than having it computed every time the executable is run. I know I've seen examples of this before, but now that I would actually like to study such an example, I can't seem to find any. Any suggestions? Or can anyone make up a simple example on the spot? =) For any Lift'able type you can do something like this: import Language.Haskell.TH.Syntax foo = $( lift (not True) ) where not True is the CAF (and it cannot refer to functions defined in the current module due to restrictions in teh TH implementation). Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Why is this strict in its arguments?
On Tue, Dec 04, 2007 at 03:07:01PM -0800, Ryan Ingram wrote: Is there a reason why strictness is defined as f _|_ = _|_ instead of, for example, forall x :: Exception. f (throw x) = throw x There's discussion along these lines in http://hackage.haskell.org/trac/ghc/ticket/1171 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: New slogan for haskell.org
On Thu, Nov 29, 2007 at 12:40:00PM +, Simon Marlow wrote: What I'd *really* like to see is a bunch of links on the front page leading to pages that describe the main differences between Haskell and some other language (C, Python, Java, C#, F#, ...). The easiest way to grasp what Haskell is all about is by reference to a known baseline, and programmers tend to have different baselines. e.g. the C page might start with Haskell is a functional language, whereas the Python page might start with Haskell is statically typed. As well as I am a $language programmer. linkWhy should I use Haskell?/link perhaps also things like I'm designing a programming course for undergraduates at a university. linkWhy should I use Haskell?/link I run a small company. linkWhy should my developers use Haskell?/link (but probably all with better wordings) Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] New slogan for haskell.org
On Wed, Nov 28, 2007 at 09:27:39AM +0100, Thomas Schilling wrote: Sorry, but are you talking of *one* homepage? This can all go into own wiki pages that are aimed at certain audiences, but this really can't all fit on the front page. I'm reminded of http://www.shiregames.com/shiregames/ We could do something similar, with a column for When you hear programming, if you immediately think of C or perl, then please read the following: and maybe ML or lisp for the other column. I don't know if it's a good idea or not, just something to think about. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Downside of -fglasgow-extensions
On Wed, Nov 28, 2007 at 12:08:30PM +0100, Henning Thielemann wrote: type List = [] Although not wrong, it is not Haskell 98 It's valid Haskell 98 as far as I know. Advantages of listing the extensions used are * Cabal knows whether hugs, for example, can compile the package * Assuming hugs can compile it, you don't have to have give a different flag to enable extensions in hugs * It allows us to see, by querying hackage, which extensions are used a lot and which are not used at all. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] about GADTs on ghci
On Tue, Nov 27, 2007 at 07:11:27PM +, Andrew Coppin wrote: I was under the impression that it's better to use the LANGUAGE pragma rather than the catch-all Glasgow-exts option. However, I can't actually find a language option for GADTs... somebody care to clarify? In GHC 6.8.1 it's GADTs. ghc --supported-languages lists them all. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question about ghci on windows ...
On Wed, Nov 21, 2007 at 05:46:35PM -0600, Galchin Vasili wrote: I am reading through http://www.haskell.org/ghc/docs/latest/html/users_guide/index.html in particular the description of the boot libraries. I don't see how I can display function signatures from compiled code (i.e. .hi). ??? I'm not sure I understand your question, nor am I sure which bit of the users guide you are looking at - can you tell us the section number please? Is ghc --show-iface Foo.hi what you want? Or :t Data.List.length from inside ghci? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question about ghci on windows ...
On Wed, Nov 21, 2007 at 06:57:55PM -0600, Galchin Vasili wrote: I am trying to dump out all function signatures exported from System.Directory. I just tried inside ghci: :! ghc --show-iface System.Directory. Aha, use :browse System.Directory Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?
Hi Brad, On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: $ ./test 23 24 I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? Also, where did your GHC come from, e.g. bindists from the download page, self-compiled? Also, as Christian says, it's best to file a bug report so that the problem doesn't get forgotten about. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ghc 6.8.1 bug?
Can any of you give us a testcase for this, please? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: some links broken in 6.8.1 documentation
Hi Daniil, On Mon, Nov 12, 2007 at 07:56:23PM +0300, Daniil Elovkov wrote: Do I understand it right that the idea of the split was letting all packages (possibly apart from base) emerge more or less independently from ghc releases? It's possible to install a newer version of a bootlib, and for all the libraries other than base and ghc it ought to be easy. So, can package version numbers increase under the same 6.8.1 directory over time? And, if a package is updated between two ghc releases, will the extralibs tarball be updated (and precompiled binary ghc packages, for that matter) ? We won't be making updated 6.8.1 bindists (or Windows installers). Bindists (and the Windows installer) for other releases in the 6.8 branch may well contain different versions of some extralibs, and some extralibs may be added to or removed from the set included. We make very few promises about extralibs, and we don't consider them part of the release. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GHC 6.8.1 Documentation
Hi Cale, On Sat, Nov 10, 2007 at 07:52:18PM -0500, Cale Gibbard wrote: Recently I noticed that all of my bookmarks to the hierarchical libraries documentation broke, and I'm not entirely happy with the solution of just correcting all the links to point at the new URLs since the URLs all have package version numbers in their names, which means that I'll have to update them all over again next time. Is there any chance we could get stable URLs for the latest version of each module somewhere? (Perhaps via symlinks on the webserver?) I'll be trying to remove the version numbers for 6.8.2. I also noticed that the links to the source code seem to be missing from all the 6.8.1 Haddock docs now, which is something that I used quite a lot in the past. It'd be nice to have those back. Yup, that's just a bug. Already fixed in darcs. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: some links broken in 6.8.1 documentation
Hi Daniil, On Sun, Nov 04, 2007 at 03:49:54PM +0300, Daniil Elovkov wrote: A quick look at the 6.8.1 user's guide reveals some broken links: 1) Obtaining code coverage, pointing to http://haskell.org/ghc/docs/6.8.1/html/users_guide/hpc.html redirects to http://projects.unsafeperformio.com/hpc.html which tells that it's not found but guesses at another location, where it is found. I can't see any link to http://projects.unsafeperformio.com/hpc.html in the users guide - am I missing something? 2) Concurrent and parallel haskell http://haskell.org/ghc/docs/6.8.1/html/users_guide/lang-parallel.html (and possibly other pages) have links to libraries according to the pre-base-split structure, like .../base/.. instead of .../parallel/..., which results in those links being broken. Thanks; I've filed a bug here: http://hackage.haskell.org/trac/ghc/ticket/1864 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: torrent for 6.8.1?
On Sun, Nov 04, 2007 at 05:52:08AM -0500, Cale Gibbard wrote: On 04/11/2007, Alex Tarkovsky [EMAIL PROTECTED] wrote: brad clawsie wrote: do torrents exist for 6.8.1? my experience is that people will use torrents if they are offered and they really do lift the pressure from the origin domain (haskell.org) Er, you want to torrent a 7 MB file? ;) That would be a waste of effort and resources server-side, and a minor hassle client-side. Plus the file is so small it won't shave any significant load off the server, especially when nobody will bother to seed it. I'm sure most *nix users get GHC from their distribution's mirrors anyhow. Mirrors are really what you need. ;) Anyway, it seems like haskell.org is becoming more responsive now, but it would be something to keep in mind for the future. I have no evidence, but I'm pretty sure that the responsivity problems are nothing to do with the GHC download page or people downloading the release, but rather with people looking at pages on the Haskell wiki (perhaps by following the http://www.haskell.org/ or http://www.haskell.org/haskellwiki/IRC_channel link in the ANNOUNCE). We have had problems 3 or 4 times in the last few months where lots of people have gone to one of the wiki pages (e.g. due to a story link from programming.reddit.com, or even just a reddit comment linking there). These pages are all dynamically generated, and do things like increment a visitor in a database, which makes apache very unresponsive. We can patch it by redirecting the appropriate page to a static copy, but that's a pain because SSH is also quite unresponsive, we don't currently have an easy way to discover which page is causing the problems, and because I have to stop whatever I'm doing and deal with it immediately. It would be much better if someone could fix the wiki to not fall apart in these circumstances, rather than just fixing the symptom (people can't download GHC when the site is unresponsive). Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] help needed packaging curl bindings
Hi Brad, On Tue, Oct 30, 2007 at 10:10:17PM -0700, brad clawsie wrote: i have decided to take on the task of packaging-up (for hackage) and documenting the curl bindings as available here: http://code.haskell.org/curl/ if the originators of this code are reading this and do not wish me to proceed please say so, i won't be offended I am CCing [EMAIL PROTECTED], the maintainer listed in the Cabal file. otherwise i was wondering if people had good examples to point me to for providing the cross-platform support needed for a FFI-based module such as this. i have made the necessary changes to compile the code on freebsd, but for other platforms i am not sure at all, particularly non-unix style platforms like windows. What sort of changes do you mean? my guess is that providing cross-platform support requires autoconf etc prior to the hackage build process (?) any info/references appreciated Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] help needed packaging curl bindings
On Wed, Oct 31, 2007 at 08:35:42AM -0700, brad clawsie wrote: On Wed, Oct 31, 2007 at 01:36:40PM +, Ian Lynagh wrote: otherwise i was wondering if people had good examples to point me to for providing the cross-platform support needed for a FFI-based module such as this. i have made the necessary changes to compile the code on freebsd, but for other platforms i am not sure at all, particularly non-unix style platforms like windows. What sort of changes do you mean? the need to locate the curl library and headers in different places on different platforms. the defaults used (for linux i presume) do not work for freebsd for example. my guess is i need autotools to do this, but i am not sure Oh, you mean adding library/include paths to the Cabal file? Right, that will either need to use the new pkg-config support in Cabal 1.2 (if curl uses pkg-config), or autotools (substituting into a .buildinfo file is probably the easiest way). Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] does the order of splice definitions matter in template haskell, or is this a bug?
Hi Thomas, On Wed, Oct 31, 2007 at 03:27:20PM -0400, Thomas Hartman wrote: I have a situation where ... stuff... $(expose ['setState, 'getState] f = SetState compiles but f = SetState $(expose ['setState, 'getState] doesn't compile, with error: Not in scope: data constructor 'SetState. Is this a bug? Not if SetState is created by the splice or defined after the splice, no. GHC typechecks up to the splice before running the splice, and then continues typechecking everything past the splice afterwards. So if f is defined before the splice then it must typecheck without the results of the splice (or anything later in the file). Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] SYB3 codebase
On Fri, Oct 19, 2007 at 07:59:37PM +0200, Mads Lindstrøm wrote: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/syb-with-class-0.3 (hereafter know as HappS-SYB3). HappS-SYB3 is based on the SYB3 code you mention, but the code has been changed quite a bit compared to using the Shelarcy patch. So it will properly require some more work. Can you explain what you mean by require some more work please? As far as I can remember the API provided by the code has not changed, the changes have only been improvements to the internal code. I have not been able to find any documentation for HappS-SYB3. The SYB3 paper describes how to use it, but other than that there is no documentation. Of course, if anyone wanted to write some other docs then that would be great! Thus I have no idea of his position on my usage of HappS-SYB3. I'm not sure exactly what you're asking. syb-with-class is BSD3-licenced, and anyone is free to use it for whatever they want within the terms of that licence. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: [Haskell] Re: Trying to install binary-0.4
On Wed, Oct 17, 2007 at 12:54:12PM +0100, Simon Marlow wrote: I've written down the proposed policy for versioning here: http://haskell.org/haskellwiki/Package_versioning_policy This says: If [...] instances were added or removed, then the new A.B must be greater than the previous A.B. This presumably includes changing module imports, or depending on a newer version of a package, which results in the visible instances changing? I think this should be spelt out in the policy. The example: build-depends: mypkg == 2.1.1 should be: build-depends: mypkg = 2.1.1, mypkg 2.1.2 with the current dependency syntax/semantics. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: [Haskell] Re: Trying to install binary-0.4
[would it be possible to pick a single list to discuss this on please, so there is no danger of some people missing some subthreads if they aren't on all the lists, or getting messages 3 times if they are?] On Tue, Oct 16, 2007 at 01:08:49PM +0100, Simon Marlow wrote: 2. Precise dependencies. While not directly related to this, I have the impression some people want precise dependencies so that things work properly when multiple versions of a library are installed. Personally I'm not a fan of that, as if I have package foo: module Foo where data T package bar: module Bar where bar :: T package baz: module Baz where baz :: T - () then baz bar might be a type error if I have multiple versions of foo installed and bar and baz have been compiled against different versions. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is this a known problem?
Hi ok, On Fri, Oct 05, 2007 at 11:04:06AM +1300, ok wrote: UltraSPARC II, Solaris 2.10, gcc 4.0.4 (gccfss), Haskell GHC 6.6.1 binary release. The Sparc/Solaris ports has probably bitrotted. If you do an unregisterised build instead then it should work: http://hackage.haskell.org/trac/ghc/wiki/Building/Unregisterised Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hosting of Haskell project
On Wed, Oct 10, 2007 at 05:05:28PM +0100, Magnus Therning wrote: I've almost reached a state where I wouldn't be ashamed of sharing the code so I looked into my options of free hosting. It seems I only have one option for publishing the code: - Request a project on code.haskell.org. I could only find one option for a homepage for the project: - Create a page on the Wiki. There seems to be no option when it comes to tracking bugs. :-( I could also not locate any option for publishing haddock pages. :-( We'd like community.haskell.org to be usable for all of this, it just needs someone to ask us for something, and then us to get around to setting it up. Currently source repos go on code.haskell.org. We could perhaps have web pages on projects.haskell.org, and some sort of bug tracker on bugs.haskell.org (or perhaps trac.haskell.org etc). Would it be better to make things consistent for users, and have all projects use trac (or something else), or for each project to be able to easily use the bug tracker of their choice? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Filesystem questions
Hi Yitzchak, On Sun, Oct 14, 2007 at 11:33:38AM +0200, Yitzchak Gale wrote: Here it is critical that ListT be taken from http://haskell.org/haskellwiki/ListT_done_right and not the broken implementation that comes with mtl. (Finally fixed in 6.8? Please?) mtl is not part of GHC (although it is currently included in some distributions as an extra lib). If you want to propose that mtl switches to a different definition of ListT then please see http://www.haskell.org/haskellwiki/Library_submissions Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] PROPOSAL: Rename haskell@ to haskell-announce@
On Mon, Sep 24, 2007 at 01:00:40PM +0100, Claus Reinke wrote: in other words, people were meant to subscribe either to haskell or to haskell+haskell-cafe, and posting to haskell was meant to be a flag able to raise a topic briefly over the general din in haskell-cafe. Do people think that is working? Like I think I said in an earlier mail, apart form the announcements and CFPs etc, I couldn't see anything that distinguished those messages sent to haskell@ from most of the -cafe traffic. Also, I think HWN now does a good job of bringing the current issues to the haskell@ readers. (note that the second is slightly misleading: *everything* is off-topic on haskell@ after a few exchanges, i think; note also that crossposting was explicitly ruled out) I don't think cross-posting works well on the lists at all; unless people do some magic they get 2 copies of all the mails, and you can end up with some subthreads only on one list and some only on another. however, it has become a problem, and i don't know whether everyone on haskell-cafe is really subscribed to haskell as well anymore. I think it's reasonable to assume that people subscribing to a list called foo-cafe will also subscribe to lists called foo or foo-announce. And if for some reason someone did choose not to, they won't want to be CCed with things sent to those lists. and busy haskellers can see on haskell@ whenever there is a thread on haskell-cafe that they might want to read/join. Which they would do by polling the web archives or something? does this sound workable? It sounds bizarre to me. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Shouldnt this be lazy too?
On Mon, Sep 24, 2007 at 06:28:59PM +0200, apfelmus wrote: I mean, Haskell does not magically detect that the 32(64)-bit integer (10 + length [11..]) :: Int is bigger than 10 :: Int . That's partly because it's not true. There are arbitrarily large finite lists for which the equivalent is false, e.g. on a 32bit machine: Prelude 10 + length (replicate maxBound 'a') -2147483639 Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] non POSIX/Win32 API support
On Mon, Sep 24, 2007 at 04:10:30PM -0500, Galchin Vasili wrote: I want to provide support for another OS. How are the POISIX modules implemented? E.g. in terms of Green Card? They use hsc2hs, the FFI and a splash of C. You can get the sources from this darcs repo: http://darcs.haskell.org/packages/unix/ Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Library Process (was Building production stable software in Haskell)
On Wed, Sep 19, 2007 at 11:05:05AM +0200, Johan Tibell wrote: Building Debian packages seems a bit hard to do for laymen like me. Anyone have a script that takes a .cabal file, some additional meta data and creates a .deb package? It would be really nice if we could make this procedure easier. Every time I read some documentation on how to create a Debian package, I feel like crying. ;) http://urchin.earth.li/pipermail/debian-haskell/2007-June/000322.html Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: [Haskell] downtime for monk ({darcs, hackage, cvs}.haskell.org) Monday from 3pm UTC
On Wed, Sep 19, 2007 at 09:16:56AM +0100, Bayley, Alistair wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Lynagh The machine called monk ... will be down from 3pm UTC on Monday 24th for an OS and RAM upgrade. Do you have any estimate for how long the upgrades will take? That depends on how many things go wrong. I'll send an e-mail when we believe it's all up and working again. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Building production stable software in Haskell
On Mon, Sep 17, 2007 at 07:54:02AM -0700, David Roundy wrote: cabal-install may help, but what I'd really want is packaging in debian. That's my (biased, because I used debian) standard of a maintained, useful library. It's obviously a biased standard, but it isn't too hard for a package to get into debian, and if it *does* get into debian, it suggests someone cares about it. I don't like requiring obscure packages that perhaps have no code review, and perhaps have no users other than the author. I'm hoping that at some point we will have something similar to http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes where for questions like how do I import graphics and what should I use to write a letter particular packages are recommended, and reasons for choosing one over another are given. I've found this invaluable when doing LaTeX stuff. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe