Skip to content

Utility to remove useless whitespace in files

License

Notifications You must be signed in to change notification settings

3noch/Dewhiten

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 around June and July of 2011. Its author is Elliot Cameron. 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 versions 6.12.1, 7.0.3, 7.0.4, and 7.4.1.

It requires the following cabal packages:

  1. System.FilePath.Glob

    Install this package like this:

    $ sudo cabal update
    $ sudo cabal install Glob
    

Building and Installing

To build dewhiten, you'll need GNU 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. (See LICENSE.txt.)

About

Utility to remove useless whitespace in files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 96.8%
  • Makefile 3.2%