Re: [Haskell-cafe] ghc-core 0.5 build fails

2010-01-28 Thread Brian Denheyer
On Wed, 27 Jan 2010 23:10:29 -0800 Don Stewart d...@galois.com wrote: briand: Hi all, ghc-core.hs:263:13: Not in scope: data constructor `C.ExitException' Looks like this comes from the base control.exception ? When I go to the web page for control.exception, there is no

Re: [Haskell-cafe] scheduling an alarm

2010-01-27 Thread Brian Denheyer
On Tue, 26 Jan 2010 22:41:44 -0800 Thomas DuBuisson thomas.dubuis...@gmail.com wrote: Brian Denheyer bri...@aracnet.com wrote: On Tue, 26 Jan 2010 10:54:03 -0800 Thomas DuBuisson thomas.dubuis...@gmail.com wrote: doEvent f usDelay = forkIO $ threadDelay usDelay doEvent f

[Haskell-cafe] ghc-core 0.5 build fails

2010-01-27 Thread Brian Denheyer
Hi all, ghc-core.hs:263:13: Not in scope: data constructor `C.ExitException' Looks like this comes from the base control.exception ? When I go to the web page for control.exception, there is no exitexception. My reading of the hackage entry for ghc-core makes me think that I've got the

Re: [Haskell-cafe] scheduling an alarm

2010-01-26 Thread Brian Denheyer
On Tue, 26 Jan 2010 10:54:03 -0800 Thomas DuBuisson thomas.dubuis...@gmail.com wrote: doEvent f usDelay = forkIO $ threadDelay usDelay doEvent f usDelay f Are you sure that's right ? It seems to be a memory-gobbling infinite loop... How about this: f = putStrLn foo doEvent f

[Haskell-cafe] scheduling an alarm

2010-01-25 Thread Brian Denheyer
I cobbled the following together from bits and pieces I found on mailing lists. Seems straightforward, but the code I've included just sits there. The awaitSignal seems to be causing a problem, in that if I remove it (and don't call forever recursively) then I get my ALARM 5 sec later.

Re: [Haskell-cafe] hsql won't install due to system.time

2010-01-22 Thread Brian Denheyer
On Fri, 22 Jan 2010 11:17:15 + John Lato jwl...@gmail.com wrote: Hello, Could this be a global/user install issue? That is, if the old-time package is installed per-user, and you're trying to install a package globally, the user-installed packages all show up as hidden, because they

Re: [Haskell-cafe] hsql won't install due to system.time

2010-01-21 Thread Brian Denheyer
On Thu, 21 Jan 2010 11:36:42 +0100 Marc Weber marco-owe...@gmx.de wrote: Hi Brian hsql is compatibel with most recent ghc yet. Well I am using 6.10.4, so should I use a patched version, or simply apply the fixes which Malcolm provided ? You can get patches for the .cabal files here:

Re: [Haskell-cafe] hsql won't install due to system.time

2010-01-21 Thread Brian Denheyer
On Thu, 21 Jan 2010 09:01:01 + Malcolm Wallace malcolm.wall...@cs.york.ac.uk wrote: The easiest workaround is to change your local copy of the .cabal file for hsql, modifying the build-depends line to make a more precise dependency on old-time, e.g. build-depends: old-time-1.0.0.2

[Haskell-cafe] formatTime doesn't work with local time ??

2010-01-20 Thread Brian Denheyer
My error: Couldn't match expected type `T.UTCTime' against inferred type `T.LocalTime' In the second argument of `formatTime', namely `date' In the expression: formatTime %Y/%m/%e %k:%M:%S date But the docs have LocalTime listed as one of the FormatTime instances:

Re: [Haskell-cafe] formatTime doesn't work with local time ??

2010-01-20 Thread Brian Denheyer
On Wed, 20 Jan 2010 07:15:07 -0800 Brian Denheyer bri...@aracnet.com wrote: My error: Couldn't match expected type `T.UTCTime' against inferred type `T.LocalTime' In the second argument of `formatTime', namely `date' In the expression: formatTime %Y/%m/%e %k:%M:%S

[Haskell-cafe] hsql won't install due to system.time

2010-01-20 Thread Brian Denheyer
Database/HaskellDB/HSQL.hs:25:7: Could not find module `System.Time': it is a member of the hidden package `old-time-1.0.0.3' it is a member of the hidden package `old-time-1.0.0.2' Use -v to see a list of the files searched for. old-time-1.0.0.2 is installed (via cabal).

[Haskell-cafe] time of day

2009-12-27 Thread Brian Denheyer
Hi All, What's the best way to get the year/month/day/hour/min/sec of the current time ? I've become mired in confusion with Time, Data.Time, DateTime and I think there is even an old-time. Might be a couple of calendar libraries in there, not quite sure... Thanks, Brian

[Haskell-cafe] separate cabal installations on separate machines

2009-11-26 Thread Brian Denheyer
Hello, I have server where my home directory resides. I use cabal from (at least) two machines with different processors (i386, powerpc) and the common home directory. I noticed that there is a --global option which does the right thing and places the installs in /usr/local, but it looks like

[Haskell-cafe] hackage unix broken

2009-11-26 Thread Brian Denheyer
System/Posix/Process/Internals.hs:10:17: Module `GHC.Conc' does not export `Signal' The breakage is reported on hackage. The GHC.Conc page is still showing Signal, so it seems like this shouldn't be a problem. Is this a ghc library bug, i.e. should I start a ticket, or has it simply moved

[Haskell-cafe] some help debugging ghci build on powerpc

2009-11-22 Thread Brian Denheyer
I'm trying to build ghc so that ghci will be included under linux power-pc. The build dies here: ~/ghc6-6.10.4/rts$ /home/briand/ghc6-6.10.4/ghc/stage1-inplace/ghc -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline

[Haskell-cafe] prologue junk on ppc (debian)

2009-11-19 Thread Brian Denheyer
Got the following: Building uvector-0.1.0.5... [ 1 of 13] Compiling Data.Array.Vector.Prim.Text ( Data/Array/Vector/Prim/Text.hs, dist/build/Data/Array/Vector/Prim/Text.o ) Prologue junk?: .type sD7_entry, @function sD7_entry: # 25 /tmp/ghc14266_0/ghc14266_0.hc 1 That seems bad...