@hackage hgrep0.0
Search Haskell source code from the command line
Categories
License
BSD-3-Clause
Maintainer
tim@utf8.me
Links
Versions
Installation
Tested Compilers
Dependencies (9)
- ansi-terminal >=0.6.3 && <0.8
- base >=4.9 && <4.11
- ghc >=7.10.2 && <8.3
- ghc-exactprint >=0.5 && <0.6
- hscolour >=1.24 && <1.25
- lens >=4.15 && <4.16 Show all…
Dependents (0)
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)