
9 Dec
2008
9 Dec
'08
8:52 a.m.
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. Duncan