loc.hs: hlintify

This commit is contained in:
gwern0 2010-02-13 23:15:37 +00:00
parent 77b3f62610
commit 32ba0d4a0d

View File

@ -5,9 +5,9 @@ main = do foo <- getContents
let actual_loc = filter (not.null) $ filter isntcomment $
map (dropWhile (==' ')) $ lines foo
loc = length actual_loc
putStrLn $ show loc
print loc
-- uncomment the following to check for mistakes in isntcomment
-- putStr $ unlines $ actual_loc
-- print actual_loc
isntcomment ('-':'-':_) = False
isntcomment ('{':'-':_) = False -- pragmas