packages feed

simple-sql-parser 0.7.0 → 0.7.1

raw patch · 3 files changed

+12/−9 lines, 3 files

Files

Language/SQL/SimpleSQL/Lex.hs view
@@ -898,8 +898,9 @@   tokensLength Proxy xs = sum (tokenLength <$> xs)  instance TraversableStream SQLStream where-  reachOffset o M.PosState {..} =-    ( Just (prefix ++ restOfLine)+    -- I have no idea what all this is doing+  reachOffset o _x@(M.PosState {..}) =+    ( Just $ actualLine     , PosState         { pstateInput = SQLStream             { sqlStreamInput = postStr@@ -912,6 +913,11 @@         }     )     where+      maybeitsthefullsource = sqlStreamInput pstateInput+      targetLineNo = M.unPos $ sourceLine newSourcePos+      actualLine = case drop (targetLineNo - 1) $ lines maybeitsthefullsource of+          (x:_) -> x+          [] -> "<empty line>"       prefix =         if sameLine           then pstateLinePrefix ++ preLine@@ -930,7 +936,6 @@         case NE.nonEmpty pre of           Nothing -> 0           Just nePre -> tokensLength pxy nePre-      restOfLine = takeWhile (/= '\n') postStr  pxy :: Proxy SQLStream pxy = Proxy
changelog view
@@ -1,5 +1,5 @@-0.7.0-	support autoincrement for sqlite+0.7.1   fix error message source quoting+0.7.0   support autoincrement for sqlite 	support table constraints without separating comma for sqlite 	switch source from literate to regular haskell 	use prettyprinter lib instead of pretty
simple-sql-parser.cabal view
@@ -1,12 +1,10 @@ cabal-version:       2.2  name:                simple-sql-parser-version:             0.7.0+version:             0.7.1 synopsis:            A parser for SQL. -description:--                     A parser for SQL. Parses most SQL:2011+description:         A parser for SQL. Parses most SQL:2011                      queries, non-query DML, DDL, access control and                      transaction management syntax. Please see the                      homepage for more information