A ctags file generator for cabal/stack project dependencies.
Go to file
Matt Parsons 6edbdc3435
get running on new lts (#102)
* get running on new lts

* add lower bound on conduit

* clean up stack.yaml files

* more cabal based testing

* ban cpp

* remove lens, wreq dependencies

* sigh

* Add issue note

* maybe this is faster???

* should speed it up

* bump lower bound

* relax bound
2020-03-13 21:58:14 -06:00
.github New Release and Process Improvements 2018-12-17 19:24:05 -07:00
codex get running on new lts (#102) 2020-03-13 21:58:14 -06:00
src get running on new lts (#102) 2020-03-13 21:58:14 -06:00
test Combine fixes from #81 and #88 (#91) 2018-11-29 16:46:46 -07:00
.gitignore Ignore TAGS 2018-12-21 15:55:39 -08:00
.travis.yml get running on new lts (#102) 2020-03-13 21:58:14 -06:00
CHANGELOG.md get running on new lts (#102) 2020-03-13 21:58:14 -06:00
codex.cabal get running on new lts (#102) 2020-03-13 21:58:14 -06:00
LICENSE Fix LICENSE details as suggested by @begriffs. 2014-07-02 21:19:34 +01:00
Makefile support lts-14 2020-02-21 10:16:58 -07:00
README.md Add .travis.yml and badge. 2015-10-21 23:50:56 +02:00
Setup.hs Initial commit. 2014-04-23 23:55:11 +01:00
stack.yaml get running on new lts (#102) 2020-03-13 21:58:14 -06:00
stack.yaml.lock get running on new lts (#102) 2020-03-13 21:58:14 -06:00

Codex

View on hackage Build Status Join the chat at https://gitter.im/aloiscochard/codex

This tool download and cache the source code of packages in your local hackage, it can then use this local cache to generate a tags file aggregating the sources of all the dependencies of a given cabal/stack project.

You basically do codex update in your project directory and you'll get a file (codex.tags by default, or TAGS when using emacs format) that you can use in your favorite text editor.

By default the generated tags file will include tags of the current project as well, this functionality can be disabled in your ~/.codex file.

Install

Codex is published on Hackage (and also mirrored on Stackage and NixOS).

cabal install codex

Note: You might have to install binary dependencies manually as cabal does not support them yet!

Usage

By default hasktags will be used, and need to be in the PATH, the tagger command can be fully customized in ~/.codex.

The configuration file is automatically generated with default values when running the tool for the first time.

codex [update] [cache clean] [set tagger [hasktags|ctags]] [set format [vim|emacs|sublime]]
  • update: Synchronize the tags file in the current project directory (use --force to discard tags file hash)
  • cache clean: Remove all tags file from the local hackage cache
  • set tagger [hasktags|ctags]: Update the ~/.codex configuration file for the given tagger
  • set format [vim|emacs|sublime]: Update the ~/.codex configuration file for the given format

Note: codex will browse the parent directory for cabal projects and use them as dependency over hackage when possible.

VIM

Put this in your .vimrc:

set tags=tags;/,codex.tags;/

IMPORTANT: You must use a version >= 7.4 (or you'll get E431: Format error in tags file "codex.tags")

FAQ