highlight: Command line tool for highlighting parts of files matching a regex.

[ bsd3, library, program, text ] [ Propose Tags ]
Versions [RSS] 0.1.0.0, 1.0.0.0, 1.0.0.1, 1.0.0.2
Dependencies ansi-terminal (>=0.6), base (>=4.7 && <5), base-compat (>=0.8), bytestring (>=0.9), containers (>=0.5), directory (>=1.2), filepath (>=1), highlight, lens (>=3), mtl (>=2.0), mtl-compat (>=0.2), optparse-applicative (>=0.11), pipes (>=4), pipes-bytestring (>=2), pipes-group (>=1), pipes-safe (>=2), regex (>=0.10), regex-with-pcre (>=1.0), semigroups (>=0.15), system-filepath (>=0.4), text (>=1.2), transformers (>=0.2), transformers-compat (>=0.3), unix (>=2.0), Win32 (>=2.0) [details]
License BSD-3-Clause
Copyright 2017 Dennis Gosnell
Author Dennis Gosnell
Maintainer cdep.illabout@gmail.com
Category Text
Home page https://github.com/cdepillabout/highlight
Source repo head: git clone git@github.com:cdepillabout/highlight.git
Uploaded by cdepillabout at 2017-06-30T07:28:21Z
Distributions NixOS:1.0.0.2
Executables hrep, highlight
Downloads 2344 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-06-30 [all 1 reports]

Readme for highlight-0.1.0.0

[back to package description]

Highlight

Build Status Hackage Stackage LTS Stackage Nightly BSD3 license

highlight is a

For example, imagine the following Haskell data types and values:

data Foo = Foo { foo1 :: Integer , foo2 :: [String] } deriving Show

foo :: Foo
foo = Foo 3 ["hello", "goodbye"]

data Bar = Bar { bar1 :: Double , bar2 :: [Foo] } deriving Show

bar :: Bar
bar = Bar 10.55 [foo, foo]

If you run this in ghci and type print bar, you'll get output like this:

> print bar
Bar {bar1 = 10.55, bar2 = [Foo {foo1 = 3, foo2 = ["hello","goodbye"]},Foo {foo1 = 3, foo2 = ["hello","goodbye"]}]}

This is pretty hard to read. Imagine if there were more fields or it were even more deeply nested. It would be even more difficult to read.

pretty-simple can be used to print bar in an easy-to-read format:

example screenshot

Usage

Features

Why not (some other package)?

Contributions

Feel free to open an issue or PR for any bugs/problems/suggestions/improvements.