packages feed

antlrc 0.0.1 → 0.0.2

raw patch · 2 files changed

+2/−2 lines, 2 files

Files

antlrc.cabal view
@@ -1,5 +1,5 @@ Name:                antlrc-Version:             0.0.1+Version:             0.0.2 Synopsis:            Haskell binding to the ANTLR parser generator C runtime library. Description:         ANTLR is a LL(*) parser generator that supports semantic predicates,                      syntax predicates and backtracking.  antlrc provides a Haskell interface
utils/antlrcmkenums/Main.hs view
@@ -33,7 +33,7 @@  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)