Fix ghc<7.10
This commit is contained in:
parent
2c90e7a700
commit
0fde762500
@ -152,7 +152,7 @@ stdoutGateway (outPf, errPf) chan = do
|
|||||||
sGetLine :: (Maybe String) -> StateT String IO [Line]
|
sGetLine :: (Maybe String) -> StateT String IO [Line]
|
||||||
sGetLine mstr' = do
|
sGetLine mstr' = do
|
||||||
buf <- get
|
buf <- get
|
||||||
let mstr = (buf++) <$> mstr'
|
let mstr = (buf++) `liftM` mstr'
|
||||||
case mstr of
|
case mstr of
|
||||||
Nothing -> put "" >> return [buf]
|
Nothing -> put "" >> return [buf]
|
||||||
Just "" -> return []
|
Just "" -> return []
|
||||||
|
Loading…
Reference in New Issue
Block a user