mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-10-26 13:19:58 +03:00
0d2470815d
Why? ==== Parsec is overkill when all that's really needed is splitting on semicolons and converting a string to a non-negative Int. One side-effect of this is to convert the caching mechanism from flat text to CSV, with cassava handling (de-)serialization. Additional ========== Introduce ReaderT to calculate sha once per cache interaction Previously, we were calculating the fingerprint (SHA) for match results potentially twice, once when reading from the cache, and a second time if no cache was found. This introduces a ReaderT to manage cache interaction with a single fingerprint calculation. This also abstracts what's being cached to only care about the fact that the data can be converted to/from csv.
100 lines
3.6 KiB
Plaintext
100 lines
3.6 KiB
Plaintext
name: unused
|
|
version: 0.2.0.0
|
|
synopsis: A command line tool to identify unused code.
|
|
description: Please see README.md
|
|
homepage: https://github.com/joshuaclayton/unused#readme
|
|
license: MIT
|
|
license-file: LICENSE
|
|
author: Josh Clayton
|
|
maintainer: sayhi@joshuaclayton.me
|
|
copyright: 2016 Josh Clayton
|
|
category: Development
|
|
build-type: Simple
|
|
-- extra-source-files:
|
|
cabal-version: >=1.10
|
|
data-files: data/config.yml
|
|
|
|
library
|
|
hs-source-dirs: src
|
|
exposed-modules: Unused.TermSearch
|
|
, Unused.TermSearch.Types
|
|
, Unused.TermSearch.Internal
|
|
, Unused.Parser
|
|
, Unused.Types
|
|
, Unused.Util
|
|
, Unused.Regex
|
|
, Unused.ResponseFilter
|
|
, Unused.ResultsClassifier
|
|
, Unused.ResultsClassifier.Types
|
|
, Unused.ResultsClassifier.Config
|
|
, Unused.Grouping
|
|
, Unused.Grouping.Internal
|
|
, Unused.Grouping.Types
|
|
, Unused.LikelihoodCalculator
|
|
, Unused.Cache
|
|
, Unused.Cache.DirectoryFingerprint
|
|
, Unused.Cache.FindArgsFromIgnoredPaths
|
|
, Unused.TagsSource
|
|
, Unused.CLI
|
|
, Unused.CLI.Search
|
|
, Unused.CLI.MissingTagsFileError
|
|
, Unused.CLI.SearchResult
|
|
, Unused.CLI.SearchResult.ColumnFormatter
|
|
, Unused.CLI.Util
|
|
, Unused.CLI.ProgressIndicator
|
|
, Unused.CLI.ProgressIndicator.Internal
|
|
, Unused.CLI.ProgressIndicator.Types
|
|
other-modules: Paths_unused
|
|
build-depends: base >= 4.7 && < 5
|
|
, process
|
|
, containers
|
|
, filepath
|
|
, directory
|
|
, regex-tdfa
|
|
, terminal-progress-bar
|
|
, ansi-terminal
|
|
, unix
|
|
, parallel-io
|
|
, yaml
|
|
, bytestring
|
|
, text
|
|
, unordered-containers
|
|
, cassava
|
|
, vector
|
|
, mtl
|
|
, transformers
|
|
ghc-options: -Wall -Werror -O2
|
|
default-language: Haskell2010
|
|
|
|
executable unused
|
|
hs-source-dirs: app
|
|
main-is: Main.hs
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror -O2
|
|
build-depends: base
|
|
, unused
|
|
, optparse-applicative
|
|
default-language: Haskell2010
|
|
|
|
test-suite unused-test
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: test
|
|
main-is: Spec.hs
|
|
build-depends: base
|
|
, unused
|
|
, hspec
|
|
, containers
|
|
other-modules: Unused.ParserSpec
|
|
, Unused.ResponseFilterSpec
|
|
, Unused.TypesSpec
|
|
, Unused.LikelihoodCalculatorSpec
|
|
, Unused.Grouping.InternalSpec
|
|
, Unused.TermSearch.InternalSpec
|
|
, Unused.UtilSpec
|
|
, Paths_unused
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror
|
|
default-language: Haskell2010
|
|
|
|
source-repository head
|
|
type: git
|
|
location: https://github.com/joshuaclayton/unused
|