Skip to content

Commit

Permalink
Fix ambiguity on fold with enumerator-0.4.5, use strict foldl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wright committed Jan 20, 2011
1 parent e550bb3 commit a3c184f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/antlrcmkenums/Main.hs
Expand Up @@ -33,7 +33,7 @@ tokenLine (n, b) =

tokenLines :: Handle -> Int -> [B8.ByteString] -> IO Int
tokenLines h acc bytes =
let (n, tl) = foldl sumLines (acc, B8.empty) (zip [acc..] bytes)
let (n, tl) = L.foldl' sumLines (acc, B8.empty) (zip [acc..] bytes)
sumLines :: (Int, B8.ByteString) -> (Int, B8.ByteString) -> (Int, B8.ByteString)
sumLines (m, s) (n, t) =
(x, u)
Expand Down

0 comments on commit a3c184f

Please sign in to comment.