git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Use isPrefixOf
commit562fab694e195024c1e2af55e9ebc0ae3f67469b authorPhil Freeman <paf31@cantab.net> dateWed 22 Apr 2015, 18:48 (12 years ago) parentb6af4a0
1 file changed+2−2
psci/PSCi.hs+2−2
psci/PSCi.hs+2−2
@@ -22,7 +22,7 @@
2222module PSCi where
2323
2424import Data.Foldable (traverse_)
25−import Data.List (intercalate, nub, sort)
25+import Data.List (intercalate, nub, sort, isPrefixOf)
2626import Data.Traversable (traverse)
2727import Data.Version (showVersion)
2828import qualified Data.Map as M
@@ -231,7 +231,7 @@ instance P.MonadMake Make where
231231 writeTextFile path text = makeIO (const (P.CannotWriteFile path)) $ do
232232 mkdirp path
233233 writeFile path text
234− progress s = unless (take 15 s == "Compiling $PSCI") $ liftIO . putStrLn $ s
234+ progress s = unless ("Compiling $PSCI" `isPrefixOf` s) $ liftIO . putStrLn $ s
235235
236236mkdirp :: FilePath -> IO ()
237237mkdirp = createDirectoryIfMissing True . takeDirectory