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] [Publish]

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

Versions 0
Change log None available
Dependencies base (>=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]
License GPL-3.0-or-later
Author Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Category Development
Source repo head: git clone https://github.com/phadej/hrep.git
Uploaded by phadej at 2018-12-23T21:00:38Z

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees