[Haskell-cafe] RE: module names

Scherrer, Chad Chad.Scherrer at pnl.gov
Fri Dec 16 10:55:50 EST 2005


-----Original Message-----
From: S Koray Can [mailto:skoraycan at aim.com]

Why not do this: name none of those modules Main.hs, and have an empty 
module Main.hs with only "import MainDeJour" and "main = 
MainDeJour.main" so you can just edit just that file.

Cheers,
Koray

----------------------------------------------------------------------
Yeah, I like that approach. That saves me from having to remember which 
file I most recent used as main. Seems easy enough to even set it up so
that
load MainDuJour
writes the file Main.hs with

import MainDuJour
main = MainDuJour.main

and then and then calls
ghc --make Main.hs -o mainDuJour

This will do for now, but still feels really kludgy, especially for Haskell.

-Chad


More information about the Haskell-Cafe mailing list