hsimport 0.3 → 0.4
raw patch · 2 files changed
+41/−21 lines, 2 filesdep ~attoparsecdep ~haskell-src-extsdep ~lens
Dependency ranges changed: attoparsec, haskell-src-exts, lens, mtl
Files
- README.md +3/−3
- hsimport.cabal +38/−18
README.md view
@@ -4,9 +4,9 @@ A command line program for extending the import list of a Haskell source file. `hsimport` gets the module name and the symbol name to import as arguments,-parses the given source file by using the library `haskell-src-exts` and than-tries to only extend the import list if it's necessary. If the symbol is already-imported or if the whole module is already imported, than the given source file+parses the given source file using the library `haskell-src-exts` and then tries+to only extend the import list if it's necessary. If the symbol is already+imported or if the whole module is already imported, then the given source file isn't changed. Installation
hsimport.cabal view
@@ -1,39 +1,56 @@ name: hsimport-version: 0.3+version: 0.4 cabal-version: >=1.9.2 build-type: Simple license: BSD3 license-file: LICENSE maintainer: daniel.trstenjak@gmail.com synopsis: A command line program for extending the import list of a Haskell source file.-description: A command line program for extending the import list of a Haskell source file.+description:+ A command line program for extending the import list of a Haskell source file. category: Utils author: Daniel Trstenjak-data-dir: ""-extra-source-files: README.md tests/inputFiles/*.hs- tests/goldenFiles/*.hs tests/outputFiles/.gitignore+extra-source-files:+ README.md+ tests/inputFiles/*.hs+ tests/goldenFiles/*.hs+ tests/outputFiles/.gitignore source-repository head type: git location: https://github.com/dan-t/hsimport library- build-depends: base >=3 && <5, cmdargs >=0.10.5 && <0.11,- haskell-src-exts >=1.14.0 && <1.15, lens >=3.9.2 && <4.2,- mtl >=2.1.2 && <2.2, text >=0.11.3.1 && <1.2,- split >=0.2.2 && <0.3, attoparsec >=0.10.4.0 && <0.12,- directory >=1.2.0.1 && <1.3- exposed-modules: HsImport HsImport.Args HsImport.ImportSpec- HsImport.Symbol HsImport.Main+ build-depends:+ base >=3 && <5,+ cmdargs >=0.10.5 && <0.11,+ haskell-src-exts >=1.14.0 && <1.16,+ lens >=3.9.2 && <4.3,+ mtl >=2.1.2 && <2.3,+ text >=0.11.3.1 && <1.2,+ split >=0.2.2 && <0.3,+ attoparsec >=0.10.4.0 && <0.13,+ directory >=1.2.0.1 && <1.3+ exposed-modules:+ HsImport+ HsImport.Args+ HsImport.ImportSpec+ HsImport.Symbol+ HsImport.Main exposed: True buildable: True cpp-options: -DCABAL hs-source-dirs: lib- other-modules: HsImport.ImportChange HsImport.Parse Paths_hsimport+ other-modules:+ HsImport.ImportChange+ HsImport.Parse+ Paths_hsimport ghc-options: -W executable hsimport- build-depends: base >=3 && <5, hsimport -any+ build-depends:+ base >=3 && <5,+ hsimport -any main-is: Main.hs buildable: True cpp-options: -DCABAL@@ -41,12 +58,15 @@ ghc-options: -W test-suite hsimport-tests- build-depends: base >=3 && <5, tasty >=0.6 && <0.9,- tasty-golden >=2.2.0.1 && <2.3, filepath >=1.3.0.1 && <1.4,- hsimport -any+ build-depends:+ base >=3 && <5,+ tasty >=0.6 && <0.9,+ tasty-golden >=2.2.0.1 && <2.3,+ filepath >=1.3.0.1 && <1.4,+ hsimport -any type: exitcode-stdio-1.0- hs-source-dirs: tests main-is: Main.hs buildable: True+ hs-source-dirs: tests ghc-options: -W