mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 00:20:22 -07:00
loc.hs: hlintify
This commit is contained in:
parent
77b3f62610
commit
32ba0d4a0d
@ -5,9 +5,9 @@ main = do foo <- getContents
|
|||||||
let actual_loc = filter (not.null) $ filter isntcomment $
|
let actual_loc = filter (not.null) $ filter isntcomment $
|
||||||
map (dropWhile (==' ')) $ lines foo
|
map (dropWhile (==' ')) $ lines foo
|
||||||
loc = length actual_loc
|
loc = length actual_loc
|
||||||
putStrLn $ show loc
|
print loc
|
||||||
-- uncomment the following to check for mistakes in isntcomment
|
-- uncomment the following to check for mistakes in isntcomment
|
||||||
-- putStr $ unlines $ actual_loc
|
-- print actual_loc
|
||||||
|
|
||||||
isntcomment ('-':'-':_) = False
|
isntcomment ('-':'-':_) = False
|
||||||
isntcomment ('{':'-':_) = False -- pragmas
|
isntcomment ('{':'-':_) = False -- pragmas
|
||||||
|
Loading…
x
Reference in New Issue
Block a user