aboutsummaryrefslogtreecommitdiff
path: root/Utility/Lsof.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-04-26 19:25:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-04-26 19:25:05 -0400
commitc7999da69b039829acc3b7da8005224af5bf6ed8 (patch)
treeb17c7d897d95503f1af66efc98e28da1179d798c /Utility/Lsof.hs
parenta885d67e97c63d8fff657f6eb8d503fd91b0b42c (diff)
hlint
Diffstat (limited to 'Utility/Lsof.hs')
-rw-r--r--Utility/Lsof.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/Lsof.hs b/Utility/Lsof.hs
index 63009f723..b0d2bc53c 100644
--- a/Utility/Lsof.hs
+++ b/Utility/Lsof.hs
@@ -5,7 +5,7 @@
- Licensed under the GNU GPL version 3 or higher.
-}
-{-# LANGUAGE BangPatterns, CPP #-}
+{-# LANGUAGE CPP #-}
module Utility.Lsof where
@@ -110,7 +110,7 @@ parseFormatted s = bundle $ go [] $ lines s
{- Parses lsof's default output format. -}
parseDefault :: LsofParser
-parseDefault = catMaybes . map parseline . drop 1 . lines
+parseDefault = mapMaybe parseline . drop 1 . lines
where
parseline l = case words l of
(command : spid : _user : _fd : _type : _device : _size : _node : rest) ->