File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ import Data.List ( sort
1919 , sortBy
2020 , isInfixOf
2121 )
22- import Data.List.Extra ( nubOrdBy )
22+ import Data.List.Extra ( nubOrdBy
23+ , trim
24+ )
2325import Data.Ord ( comparing )
2426import Control.Monad.Extra ( mapMaybeM )
2527
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module Print where
33import Development.Shake
44import Control.Monad.IO.Class
55import Data.List ( dropWhileEnd )
6- import Data.List.Extra ( trimStart , trimEnd )
6+ import Data.List.Extra ( trim )
77import Data.Char ( isSpace )
88
99-- | lift putStrLn to MonadIO
@@ -22,11 +22,6 @@ embedInStars str =
2222printInStars :: MonadIO m => String -> m ()
2323printInStars = liftIO . putStrLn . embedInStars
2424
25-
26- -- | Trim whitespace of both ends of a string
27- trim :: String -> String
28- trim = trimEnd . trimStart
29-
3025-- | Trim the whitespace of the stdout of a command
3126trimmedStdout :: Stdout String -> String
3227trimmedStdout (Stdout s) = trim s
Original file line number Diff line number Diff line change 11{-# LANGUAGE CPP #-}
22module Stack where
33
4+ import Data.List.Extra ( trim )
45import Development.Shake
56import Development.Shake.FilePath
67import Control.Monad
You can’t perform that action at this time.
0 commit comments