Skip to content

Documentation suggestion: Mention "sql" quasiquoter in haddock intro overview doc #254

@bitc

Description

@bitc

Multi-line SQL string literals are practically a must, even for simple programs.

Luckily, this library comes with the "sql" quasiquoter for handling this. Unfortunately, this is hidden away in the module Database.PostgreSQL.Simple.SqlQQ And this is among many other modules, that look like they are only for advanced functionality, so it is not clearly visible.

I was actually using a different haskell library for doing multiline SQL strings with postgresql-simple, because I didn't realize that "sql" existed. It was only by accident that I discovered it existed.

I suggest adding to the haddock overview in Database.PostgreSQL.Simple a section that mentions this feature (perhaps with the subheading "Multi-line SQL queries"), with a short example of how to use it.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions