Re: ... and another?
Malcolm Wallace <[email protected]> Tue, 1 Nov 2005 16:20:16 +0000
| Newsgroups | gmane.comp.lang.haskell.hat |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Thomas Davie <[email protected]> writes: > data Result = Result { ... } > deriving Show > > data ClassTable = ClassTable (Map.Map String [TypeMatch]) > deriving Show > > generates code that has the function a25v28v25v31showsPrec in both > modules, and thus causes this error: As a workaround, try inserting or deleting an extra blank line (or spaces) in one of the files. > Hat/MatchClass.hs:30:12: > Ambiguous occurrence `a25v28v25v31showsPrec' > It could refer to either `Hat.MatchClass.a25v28v25v31showsPrec', > or `Hat.Result.a25v28v25v31showsPrec', The identifier a25v28v25v31 comes from the position of the deriving Show clause, (line 25, char 28) upto (line 25, char 31). Regards, Malcolm