Skip to content

Escape double '??' to a literal '?' #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
don't use monoidal concat in test/Main.hs, just Data.List.concat (for…
… old GHC versions)
Vlix committed Feb 3, 2019
commit 9d65db05d42b3a0179c9eac27ec734f610ebf465
4 changes: 2 additions & 2 deletions test/Main.hs
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ import Control.Applicative
import Control.Exception as E
import Control.Monad
import Data.Char
import Data.List (sort)
import Data.List (concat, sort)
import Data.IORef
import Data.Monoid ((<>))
import Data.String (fromString)
@@ -248,7 +248,7 @@ testQM TestEnv{..} = do
-- expect the entire first part with double QMs replaced with literal '?'
expected = (fromString $ testQuery' "", fromString testQueryRest)
tried = breakOnSingleQuestionMark testQuery
errMsg = mconcat
errMsg = concat
[ "Failed to break on single question mark exclusively:\n"
, "expected: ", show expected
, "result: ", show tried