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

Anonymous modules & duplicate module names #11

Open
istathar opened this issue Jan 19, 2013 · 1 comment
Open

Anonymous modules & duplicate module names #11

istathar opened this issue Jan 19, 2013 · 1 comment

Comments

@istathar
Copy link
Contributor

So hothasktags doesn't seem to generate tags for with source files lacking module declarations. Is that deliberate?

I have a fair number of code snippets sitting around, and I just realized that I wasn't able to jump around within such files as I can in normal ones. Might be nice. Presumably I can attack that by dealing with the Nothing module name case when parsing, if you say it's ok to have a go at.

A related matter is that if you have files TheoreticalSnippet.hs and ExperimentalSnippet.hs both with

module Snippet where

then tags get generated for the first file but not the second. This would presumably be something to do with the Map being used. That might be a bit more involved to deal with, and I wanted to check with you that you weren't relying on the behaviour of keys being merged.

AfC

@luqui
Copy link
Owner

luqui commented Jan 22, 2013

I haven't dug into the code for a while, but I don't recall doing anything tricky. If you unionWith instead of union (or however it plays out) everything should be fine.

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

No branches or pull requests

2 participants