https://github.com/3noch/dewhiten
Utility to remove useless whitespace in files
https://github.com/3noch/dewhiten
Last synced: about 1 year ago
JSON representation
Utility to remove useless whitespace in files
- Host: GitHub
- URL: https://github.com/3noch/dewhiten
- Owner: 3noch
- License: mit
- Created: 2015-10-07T14:37:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-17T20:13:37.000Z (over 11 years ago)
- Last Synced: 2025-03-25T07:01:59.005Z (about 1 year ago)
- Language: Haskell
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Introduction
============
Dewhiten is a small utility for formatting white space in code source
files. It removes extraneous white space at the ends of lines,
extraneous blank lines at the end of files, and formats indentation
for blank lines elsewhere in a file.
Dewhiten was written in [Haskell](http://haskell.org/) around June and
July of 2011. Its author is [Elliot Cameron](http://www.3noch.com/).
You can access the git repository at
http://github.com:CovenantEyes/Dewhiten.
This software is provided WITHOUT ANY WARRANTY OR GUARANTEE OF ANY
KIND. USE AT YOUR OWN RISK.
Dependencies
============
Dewhiten has been tested with
[Glasgow Haskell Compiler](http://www.haskell.org/ghc/) versions
6.12.1, 7.0.3, 7.0.4, and 7.4.1.
It requires the following [cabal](http://www.haskell.org/cabal/)
packages:
1. [`System.FilePath.Glob`](http://hackage.haskell.org/package/Glob)
Install this package like this:
$ sudo cabal update
$ sudo cabal install Glob
Building and Installing
=======================
To build `dewhiten`, you'll need
[GNU Make](http://www.gnu.org/s/make/) or some other `make` utility.
Build `dewhiten` like this:
$ make
Then run it like this:
$ ./dewhiten
To install:
$ sudo make install
If you have `runhaskell` or `runghc` installed, you can also run
`dewhiten` without compiling it like this:
$ runhaskell Dewhiten
or
$ runghc Dewhiten
Usage
=====
For help on using Dewhiten, run this after building it:
$ ./dewhiten --help
License
=======
This package is released under the
[MIT License](http://www.opensource.org/licenses/mit-license.php).
(See LICENSE.txt.)