Link-time conflicts

2000-07-24 Thread Manuel M. T. Chakravarty
Hi! GHC doesn't spot link-time conflicts between explicitly given .o files and modules contained in packages. For example, if we compile the module module Main (main) where import Pretty main :: IO () main = putStr (render (nest 2 (text "text"))) with `ghc -c -package text Main.h

Re: Link-time conflicts

2000-07-24 Thread Marcin 'Qrczak' Kowalczyk
Mon, 24 Jul 2000 22:16:32 +1000, Manuel M. T. Chakravarty <[EMAIL PROTECTED]> pisze: [...] > we get an executable that dumps core (as the Pretty module in > `-package text' also defines a data type `Doc'). With correct dependencies in Makefile Pretty should be compiled before Main. Then GHC shou

Bug in GHC?

2000-07-24 Thread Hannah Schroeter
Hello! I have this problem with a self compiled GHC, checked out with -rghc-4-07-branch (which should be 4.08, at most with additional commits *on that branch*), checked out about July 18. When I compile the program below with the command ghc -syslib net -fvia-C -o main Main.hs and then run it

Re: Makefile for ghc4.xx on WinNT with cygwinb20?

2000-07-24 Thread Sigbjorn Finne
Hi, just noticed your Q re: Makefiles - this is a classic case of not having set the environment variable MAKE_MODE to UNIX. GNU make on Win32 needs it set so to operate in 'unix' mode as opposed to DOS mode. hth --sigbjorn