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

Invalid tags output #85

Open
isovector opened this issue Jan 15, 2022 · 1 comment
Open

Invalid tags output #85

isovector opened this issue Jan 15, 2022 · 1 comment

Comments

@isovector
Copy link

The tags output from hasktags gives me an error in vim:

Format error in tags file "tags"
Before byte 82685

Byte 82685 points to this:

(_
:<|>getAccountFeatureConfigClientM
:<|>_
:<|>_
)	services/galley/src/Galley/Intra/User.hs	237

which is generated via this code:

getAccountFeatureConfigClientM ::
  UserId -> Client.ClientM TeamFeatureStatusNoConfig
( _
    :<|> getAccountFeatureConfigClientM
    :<|> _
    :<|> _
  ) = Client.client (Proxy @IAPI.API)

Removing this entry from tags fixes the file.

@carbolymer
Copy link

I'm having the same issue. Sample input file:
https://github.com/input-output-hk/cardano-base/blob/b769eeac6c0f8e33a81501f51a4e3cd99fbc39d9/cardano-crypto-class/src/Cardano/Crypto/MonadSodium.hs

Running hasktags produces invalid output:

$ hasktags -c -o - cardano-base/cardano-crypto-class/src/Cardano/Crypto/MonadSodium.hs
(
MonadSodium(..) cardano-base/cardano-crypto-class/src/Cardano/Crypto/MonadSodium.hs     18
Cardano.Crypto.MonadSodium      cardano-base/cardano-crypto-class/src/Cardano/Crypto/MonadSodium.hs     17

Error from neovim:

E431: Format error in tags file "tags"
Before byte 2

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