hrep: Search Haskell files

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Lexically search Haskell files.

Even the file is formatted as

computeComponentId
:: Bool -- deterministic mode
-> Flag String

the search for computeComponentId :: will find it:

./Cabal/Distribution/Backpack/Id.hs:33:computeComponentId
./Cabal/Distribution/Backpack/Id.hs:34:    :: Bool -- deterministic mod

In other words, hrep tries to match a sequence of tokens

It's not super fast, not super smart, but might be better than grep sometimes.

% time hrep 'tcMonoExpr, _ ::' compiler
compiler/typecheck/TcExpr.hs:123:tcMonoExpr, tcMonoExprNC
compiler/typecheck/TcExpr.hs:124:    :: LHsExpr GhcRn     -- Expression to type check
hrep 'tcMonoExpr, _ ::' compiler  2,53s user 0,18s system 99% cpu 2,714 total

Kind of related project of mine: jsgrep

Properties

Version0
Change logNone available
Dependenciesbase (>=4.11.1.0 && <4.12 || >=4.12.0.0 && <4.13), bytestring (>=0.10.8.2 && <0.11), containers (>=0.5.11.0 && <0.6 || >=0.6.0.1 && <0.7), directory (>=1.3.1.5 && <1.4), filepath (>=1.4.2 && <1.5), haskell-lexer (>=1.0.2 && <1.1), machines (>=0.6.4 && <0.7), mtl (>=2.2.2 && <2.3), optparse-applicative (>=0.14.3.0 && <0.15), semigroupoids (>=5.3.1 && <5.4), utf8-string (>=1.0.1.1 && <1.1) [details]
LicenseGPL-3.0-or-later
AuthorOleg Grenrus <oleg.grenrus@iki.fi>
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
CategoryDevelopment
Source repositoryhead: git clone https://github.com/phadej/hrep.git
Executableshrep
UploadedSun Dec 23 21:00:38 UTC 2018 by phadej

Downloads

Maintainers' corner

For package maintainers and hackage trustees