hgrep: Search Haskell source code from the command line

[ bsd3, language, library, program ] [ Propose Tags ]

Search Haskell source code from the command line.

Powered by ghc-exactprint.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0, 0.1
Change log CHANGELOG.md
Dependencies ansi-terminal (>=0.6.3 && <0.8), base (>=4.9 && <4.11), ghc (>=7.10.2 && <8.3), ghc-exactprint (>=0.5 && <0.6), hgrep, hscolour (>=1.24 && <1.25), lens (>=4.15 && <4.16), optparse-applicative (>=0.13 && <0.15), template-haskell (>=2.11 && <2.13), transformers (>=0.5 && <0.7), transformers-bifunctors (>=0.1 && <1.0) [details]
License BSD-3-Clause
Author Tim Humphries
Maintainer tim@utf8.me
Category Language
Home page https://github.com/thumphries/hgrep
Bug tracker https://github.com/thumphries/hgrep
Source repo head: git clone git://github.com/thumphries/hgrep.git
Uploaded by TimHumphries at 2017-10-03T10:36:13Z
Distributions
Executables hgrep
Downloads 1443 total (8 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-03 [all 1 reports]

Readme for hgrep-0.0

[back to package description]

hgrep

Search Haskell source code from the command line.

Powered by ghc-exactprint.

Usage

hgrep requires an expression and a set of files to search across to function. For now, an expression can only be the full name of a type or an expression.

$> hgrep
Usage: hgrep EXPRESSION [FILE]
$> hgrep main main/hgrep.hs
main/hgrep.hs:16:1-13

-- | Run the program.
main :: IO ()
main/hgrep.hs:(17,1)-(18:27)

main = do
  putStrLn "Hello, world!"
$> hgrep PrintOpts src/**/*.hs
src/Language/Haskell/HGrep/Internal/Data.hs:(40,1)-(42,28)

data PrintOpts = PrintOpts {
    poColourOpts :: ColourOpts
  } deriving (Eq, Ord, Show)