Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriella439 committed Apr 29, 2017
1 parent 5b29c2f commit 5a41c24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Turtle/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1874,9 +1874,9 @@ header (Shell k) = Shell k'
-- > print directory
single :: MonadIO io => Shell a -> io (Maybe a)
single s = do
ls <- fold s Control.Foldl.list
case ls of
as <- fold s Control.Foldl.list
case as of
[a] -> return (Just a)
_ -> do
let msg = format ("single: expected 1 line of input but there were "%d%" lines of input") (length ls)
let msg = format ("single: expected 1 line of input but there were "%d%" lines of input") (length as)
die msg
2 changes: 0 additions & 2 deletions test/RegressionMaskingException.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import Turtle

import qualified System.Timeout

-- This test fails by hanging
main :: IO ()
main = runManaged (do
Expand Down

0 comments on commit 5a41c24

Please sign in to comment.