Skip to content

Commit

Permalink
Remove some nonsense from the pnmfile output parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ddssff committed Aug 12, 2018
1 parent d22e1cc commit 1c4a675
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Appraisal/Image.hs
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,6 @@ validateJPG path = do
-- its C source code.)
parsePnmfileOutput :: Parsec String () Pnmfile
parsePnmfileOutput = do
r <- go'
case r of
[x] -> return x
[] -> fail "parsePnmfileOutput"
_xs -> fail "multi"
where
go' = catMaybes <$> many ((Just <$> go) <|> (const Nothing <$> anyChar))
go = do
_ <- char 'P'
format <- (\c -> case c of
'B' -> Binary
Expand Down

0 comments on commit 1c4a675

Please sign in to comment.