problem with unix package

Frederik Eaton frederik at a5.repetae.net
Fri Apr 20 06:44:25 EDT 2007


> Or as was suggested as an temporary workaround just compile your code
> -fvia-C and then load it up in GHCi.

I've compiled everything with -fvia-C and I still get the same error:

$ ghci -package vectro       
...
Loading package base ... linking ... done.
Loading package mtl-1.0 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package X11-1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package stm-2.0 ... linking ... done.
Loading package fgl-5.2 ... linking ... done.
Loading package parsec-2.0 ... linking ... done.
Loading package html-1.0 ... linking ... done.
Loading package network-2.0 ... linking ... done.
Loading package futility-base-0.1.9 ... linking ... done.
ghc-6.6: /home/frederik/lib/unix-2.0/ghc-6.6/HSunix-2.0.o: unknown symbol `lstat'
Loading package unix-2.0 ... linking ... ghc-6.6: unable to load package `unix-2.0'

What am I doing wrong?

Thanks,

Frederik

On Fri, Apr 20, 2007 at 09:54:16AM +1000, Duncan Coutts wrote:
> On Thu, 2007-04-19 at 15:30 +0100, Frederik Eaton wrote:
> > Hello Stefan,
> > 
> > Thanks for your reply. Now I have found a repository here, is this the
> > right one?
> > 
> > http://darcs.haskell.org/packages/unix/
> > 
> > However, it doesn't build for me:
> > 
> > $ darcs get --partial http://darcs.haskell.org/packages/unix/
> > ...
> > $ cas configure --user --prefix=$HOME && cas build && cas install --user
> > 
> > Setup.hs:17:30:
> >     Couldn't match expected type `UserHooks'
> >            against inferred type `Maybe UserHooks'
> 
> It would be much easier for you to use the GHC 6.6.x branch rather than
> trying to use the HEAD branch which as you can see depends on
> development versions of various other things (including in this case a
> development version of cabal).
> 
> Or as was suggested as an temporary workaround just compile your code
> -fvia-C and then load it up in GHCi.
> 
> Duncan
> 


More information about the Libraries mailing list