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 _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
