Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change error for when module is imported twice #1112

Closed
puffnfresh opened this issue May 11, 2015 · 1 comment · Fixed by #1389
Closed

Change error for when module is imported twice #1112

puffnfresh opened this issue May 11, 2015 · 1 comment · Fixed by #1389

Comments

@puffnfresh
Copy link
Contributor

I recently did this:

import Data.Date (Now(), now)
import Data.Maybe (maybe, Maybe(..))
import Data.Array (filter, modifyAt, (!!))
import Data.Function (on)
import Data.Date (Date(), toEpochMilliseconds)

And kept getting a strange error:

  Unknown type Now

Took me a long time to figure out that I had Data.Date imports twice, and I only figured it out as quickly as I did because I've run into it before. It would be more useful to error:

  Data.Date module has more than one unqualified import statement.
@garyb
Copy link
Member

garyb commented May 11, 2015

Related: #817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants