Re: [Haskell-cafe] Cross-compiling of GHC

2007-09-17 Thread Ian Lynagh
On Mon, Sep 17, 2007 at 07:32:53PM +0800, L.Guo wrote: I have toolchain for the targer system. Using which, I can compile on PC and run the program on the embed system. This isn't something that anyone's ever done with GHC, to the best of my knowledge. You'd probably have to get your hands

Re: [Haskell-cafe] Tiny documentation request

2007-09-10 Thread Ian Lynagh
On Sun, Sep 09, 2007 at 05:38:03PM +0200, Sven Panne wrote: On Sunday 09 September 2007 16:40, Andrew Coppin wrote: I have the following page bookmarked: http://haskell.org/ghc/docs/latest/html/libraries/ I'd like to ask 2 things. 1. Would it be possible to make the *huge* list of

Re: [Haskell-cafe] :, infix operator, infix constructor, et cetera

2007-08-26 Thread Ian Lynagh
On Sun, Aug 26, 2007 at 01:35:33PM +0100, Andrew Coppin wrote: Isaac Dupree wrote: Except that (for no particularly good reason) : is a reserved symbol Really? That's interesting... AFAIK, according to the Report, it shouldn't be. It is; from

Re: [Haskell-cafe] is there a way to run tests at compile time using TH

2007-08-26 Thread Ian Lynagh
On Sun, Aug 26, 2007 at 01:20:52AM -0700, Alex Jacobson wrote: I'd like to have code not compile if it doesn't pass the tests. Is there a way to use TH to generate compiler errors if the tests don't pass? This should do it, in a different module to that which defines runtests: $( case

Re: [Haskell-cafe] Help using CGIT

2007-08-22 Thread Ian Lynagh
On Wed, Aug 22, 2007 at 01:27:00PM -0500, Rich Neswold wrote: newtype App a = App (ReaderT Connection (CGIT IO) a) deriving (Monad, MonadIO, MonadReader Connection) Unfortunately, when another module tries to actually use the monad, I get warnings about No instance for (MonadCGI App).

Re: [Haskell-cafe] -f flag to runghc broken, or is it just me? (because trying switch elegantly between ghc 6.6 and ghc 6.7)

2007-08-22 Thread Ian Lynagh
On Wed, Aug 22, 2007 at 01:38:39PM -0400, Thomas Hartman wrote: $ runghc -f /usr/local/bin/ghc-6.6.1 arghandling-nice.hs does nothing. Contrary to the usage message, you aren't actually allowed a space after -f in 6.6.1 (but you are in 6.7). Use runghc -f/usr/local/bin/ghc-6.6.1

[Haskell-cafe] Re: trouble building 6.7 on ubuntu

2007-08-16 Thread Ian Lynagh
On Thu, Aug 16, 2007 at 09:39:54AM -0400, Thomas Hartman wrote: The programs included with the Ubuntu system are free software; 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

Re: [Haskell-cafe] howto install ghc-6.7.* ?

2007-08-12 Thread Ian Lynagh
On Sat, Aug 11, 2007 at 11:44:17AM +0200, Marc A. Ziegert wrote: those extralibs seem to be installed in /usr/local/lib/ghc-6.7.20070810/lib/ but registered in ghc-6.7.20070810/driver/package.conf.inplace instead of /usr/local/lib/ghc-6.7.20070810/package.conf Now fixed, thanks. By

Re: [Haskell-cafe] Infinity v0.1

2007-08-12 Thread Ian Lynagh
Hi Austin, On Sat, Aug 11, 2007 at 11:13:38PM -0500, Austin Seipp wrote: (there is no darcs repo yet, although I have emailed someone about a possible account for darcs.haskell.org.) http://community.haskell.org/admin/ is probably a better fit. Thanks Ian

Re: [Haskell-cafe] positive Int

2007-08-02 Thread Ian Lynagh
On Thu, Aug 02, 2007 at 12:17:06PM -0700, brad clawsie wrote: as far as i know, the haskell standard does not define a basic Int type that is limited to positive numbers. Haskell 98 doesn't have such a type, no, but in today's libraries there is Data.Word.Word. Operations like subtraction will

Re: [Haskell-cafe] Strange behavior of executeFile

2007-07-29 Thread Ian Lynagh
On Sun, Jul 29, 2007 at 10:34:10AM -0700, Bryan O'Sullivan wrote: Simon Marlow was going to look into this problem a few months ago, but I don't know if he's had a chance to. It's fixed in the HEAD: http://hackage.haskell.org/trac/ghc/ticket/724 Thanks Ian

Re: Re : Re : [Haskell-cafe] Indentation woes

2007-07-26 Thread Ian Lynagh
On Thu, Jul 26, 2007 at 08:17:06PM -0400, anon wrote: but one could likewise dismiss the entire layout business as a needlessly complicated way to save a few keystrokes if one were so inclined. The main point of layout, in my eyes, is to make code more readable. It achieves this both by

Re: [Haskell-cafe] Weird ghci behaviour?

2007-07-20 Thread Ian Lynagh
Hi Dan, On Fri, Jul 20, 2007 at 02:12:12PM -0700, Dan Piponi wrote: On Unix-like OSes: If I run ghc test.hs and then run ghci test.hs, ghci fails to load up my code. I have to touch test.hs and then run ghci. I can understand ghci refusing to recompile something it thinks it has already

Re: [Haskell-cafe] List of authors happy to have work moved to theHaskell wiki

2007-07-14 Thread Ian Lynagh
On Sat, Jul 14, 2007 at 05:26:27PM +0100, Claus Reinke wrote: (if you post material you may later want to use in your book, or interim results from your research projects; remember, anything on the wiki is free for all, so anyone could republish it if it ends up there..)? (sorry if you

Re: [Haskell-cafe] Multiple instancing of functions with FFI

2007-07-13 Thread Ian Lynagh
Hi Darrell, On Mon, Jul 09, 2007 at 05:48:47PM -0700, Lewis-Sandy, Darrell wrote: I am having trouble exporting multiple instances of a polymorphic function similar to the example in the Haskell 98 Foreign Function Interface 1.0 addendum (page 6). My specific code is below: Thanks for the

Re: [Haskell-cafe] Maintaining the community

2007-07-13 Thread Ian Lynagh
On Fri, Jul 13, 2007 at 09:35:09AM +0100, Malcolm Wallace wrote: Yes, the sheer volume of posts is definitely becoming a problem (for me, at least). The Haskell lists are quite peculiarly named; the haskell@ list is pretty much what would be haskell-announce@ anywhere else, and haskell-cafe@

Re: Re[2]: [Haskell-cafe] Binary serialization, was Re: Abstraction leak

2007-07-05 Thread Ian Lynagh
On Thu, Jul 05, 2007 at 06:08:45PM +0100, Duncan Coutts wrote: On Thu, 2007-07-05 at 17:51 +0100, Neil Mitchell wrote: - Found that on hackage, downloaded and built OK. Lots of scary warnings about happy, greencard etc, not being found during configure, but let's go on. I've

Re: [Haskell-cafe] Sparse documentation

2007-07-05 Thread Ian Lynagh
Hi Andrew, On Wed, Jul 04, 2007 at 07:26:48PM +0100, Andrew Coppin wrote: Writing documentation for libraries is one way in which ordinary Haskell users can really contribute to the Haskell community. It’s not hard to do (grab the Darcs repo, type away), and it’s widely appreciated.

Re: [Haskell-cafe] formatTime %Q not working

2007-06-29 Thread Ian Lynagh
On Thu, Jun 21, 2007 at 05:39:12PM +0300, Bit Connor wrote: now - getCurrentTime 2007-06-21 13:48:44.298699 UTC formatTime defaultTimeLocale %s now 1182433724 formatTime defaultTimeLocale %Q now %q also always gives me an empty string. It seems to work OK for me with GHC 6.6.1 and

Re: [Haskell-cafe] Updating haskell.org robots.txt

2007-06-29 Thread Ian Lynagh
On Wed, Jun 27, 2007 at 09:42:29PM -0700, Justin Bailey wrote: Any feedback, let me know. Thanks! Thanks for looking at this, Justin! Looks fine to me. Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Best idiom for avoiding Defaulting warnings with ghc -Wall -Werror ??

2007-06-25 Thread Ian Lynagh
On Fri, Jun 22, 2007 at 11:37:15AM -0700, Dave Bayer wrote: z = r Prelude.^ 3 I don't know if (^) in particular is what is causing you problems, but IMO it has the wrong type; just as we have (!!) :: [a] - Int - a genericIndex :: (Integral b) = [a] - b

Re: [Haskell-cafe] Can't build Lambdabot

2007-06-18 Thread Ian Lynagh
On Mon, Jun 18, 2007 at 05:07:19PM +0200, Daniel Fischer wrote: Plugin.hs:46:7: Could not find module `Text.Regex': it is a member of package regex-compat-0.71, which is hidden which would be easy to fix if regex-compat-0.71 WERE hidden, bu it's NOT, it's definitely exposed.

[Haskell-cafe] Re: Darcs on Solaris x86

2007-06-16 Thread Ian Lynagh
On Fri, Jun 15, 2007 at 12:40:40PM +0200, Christian Maeder wrote: Download the new binary dist: http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/pc-solaris/versions/new-ghc-6.6.1-i386-unknown-solaris2.tar.bz2 Ian, could you replace

[Haskell-cafe] Re: [darcs-devel] advice on GADT type witnesses needed

2007-06-15 Thread Ian Lynagh
On Thu, Jun 14, 2007 at 08:27:36PM -0700, Jason Dagit wrote: On 6/14/07, David Roundy [EMAIL PROTECTED] wrote: src/Darcs/Patch/Show.lhs:50:0: Quantified type variable `y' is unified with another quantified type variable `x' When trying to generalise the type inferred for

Re: [Haskell-cafe] Template Haskell, information about data constructor types

2007-06-05 Thread Ian Lynagh
On Mon, Jun 04, 2007 at 10:45:30AM +0100, Neil Mitchell wrote: On 6/4/07, Simon Peyton-Jones [EMAIL PROTECTED] wrote: Perhaps you mean that reify doesn't work on type constructors? (E.g. reify ''Maybe). It should -- if you think it doesn't can you concoct a test case and submit it?

Re: [Haskell-cafe] Language extensions [was: Memoization]

2007-05-29 Thread Ian Lynagh
On Tue, May 29, 2007 at 12:41:19PM -0400, Isaac Dupree wrote: Simon Peyton-Jones wrote: | I wish the compilers would allow more fine grained switches on languages | extensions. -fglasgow-exts switches them all on, but in most cases I'm | interested only in one. Then typing errors or design

Re: [Haskell-cafe] System.Timeout problems

2007-05-27 Thread Ian Lynagh
On Sun, May 27, 2007 at 01:32:40AM +0100, Neil Mitchell wrote: Sadly, it doesn't seem to work for me. Here are the tests I've been using, the results I get, and what I would have liked. All are GHC 6.6 on Windows. -- TEST 1 import System.TimeoutGHC main :: IO () main = do r -

Re: [Haskell-cafe] More on the random idea

2007-05-26 Thread Ian Lynagh
On Sat, May 26, 2007 at 08:12:13PM +0100, Andrew Coppin wrote: It's too large and complicated to use for small things. E.g., if you want to just dash off a little something that needs to evaluate an expression... Well, you can use the GHC API. But this is highly nontrivial. You get the

Re: [Haskell-cafe] GHC Hangs

2007-05-12 Thread Ian Lynagh
On Mon, May 07, 2007 at 10:43:04PM -0500, Josiah Manson wrote: problem? Maybe, but I still think the behavior feels like deadlock, because sometimes compilation hangs while sometimes it does not, and when it hangs there is no CPU usage. Can you get ghc -v output of (a) it hanging and (b) it

[Haskell-cafe] Ignore

2007-05-12 Thread Ian Lynagh
Sorry, please ignore. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Picking an architecture for a Haskell web app

2007-05-10 Thread Ian Lynagh
On Thu, May 10, 2007 at 06:13:16PM +0100, Neil Mitchell wrote: Also remember that evaluating an expression in Haskell is _really_ hard! Really? Looks pretty damn simple to me... In that case I throw down the challenge of writing an interpetter that takes a Haskell syntax tree and

Re: [Haskell-cafe] Picking an architecture for a Haskell web app

2007-05-10 Thread Ian Lynagh
On Thu, May 10, 2007 at 07:24:51PM +0100, Andrew Coppin wrote: On the other hand, parsing Haskell input is intractably hard. Whitespace actually matters, which makes the program to parse Haskell horrendusly complex. Do you know about the algorithm for converting Haskell source into a

Re: [Haskell-cafe] question about Data.Binary and Double instance

2007-04-22 Thread Ian Lynagh
On Wed, Apr 18, 2007 at 09:12:30PM -0700, David Roundy wrote: I just want to read in a file full of Doubles (written in binary format from C++) Note that if you write double's from C++ then you need to read CDoubles in Haskell and then realToFrac them (which will presumably be optimised out

Re: [Haskell-cafe] question about Data.Binary and Double instance

2007-04-22 Thread Ian Lynagh
On Tue, Apr 17, 2007 at 11:42:40PM -0400, Brian Alliet wrote: Perhaps we just don't care about ARM or other arches where GHC runs that Are there really any architectures supported by GHC that don't use IEEE floating point? If so GHC.Float is wrong as isIEEE is always true. The one most

Re: [Haskell-cafe] Re: `Expect'-like lazy reading/Parsec matching on TCP sockets

2007-04-16 Thread Ian Lynagh
Hi Scott, On Mon, Apr 09, 2007 at 10:03:55AM -0600, Scott Bell wrote: Have you got a complete (but preferably small) program showing the problem? Great example, thanks! Sorry for the delay in tracking it down. main :: IO () main = do (_, h, _, p) - runInteractiveCommand telnet nyx.nyx.net

Re: [Haskell-cafe] k-minima in Haskell

2007-04-13 Thread Ian Lynagh
On Fri, Apr 13, 2007 at 07:32:20AM -0400, [EMAIL PROTECTED] wrote: Quoting Thomas Hartman [EMAIL PROTECTED]: Does that mean you can have the k minima in O(n) time, where n is length of list, which would seem to be an improvement? It's worth considering what the theoretical minimum is.

Re: [Haskell-cafe] Re: `Expect'-like lazy reading/Parsec matching on TCP sockets

2007-04-07 Thread Ian Lynagh
On Fri, Apr 06, 2007 at 01:44:01PM -0600, Scott Bell wrote: Ooops! It seems that this doesn't behave well with a -threaded RTS. I get an EOF on handles that I know for a fact shouldn't be receiving them. It still works well without -threaded, but does anyone know why I'm getting this behavior?

Re: [Haskell-cafe] Compiling GHC

2007-03-30 Thread Ian Lynagh
On Fri, Mar 30, 2007 at 04:36:32PM +1000, Chris Witte wrote: I'm tying to compile GHC under mingw (winxp with mingw no cygwin), Loading package base ... linking ... ghc.exe: unable to load package `base' ghc.exe: C:/msys/1.0/local/HSbase.o: unknown symbol `_gettimeofday' any ideas on

[Haskell-cafe] Re: Why the Prelude must die

2007-03-25 Thread Ian Lynagh
I've submitted: http://hackage.haskell.org/trac/haskell-prime/ticket/124 which I hope covers the essence of the result of this thread. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: Why the Prelude must die

2007-03-25 Thread Ian Lynagh
[reply-to set; dropping libraries] On Sun, Mar 25, 2007 at 04:33:51PM +0100, David House wrote: On 25/03/07, Ian Lynagh [EMAIL PROTECTED] wrote: I've submitted: http://hackage.haskell.org/trac/haskell-prime/ticket/124 which I hope covers the essence of the result of this thread

Re: [Haskell-cafe] Performance Help

2007-03-24 Thread Ian Lynagh
On Sat, Mar 24, 2007 at 01:46:33PM +, Dominic Steinitz wrote: Thanks. I'm trying to build just SHA1 but I am getting the following linker errors. Do you know what option I should be adding? [EMAIL PROTECTED]:~/sha11 ghc -o perfTest perfTest.hs -iIgloo/darcs-unstable/src --make -lz

Re: [Haskell-cafe] Rank-2-polymorphism problem

2007-03-23 Thread Ian Lynagh
On Fri, Mar 23, 2007 at 02:18:50PM +0100, Martin Huschenbett wrote: -- The type I want to get. readValue' :: Field - (forall s. SqlBind s = Maybe s) - Value -- First trial: readValue' fld s = if isJust s then readValue fld (fromJust s) else emptyValue fld Is there a reason you don't

Re: [Haskell-cafe] Newbie: Is ‘type’ synonym hiding two much?

2007-03-22 Thread Ian Lynagh
On Thu, Mar 22, 2007 at 06:13:00PM +0300, Dmitri O.Kondratiev wrote: succeed :: b - Parse a b *Before looking at 'succeed' function definition* one may think that 'succeed' is a function of *one* argument of type 'b' that returns object of type 'Parse a b'. Yet, function definition

Re: [Haskell-cafe] Type synonym application

2007-03-19 Thread Ian Lynagh
On Sun, Mar 18, 2007 at 05:47:21PM +, C Rodrigues wrote: Type synonyms aren't applied as I would expect during kind checking. What's going on here? type WithList a b = b [a] type FooPair a b = (b, a - b) -- error: `WithList' is applied to too many type arguments ints1 :: WithList

Re: [Haskell-cafe] Re: HS-Plugins 1.0 chokes on simple test, WinXP GHC-6.6

2007-03-17 Thread Ian Lynagh
On Fri, Mar 16, 2007 at 09:52:10PM -0700, Conal Elliott wrote: BTW, to get hs-plugins to build, I changed two lines in hs-plugins/configure. As it happens, I sent Don a similar patch last night, so hopefully it'll be fixed in darcs soon. First I tried tr -d '\n', but it didn't work, and I

Re: [Haskell-cafe] Newbie question: ghc search path for .c files

2007-03-16 Thread Ian Lynagh
Hi Seth, On Fri, Mar 16, 2007 at 01:53:49PM -0500, Seth J. Fogarty wrote: : ghc -i/home/sfogarty/lib/lp_solve_5.5 mipFFI.c mipFFI.c:1:0: lpkit.h: No such file or directory ghc -I/home/sfogarty/lib/lp_solve_5.5 mipFFI.c should work. If not, add -v to the commandline to see what it is

Re: [Haskell-cafe] Performance Help

2007-03-16 Thread Ian Lynagh
On Sun, Mar 11, 2007 at 08:18:44PM +, Dominic Steinitz wrote: I have re-written the sha1 code so that it is (hopefully) easy to see that it faithfully implements the algorithm (see http://www.itl.nist.gov/fipspubs/fip180-1.htm). Having got rid of the space leak, I have been trying to

Re: [Haskell-cafe] Parallelism on concurrent?

2007-03-13 Thread Ian Lynagh
On Tue, Mar 13, 2007 at 09:41:47PM +0300, Bulat Ziganshin wrote: Tuesday, March 13, 2007, 9:06:31 PM, you wrote: forkOS should work as well, assuming you have OS threads, like in linux 2.6. You should probably be using the -smp compiler flag and not the -threaded compiler flag, I'm

Re: [Haskell-cafe] Literate haskell format unclear (implementation and specification inconsistencies)

2007-03-03 Thread Ian Lynagh
On Sat, Mar 03, 2007 at 12:18:44PM -0500, Isaac Dupree wrote: Here are some (String - Bool) to test lines during parsing. I haven't looked at your definitions in detail, but I think they might be easier to follow (and, ultimately, include in the report) if they were written in a BNF style like

Re: [Haskell-cafe] Build failed - hidden package ?

2007-03-01 Thread Ian Lynagh
On Tue, Feb 27, 2007 at 05:36:29AM +0100, Dunric wrote: Graphics/UI/SDL/Rotozoomer.hs:15:7: Could not find module `Foreign.C': it is a member of package base, which is hidden This is normally caused by forgetting to include build-depends: base in a .cabal file. When cabal

Re: [Haskell-cafe] Literate haskell format unclear (implementation and specification inconsistencies)

2007-03-01 Thread Ian Lynagh
On Wed, Feb 28, 2007 at 05:48:09PM -0500, Isaac Dupree wrote: Trying to implement literate haskell[*], I realized several ways in which the correct behavior for unliterating (especially with regard to errors) was unclear. I have several cases which ghc, hugs and Haskell 98 have differing

Re: [Haskell-cafe] haskell-art mailing list

2007-02-26 Thread Ian Lynagh
On Sat, Feb 24, 2007 at 12:47:19PM +0100, Henk-Jan van Tuyl wrote: Is this something for the list at http://haskell.org/mailman/listinfo That's generated by mailman, and as far as I know can't be easily altered. (Maybe this page could be moved to haskellwiki?) Perhaps adding a list of

Re: [Haskell-cafe] Timezone Database Library

2007-02-05 Thread Ian Lynagh
On Fri, Feb 02, 2007 at 01:54:13PM +, Martin Percossi wrote: Hello, is there a haskell library that provides facilities to read and use the tzfile format [1], or equivalent in Windows? Not as far as I am aware. Thanks Ian ___ Haskell-Cafe

Re: [Haskell-cafe] Fractional sqrt

2007-01-22 Thread Ian Lynagh
On Mon, Jan 22, 2007 at 03:26:38PM +0200, Yitzchak Gale wrote: Can someone with access to darcs.haskell.org please fix this library? darcs get currently does not seem to work for it. http://darcs.haskell.org/numeric-quest/ I've fixed the permissions, although applying patches in the

Re: [Haskell-cafe] GHC performance of 64-bit

2007-01-18 Thread Ian Lynagh
Hi Pedro, On Fri, Jan 05, 2007 at 05:51:43PM +, Pedro Baltazar Vasconcelos wrote: I noticed that GHC generates slower code on an Linux amd64 bit platform than the 32-bit version on a cheaper 32-bit machine. CPUTime for running sieve of Erathostenes to generate 10,000 primes: Is it

Re: [Haskell-cafe] State separation/combination pattern question

2007-01-03 Thread Ian Lynagh
Hi Reto, On Thu, Dec 21, 2006 at 10:11:22PM -0800, Reto Kramer wrote: I've tried to thread the two states (StateA and StateB) using a chain of StateT ... StateT ..., but couldn't really make that work. That is how I would write it; I have attached code for your example. It seems

Re: [Haskell-cafe] porting ghc

2007-01-01 Thread Ian Lynagh
On Sun, Dec 31, 2006 at 02:39:33PM +, Ian Lynagh wrote: http://haskell.org/ghc/docs/6.6/html/building/sec-porting-ghc.html I've been reminded that the building guide is being moved to the wiki, so http://hackage.haskell.org/trac/ghc/wiki/Building (in particular http://hackage.haskell.org

Re: [Haskell-cafe] porting ghc

2006-12-31 Thread Ian Lynagh
Hi Brian, On Mon, Dec 18, 2006 at 10:07:19PM -0800, Brian McQueen wrote: I was trying to get a ghc going in my shell account the other day and found that the data at http://haskell.org/ghc/docs/6.6/html/building/sec-porting-ghc.html didn't apply at all. The system is a netbsd alpha which

Re: [Haskell-cafe] Stack, Heap and GHC

2006-12-16 Thread Ian Lynagh
On Fri, Dec 15, 2006 at 10:05:38AM +, Felix Breuer wrote: On Thu, 14 Dec 2006 15:31:54 -0800, David Roundy [EMAIL PROTECTED] wrote: main = do putStrLn strict foldl1 print $ foldl1' (\a b - a + 1) $ [1..largenum] putStrLn lazy foldl1 print $ foldl1 (\a

Re: [Haskell-cafe] Fwd: Build failure on FC6, ghc66

2006-12-16 Thread Ian Lynagh
Hi Conrad, On Mon, Dec 11, 2006 at 09:56:35AM +0900, Conrad Parker wrote: I received the following bug report from someone trying to build HOgg on Fedora Core 6 (FC6) with its ghc66 package. The build error is: Could not find module `Data.Map': it is a member of package base, which

Re: [Haskell-cafe] SMP support in GHC 6.6 on PPC Macs

2006-12-09 Thread Ian Lynagh
On Sat, Nov 25, 2006 at 11:28:13PM +, Ivan Tomac wrote: I've noticed that code compiled with -threaded doesn't like +RTS - Nthread count as an argument. This seems to be the case with both the binary distribution of GHC 6.6 at www.haskell.org/ghc as well as the version I built from

Re: [Haskell-cafe] non-blocking Socket

2006-12-06 Thread Ian Lynagh
On Mon, Nov 13, 2006 at 12:44:05PM -0800, Donn Cave wrote: Threads, maybe? Is blocking I/O seriously incompatible with the GHC threading model (or one of the models)? The problem is that a blocking IO call would block all threads. We could execute all such calls in their own OS thread, but

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

2006-12-04 Thread Ian Lynagh
On Wed, Nov 29, 2006 at 10:57:52AM +, Neil Davies wrote: In order to get low jitter you have to deliberately wake up early and spin - hey what are all these extra cores for! - knowing the quantisation of the RTS is useful in calibration loop for how much to wake up early. Ah, I see.

Re: [Haskell-cafe] known, I know: class contexts and mutual recursion

2006-12-04 Thread Ian Lynagh
On Wed, Nov 29, 2006 at 06:14:56PM +, Conor McBride wrote: Mmm.lhs:15:1: Contexts differ in length When matching the contexts of the signatures for foo :: forall (m :: * - *). (Monad m) = Thing - m Int goo :: Thing - (Maybe Int - Int) - Int The signature contexts in a

Re: [Haskell-cafe] File locked unnecessarily

2006-12-04 Thread Ian Lynagh
On Sun, Dec 03, 2006 at 08:13:37PM +0100, Arie Peterson wrote: Does anyone know what could cause this locking and/or how to prevent it? Nothing else springs to mind. Are you able to send an example that shows the problem? (obviously the smaller the example, the better). Thanks Ian

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

2006-11-28 Thread Ian Lynagh
On Wed, Nov 22, 2006 at 03:37:05PM +, Neil Davies wrote: Ian/Simon(s) Thanks - looking forward to the fix. I've now pushed it to the HEAD. It will help with the real time enviroment that I've got. Lazy evaluation and GHC's garbage collector will probably cause headaches if you want true

Re: [Haskell-cafe] Difficult memory leak in array processing

2006-11-25 Thread Ian Lynagh
Hi Niko, On Thu, Nov 23, 2006 at 12:11:43PM +0200, Niko Korhonen wrote: I have the following code whose purpose is to add dither (noise) to a given array. The code looks very straightforward but apparently it has a memory leak somewhere. Here I try to run the algorithm for an array of

Re: [Haskell-cafe] searching haskell.org

2006-10-15 Thread Ian Lynagh
On Sun, Oct 15, 2006 at 08:37:19AM -0400, Tamas K Papp wrote: I noticed that searching on Haskell.org (using the Search feature at the bottom) doesn't work as I expected. For example, searching for memoise produces no results. This is searching haskellwiki.

Re: [Haskell-cafe] Haskellers in London (UK)?

2006-10-15 Thread Ian Lynagh
On Sun, Oct 15, 2006 at 01:42:37PM +0100, Ben Moseley wrote: Just thought I'd send out a quick mail to see if there are any other Haskellers based in London who might be interested in getting together occasionally. Did you see

Re: [Haskell-cafe] Profiling CAFs (re-post)

2006-10-10 Thread Ian Lynagh
On Tue, Oct 10, 2006 at 01:31:58PM +0200, Matthias Fischmann wrote: What qualifies as constant applicable form, and why is it not labelled in a more informative way? CAFs are, AIUI, things that are just values (i.e. things that don't take an argument) that have been floated up to the top

Re: [Haskell-cafe] Profiling CAFs (re-post)

2006-10-10 Thread Ian Lynagh
On Tue, Oct 10, 2006 at 05:21:52PM +0200, Matthias Fischmann wrote: Compiling with -caf-all might give you more useful information. Oops. I thought i had that in my Makefile, but appearently i was wrong... If I add it, this is what happens: $ ghc -prof -caf-all Main.hs -o Main # (ghc

Re: [Haskell-cafe] Re: Derived Read instance for types with infix constructors (ghc 6.4.1)

2006-08-26 Thread Ian Lynagh
On Sat, Aug 26, 2006 at 10:15:17PM +0300, Misha Aizatulin wrote: Neil Mitchell wrote: *Main show $ A `And` A A And A For me, using GHCi 6.4.2 + Windows, I get: A `And` A I installed GHC 6.4.2 now (on Linux). It really does print A `And` A, but still doesn't read it. Would you

Re: [Haskell-cafe] Is id strict?

2006-07-30 Thread Ian Lynagh
On Sun, Jul 30, 2006 at 09:44:25AM +0100, David House wrote: I've seen two definitions of a 'strict function', which I'm trying to unite in my mind: 1) f is strict iff f _|_ = _|_. 2) f is strict iff it forces evaluation of its arguments. There is a large sticking point that in my minds

[Haskell-cafe] Re: Packages and modules

2006-07-05 Thread Ian Lynagh
On Wed, Jul 05, 2006 at 01:03:01AM +0100, Brian Hulley wrote: Simon Peyton-Jones wrote: Concerning other mail on this subject, which has been v useful, I've revised the Wiki page (substantially) to take it into account. http://hackage.haskell.org/trac/ghc/wiki/GhcPackages Further input

Re: [Haskell-cafe] Re: [haskell] ANNOUNCE: HNOP 0.1

2006-07-05 Thread Ian Lynagh
On Fri, Jun 30, 2006 at 03:45:57PM -0700, mvanier wrote: I'm at a loss here. Somehow, the SplitObjs option doesn't seem to be doing the job. Any suggestions would be appreciated. It looks like gcc 4.1 is floating all the __asm__(\n__stg_split_marker:); results to the top of the

Re: [Haskell-cafe] Packages and modules

2006-06-26 Thread Ian Lynagh
On Mon, Jun 26, 2006 at 04:20:16PM +0100, Brian Hulley wrote: I don't think this solves the whole problem. Suppose M1 needs to use A.B.C from P1 *and* A.B.C from P2 For a simple example of a case where this might arise, suppose M1 is the migration module for data (stored in a database,

Re: [Haskell-cafe] Re: Space usage problems

2006-01-17 Thread Ian Lynagh
Hi Bulat, On Wed, Jan 18, 2006 at 12:10:45AM +0300, Bulat Ziganshin wrote: Monday, January 16, 2006, 12:52:42 AM, you wrote: IL OK, I have one library which provides IL inflate :: [Word8] -- The input IL - ([Word8], -- A prefix of the input inflated (uncompressed) IL

Re: [Haskell-cafe] Re: Space usage problems

2006-01-15 Thread Ian Lynagh
On Wed, Jan 11, 2006 at 03:00:45PM +, Simon Marlow wrote: Ian Lynagh wrote: On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote: My suggestion: don't use the lazy state monad if you can help it. But a strict state monad would force everything to be loaded into memory at once

Re: [Haskell-cafe] Re: Space usage problems

2006-01-11 Thread Ian Lynagh
On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote: My suggestion: don't use the lazy state monad if you can help it. But a strict state monad would force everything to be loaded into memory at once, right? What would you suggest I use instead? Or do I just have to tread carefully

[Haskell-cafe] Space usage problems

2006-01-10 Thread Ian Lynagh
Hi all, I am having space issues with some decompression code; I've attached a much simplified version as Test1.hs. At the bottom (foo/bar) is the equivalent of deflate. This should be a standalone module which doesn't know about the rest. In the middle (readChunks) is the equivalent of

Re: [Haskell-cafe] Space usage problems

2006-01-10 Thread Ian Lynagh
On Tue, Jan 10, 2006 at 05:28:03PM +, Chris Kuklewicz wrote: I'll make a guess... Ian Lynagh wrote: Hi all, foo :: String - (String, String) foo = runState bar bar :: SecondMonad String bar = do inp - get case inp of [] - return

Re: [Haskell-cafe] Space usage problems

2006-01-10 Thread Ian Lynagh
On Tue, Jan 10, 2006 at 04:44:33PM +, Ian Lynagh wrote: readChunks :: FirstMonad String readChunks = do xs - get if null xs then return [] else do let (ys, zs) = foo xs put zs

[Haskell-cafe] Re: [darcs-conflicts] how to nicely implement phantom type coersion?

2005-12-08 Thread Ian Lynagh
On Thu, Dec 08, 2005 at 09:23:22AM -0500, David Roundy wrote: data EqContext a b = EqContext { safe_coerce :: f(a,b) - f(b,a) } where f(a,b) is a function of two types that returns a type, so the value of f(a,b) might be (Patch a b) or (Patch x b) or something like that. But I'm not sure

Re: [darcs-users] Re: [Haskell-cafe] fptools in darcs now available

2005-05-01 Thread Ian Lynagh
On Sun, May 01, 2005 at 08:28:15PM +0200, Sven Panne wrote: Gour wrote: Nice to hear you are considering to move to darcs. Basically I'm very happy with the working model of CVS, and subversion darcs would allow you to locally record intermediate stages of a change, making it easier to

Re: [Haskell-cafe] invalid character encoding

2005-03-19 Thread Ian Lynagh
On Wed, Mar 16, 2005 at 11:55:18AM +, Ross Paterson wrote: On Wed, Mar 16, 2005 at 03:54:19AM +, Ian Lynagh wrote: Do you have a list of functions which behave differently in the new release to how they did in the previous release? (I'm not interested in changes that will affect

Re: [Haskell-cafe] invalid character encoding

2005-03-19 Thread Ian Lynagh
On Sun, Mar 20, 2005 at 01:33:44AM +, [EMAIL PROTECTED] wrote: On Sat, Mar 19, 2005 at 07:14:25PM +, Ian Lynagh wrote: Most importantly, though: is there any way to remove this file without doing something like an FFI import of unlink? Is there anything LC_CTYPE can be set

Re: [Haskell-cafe] invalid character encoding

2005-03-17 Thread Ian Lynagh
On Thu, Mar 17, 2005 at 06:22:25AM +, Ian Lynagh wrote: [in brief: hugs' (hPutStr h) now behaves differently to (mapM_ (hPutChar h)), and ghc writes the empty string for both when told to write \128] Ah, Malcolm's commit messages have just reminded me of the finaliser changes requiring

Re: [Haskell-cafe] invalid character encoding

2005-03-16 Thread Ian Lynagh
On Tue, Mar 15, 2005 at 10:44:28AM +, Ross Paterson wrote: You can select binary I/O using the openBinaryFile and hSetBinaryMode functions from System.IO. After that, the Chars you get from that Handle are actually bytes. What about the ones sent to it? Are all the following results

Re: [Haskell-cafe] invalid character encoding

2005-03-15 Thread Ian Lynagh
On Tue, Mar 15, 2005 at 10:44:28AM +, Ross Paterson wrote: On Mon, Mar 14, 2005 at 07:38:09PM -0600, John Goerzen wrote: I've got some gzip (and Ian Lynagh's Inflate) code that breaks under the new hugs with: handle: IO.getContents: protocol error (invalid character encoding)

Re: [Haskell-cafe] Sound library?

2004-12-04 Thread Ian Lynagh
On Fri, Dec 03, 2004 at 10:56:24AM -0500, Jason Bailey wrote: Would anyone know of packages out there for Haskell that support mp3's or ogg files? I have a (partial, I think) binding for gstreamer: http://urchin.earth.li/~ian/minstrel/ (you only need GHC 6.3 for hcurses, hgstreamer and

Re: new debian packages and archive: haskell experimental

2003-07-16 Thread Ian Lynagh
On Tue, Jul 15, 2003 at 09:28:32PM -0400, Abraham Egnor wrote: What's the difference between the ghc6 packages provided by your archive and the ones currently in Debian unstable? You can't install the unstable packages on a stable system (too old a libc6 for one thing). These packages are just

gconsym

2001-09-24 Thread Ian Lynagh
Just to make sure I am interpreting the report correctly, is : meant to be a valid qconop regardless of the precedence-level and associativity of the qconop? Thanks Ian ___ Haskell-Cafe mailing list [EMAIL PROTECTED]

Re: gconsym

2001-09-24 Thread Ian Lynagh
On Mon, Sep 24, 2001 at 07:41:42AM -0700, Simon Peyton-Jones wrote: | Just to make sure I am interpreting the report correctly, is | : meant to be a valid qconop regardless of the | precedence-level and associativity of the qconop? I don't really understand the regardless of.. part. But,

Re: let/where

2001-09-19 Thread Ian Lynagh
On Wed, Sep 19, 2001 at 01:53:22PM -0400, Mark Carroll wrote: main = let maybe_index = maybe_read word in putStr (show (if maybe_index == Nothing then DP_Unknown else DP_Number index) ++ \n) where (Just index) = maybe_index BTW, is the above a sane way of getting the

Various software and a question

2001-02-01 Thread Ian Lynagh
Hi all First a brief question - is there a nicer way to do something like #ifdef __GLASGOW_HASKELL__ #include "GHCCode.hs" #else import HugsCode #endif than that (i.e. code that needs to be different depending on if you are using GHC or HUGS)? Secondly, I don't know

<    1   2