On Tue, Dec 10, 2002 at 05:25:46PM +0100, Nicolas Oury wrote:
but when I write
ghc -o test Main.hs -lSDLmain, ghc creates its own main, and it doesn't
work.
Probably a stupid question, but if SDL supplies its own main
function, then you don't have to put your functions in a module
called
The suggested changes sound hard to understand and to implement
consistently in all compilers. I lean towards leaving the spec as it
is.
Hmm, I'm not sure why you say these changes are hard to understand.
Which part(s) in particular do you find difficult?
Hugs already implements the first
Oops, one more request which I almost forgot: -hidir currently
specifies both where to search for .hi files, and where to output
hi files. It would be good to split up the two operations into
two distinct options; e.g. use -hidir to search for interface
files, and a new option such as
On Tue, Dec 10, 2002 at 10:35:22AM -, Simon Marlow wrote:
Even if you do need to use --make or GHCi, then I think you
can still
specify all the source files on the command line.
While on the subject of GHC's build options, can we change the
behaviour of -no-hs-main when it's
This message is to air a possible change in the way GHC handles
constructors. Before I make the change I want to check that it isn't
going to mess anyone up. There's some background in
http://www.cse.unsw.edu.au/~chak/haskell/ghc/comm/the-beast/data-types.h
tml
Consider the following
On Wed, Dec 11, 2002 at 11:40:39AM -, Simon Peyton-Jones wrote:
We could make this more consistent in two ways. Alternative (A): One
way would be to make it clearer that $wMkT was the real constructor:
data T = $wMkT Int Int
MkT p = case p of (x,y) - $wMkT x y
f x y =
...this seemed not to make it to the mailing list ([EMAIL PROTECTED]
isn't valid)...
--
Hal Daume III
Computer science is no more about computers| [EMAIL PROTECTED]
than astronomy is about telescopes. -Dijkstra | www.isi.edu/~hdaume
-- Forwarded message --
Date: Wed, 11
Ok, I have made a ghc -vand see the problem :
* on OS X, a SDL program must have a main function supplied by a lib :
libSDLmain.a
* This is achieved by adding -lSDLmain at the command line.
* libHSrts.a supply a main. My program is linked against this lib by a
-lHSrts.
ld is called by ghc
Simon Marlow wrote:
- We could provide the ability to specify a module prefix
to associate
with a directory in the search path. For example, you could say
that the directory '.' is associated with the module prefix
Graphics.Rendering.OpenGL and avoid having to place