cvs commit: fptools/ghc/compiler Makefile count_lines fptools/ghc/compiler/absCSyn AbsCSyn.lhs CLabel.lhs fptools/ghc/compiler/b asicTypes BasicTypes.lhs IdInfo.lhs Literal.lhs MkId.lhs Module.lhs Name.lhs NameEnv.lhs OccName.lhs ...

Sven Panne Sven.Panne@informatik.uni-muenchen.de
Sat, 14 Sep 2002 17:06:11 +0200


Package handling is a bit buggy with GHCi currently, although it seems
to work with GHC (both from HEAD):

----------------------------------------------------------------------
import Posix

main :: IO ()
main = print . fdToInt . intToFd $ 42
----------------------------------------------------------------------
panne@jeanluc:~> ghci -package posix
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 5.05, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
Prelude> :l D.hs
Compiling Main             ( D.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
Loading package lang ... linking ... /usr/lib/ghc-5.05/HSlang.o: unknown symbol `__stginit_CString_'
<interactive>: panic! (the `impossible' happened, GHC version 5.05):
	can't load package `lang'

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.


*Main> :q
Leaving GHCi.
panne@jeanluc:~> ghc -package posix --make -Wall D.hs
ghc-5.05: chasing modules from: D.hs
Compiling Main             ( D.hs, ./D.o )
ghc: linking ...
panne@jeanluc:~> ./a.out
42
----------------------------------------------------------------------

Cheers,
    S.

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc