[Haskell-cafe] Makefile for a Haskell Project

Scott Lawrence bytbox at gmail.com
Fri Dec 28 07:08:18 CET 2012


On Fri, 28 Dec 2012, xuan bach wrote:

> Hi everyone,
> I'm a newbie in Haskell.
>
> I'm wondering that if there is any tool support
> creating Makefile for Haskell project like Ocamlbuild
> for Ocaml project?

Since ghc handles dependencies automatically, I usually just do,

 	all:
 		ghc --make myprog

And then make sure `myprog.hs` is your Main module.

>
> Thank you,
> Regards.
>
> -- 
> *Le Dinh Xuan Bach*
> *Tel: 01234711869 or +65 86967149
> *
> *Email: pig28789 at gmail.com
> School of Information and Communication,
> *
> *Hanoi University of Science and Technology
> ---------------------------------------------------------------------
> レ。ディン。スアン。バイック
> 電話番号:01234711869 or +65 86967149
> メール:      pig28789 at gmail.com
> *
>

-- 
Scott Lawrence


More information about the Haskell-Cafe mailing list