I ran into trouble when using the preprocessor on a file with quasi-quoted content. Here is a minimal plausible example where this comes up:
module Lib where
import Database.PostgreSQL.Simple (Query)
import Database.PostgreSQL.Simple.SqlQQ (sql)
someQuery :: Query
someQuery = [sql| SELECT some_table.some_column FROM some_table |]
In this situation, the preprocessor should not rewrite the query.
Solution
I added a special case to the edit function to look out for a parenthesized expression of a certain form and place them in the output stream unchanged. I do not use the plugin and did not touch it.
Problem
I ran into trouble when using the preprocessor on a file with quasi-quoted content. Here is a minimal plausible example where this comes up:
In this situation, the preprocessor should not rewrite the query.
Solution
I added a special case to the edit function to look out for a parenthesized expression of a certain form and place them in the output stream unchanged. I do not use the plugin and did not touch it.