diff options
| author | Joey Hess <joey@kitenet.net> | 2014-11-18 15:17:12 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-11-18 15:17:12 -0400 |
| commit | 573c6ab4b8800e40bb749aa25eef9bc5fd2132c6 (patch) | |
| tree | 95ef592f5ba6e954d10c91ef1e115dda9bcaf5ce /src/Propellor/Protocol.hs | |
| parent | 9dfae00bd3949e4e23d4c24c7aa7375fdff4c9fb (diff) | |
propellor spin
Diffstat (limited to 'src/Propellor/Protocol.hs')
| -rw-r--r-- | src/Propellor/Protocol.hs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Propellor/Protocol.hs b/src/Propellor/Protocol.hs index bdea7d10..7bbf472d 100644 --- a/src/Propellor/Protocol.hs +++ b/src/Propellor/Protocol.hs @@ -47,13 +47,11 @@ getMarked :: Handle -> Marker -> IO (Maybe String) getMarked h marker = go =<< catchMaybeIO (hGetLine h) where go Nothing = return Nothing - go (Just l) = do - hPutStrLn stderr $ show ("got ", l) - case fromMarked marker l of - Nothing -> do - putStrLn l - getMarked h marker - Just v -> return (Just v) + go (Just l) = case fromMarked marker l of + Nothing -> do + putStrLn l + getMarked h marker + Just v -> return (Just v) req :: Stage -> Marker -> (String -> IO ()) -> IO () req stage marker a = do |
