Question about Data.List
Matthew Donadio <[email protected]> Mon, 19 May 2003 12:52:40 -0400
| Newsgroups | gmane.comp.lang.haskell.nhc.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I have module that uses Data.List that won't compile with nhc, but works with ghc and hugs. I get an error that identifier "sum" is defined twice. I assume that this is because Data.List reexports the Prelude list functions. I can make the error go away by explicitly using either Prelude.sum or Data.List.sum, but shouldn't Data.List.sum shadow Prelude.sum? Thanks. -- Matthew Donadio ([email protected])