Skip to content

Instantly share code, notes, and snippets.

View takaki's full-sized avatar

TANIGUCHI Takaki takaki

View GitHub Profile
@takaki
takaki / cleanup.hs
Created October 3, 2012 04:10 — forked from Jxck/cleanup.hs
cleanup without .hs files
import System.Directory
import Data.List
forRemove :: (String, String) -> Bool
forRemove (_, ".") = False
forRemove (_, "..") = False
forRemove (_, ".hs") = False
forRemove (_, ".git") = False
forRemove ("cleanup", _) = False
forRemove _ = True