[Haskell-cafe] Cabal: defaultMainNoRead and source file location

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Dec 9 08:52:50 EST 2008

On Mon, 2008-12-08 at 14:49 -0200, Mauricio wrote:
> Hi,
> I've just seen this from Distribution.ModuleName (ghc 6.10):
> toFilePath $ ( simple "A.B.C" )
> to which ghci answers: "A.B.C".
> Shouldn't it say  "A/B/C"?

You're using it wrong. A 'simple' module name should have no '.' in it.
Instead use Distribution.Text.simpleParse "A.B.C".

I'll change the assertion into a check that runs every time and add
another function to construct module names from a list, and check.


More information about the Haskell-Cafe mailing list