]> code.delx.au - offlineimap/commitdiff
Fixed compilation errors
authorJohn Goerzen <jgoerzen@complete.org>
Mon, 11 Aug 2008 20:27:40 +0000 (15:27 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Mon, 11 Aug 2008 20:27:40 +0000 (15:27 -0500)
src/Network/IMAP/Connection.hs

index 2a370421f6a4a0beffa462cb18bfd2c286150247..2172c50ca519a091ee5dec53e380bffe0d9def8b 100644 (file)
@@ -42,9 +42,9 @@ stringConnection sdata wdata =
                     else do let (r, s') = genericSplitAt count s
                             put (s', sw)
                             return r
-          lreadLine count =
+          lreadLine =
               do (s, sw) <- get
-                 (line, remainder) <- spanList (\x -> "\r\n" /= take 2 x) s
+                 let (line, remainder) = spanList (\x -> "\r\n" /= take 2 x) s
                  case remainder of
                    [] -> fail "EOF in input in readLine"
                    r -> do put (drop 2 r, sw) -- strip of \r\n