Re: error building HEAD

2008-06-27 Thread Jim Burton
At Thu, 26 Jun 2008 20:46:52 +0100, Ian Lynagh wrote: > > On Thu, Jun 26, 2008 at 08:32:40PM +0100, Jim Burton wrote: > > > > > > "make install" is probably broken at the moment. You should be able to > > > use it in-place, though (run compiler/stage2/g

Re: error building HEAD

2008-06-26 Thread Jim Burton
At Thu, 26 Jun 2008 16:38:32 +0100, Ian Lynagh wrote: > > On Thu, Jun 26, 2008 at 08:31:24AM -0700, Jim Burton wrote: > > > > I am trying to build ghc from the latest src from darcs (pulled today) on > > ubuntu hardy x86. configure and make *seem* to run fine (no error

error building HEAD

2008-06-26 Thread Jim Burton
I am trying to build ghc from the latest src from darcs (pulled today) on ubuntu hardy x86. configure and make *seem* to run fine (no errors reported) but make install gives a long stream of errors. Here's some of the output. What's wrong? Thanks! Jim --- (.text+0x435): undefined ref

Re: Problem building on host machine when trying to cross-compile an unregistered build

2008-01-21 Thread Jim Burton
On Mon, 2008-01-21 at 15:23 +, Simon Marlow wrote: > Jim Burton wrote: [...] > First thing to note is that bootstrapping from HC files has bitrotted in > 6.8.x, see http://hackage.haskell.org/trac/ghc/ticket/1346. I've updated > the wiki instructions to say this. You shou

Re: Problem building on host machine when trying to cross-compile an unregistered build

2008-01-18 Thread Jim Burton
Truly sorry to bump this, but does anyone have any pointers about building the host part of a cross-compilation? I've tried to follow the wiki instructions and failed. On Mon, 2008-01-14 at 12:41 +, [EMAIL PROTECTED] wrote: > Hi, host machine is Linux i386 and the target is NetBSD alpha, ghc >

Re: Problem building on NetBSD Alpha - Dynamic link dependency?

2008-01-11 Thread Jim Burton
n Thu, 2008-01-10 at 23:47 +0100, Matthias Kilian wrote: > On Wed, Jan 09, 2008 at 10:41:23PM +0000, jim burton wrote: > > Thanks for that, the configure script gets to the end with that help. > > Following the instructions at > > http://hackage.haskell.org/trac

Re: Problem building on NetBSD Alpha - Dynamic link dependency?

2008-01-09 Thread jim burton
ias Kilian wrote: > On Wed, Jan 09, 2008 at 07:42:21PM +, jim burton wrote: > > I'm trying to build unregistered 6.8.2 on NetBSD Alpha 2.1.0_STABLE -- I > > have the following problem which seems to be same as this one - > > http://hackage.haskell.org/trac/ghc/tic

Problem building on NetBSD Alpha - Dynamic link dependency?

2008-01-09 Thread jim burton
I'm trying to build unregistered 6.8.2 on NetBSD Alpha 2.1.0_STABLE -- I have the following problem which seems to be same as this one - http://hackage.haskell.org/trac/ghc/ticket/1860 $ ./configure --enable-hc-boot --enable-hc-boot-unregistered checking build system type... alpha-unknown-netbsd2

Re: How to use #ifdef WIN32

2007-12-20 Thread Jim Burton
untime. Guess what the value of "os" returns on Windows? (hint: its > ill-typed, being not an operating system) > > > > Thanks > > Neil > -- Jim Burton ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

How to use #ifdef WIN32

2007-12-20 Thread Jim Burton
I want to switch code on the OS but this always goes through to the #else (on windows or elsewhere): {-# OPTIONS -cpp #-} #ifdef WIN32 main = putStrLn "hello windows" #else main = putStrLn "hello something else" #endif Does this depend on a Makefile setting WIN32, or should there be something pr

Re: Type Families and enhanced constraints (at run-time)

2007-12-03 Thread Jim Burton
ver, that also would mean that all > your value-level set operations will already have to be completely > executed by the type checker at compile time, which is probably not > what you want. > > Does this make sense? > > Manuel > > Jim Burton: > > Hi, I hope th

Re: Type Families and enhanced constraints (at run-time)

2007-12-03 Thread Jim Burton
On Sat, 2007-12-01 at 11:33 +1000, Matthew Brecknell wrote: [...] > Seems impossible. With GADTs, you can of course go the other way: > > > data A > > data B > > > > data Chr a where > > AChr :: Chr A > > BChr :: Chr B > > > > toChar :: Chr a -> Char > > toChar AChr = 'A' > > toChar BChr = '

Re: Type Families and enhanced constraints (at run-time)

2007-11-30 Thread Jim Burton
en generalising the type(s) for `insert' > Failed, modules loaded: none. I can see why that would be, but what type should the final t be? Is there a way to get round it or is this type of thing restricted to the type-level only? Thanks, Jim > Manuel > > Jim Burton: > > H

Type Families and enhanced constraints (at run-time)

2007-11-29 Thread Jim Burton
Hi, I hope this is the right place to ask about working with type families...I want to make a library of Set operations that carries proofs at the type level, e.g. to make things like this possible, > insert :: Member e s' T => e -> Set s -> Set s' > union :: Union s t u => Set s -> Set t -> Set

IOExts problem

2007-01-04 Thread jim burton
IOExts seems to be unavailable on my system, whereas I'm guessing it should be since the file /usr/lib/ghc-6.4.1/hslibs-imports/lang/IOExts.hi exists...(wrong guess?) Within ghci I get Prelude> :m IOExts Could not find module `IOExts': it is not a module in the current program, or in any known

Installing a library

2006-10-21 Thread jim burton
A very basic question re using GHC 6.4.1 on ubuntu linux - how do I go about installing a library? I want to install HUnit and suspected that /usr/lib/haskell-packages/ghc6/lib would be the place to untar it (into the dir HUnit-1.0), but that doesn't work. I was reluctant to move the contents of H