[Haskell-beginners] hierarchy of modules

Daniel Fischer daniel.is.fischer at web.de
Sat Oct 31 08:54:31 EDT 2009

Am Samstag 31 Oktober 2009 13:32:51 schrieb Michael Mossey:
> I want to have a hierarchy of modules for a local project. Not submitting
> it to Hackage yet. I just want to refer to my local modules as
> Basics.CSound
> Basics.Node
> Algo.Fux
> etc.
> how does one set this up?

Top directory: project.cabal, Setup.hs (module Main where main = defaultMain)
Subdirectry Basics:
   File CSound.hs  (module Basics.CSound (exports) where...)
   File Node.hs      (module Basics.Node (exports where...)
Subdirectory Algo:
   File Fux.hs       (module Algo.Fux (exports) where...)

cd Top directory
cabal install

> Thanks,
> Mike

More information about the Beginners mailing list