mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-09-11 12:55:54 +03:00
This introduces a monad transformer stack to cover our reader (options from the CLI) and except (for handling failure cases, initially missing tags or invalid config). This ensures errors are bubbled up appropriately (and halt program execution) and the Options are available in the correct locations within the app. This also separates options parsing (which remains in app/Main.) from translating those options into the correctly executed runner and generated output.
110 lines
4.1 KiB
Plaintext
110 lines
4.1 KiB
Plaintext
name: unused
|
|
version: 0.4.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: CLI
|
|
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.Aliases
|
|
, 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.Util
|
|
, Unused.CLI.Views
|
|
, Unused.CLI.Views.NoResultsFound
|
|
, Unused.CLI.Views.AnalysisHeader
|
|
, Unused.CLI.Views.MissingTagsFileError
|
|
, Unused.CLI.Views.InvalidConfigError
|
|
, Unused.CLI.Views.SearchResult
|
|
, Unused.CLI.Views.SearchResult.ColumnFormatter
|
|
, 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
|
|
, mtl
|
|
, transformers
|
|
other-modules: App
|
|
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
|
|
, Unused.Cache.FindArgsFromIgnoredPathsSpec
|
|
, Unused.AliasesSpec
|
|
, 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
|