@@ -48,6 +48,11 @@ sunsafeCastExpr TypeInformation {typeName} =
4848 fromPrimExpr . Opaleye.CastExpr typeName . toPrimExpr
4949
5050
51+-- | Unsafely construct an expression from literal SQL.
52+--
53+-- This is an escape hatch, and can be used if Rel8 can not adequately express
54+-- the query you need. If you find yourself using this function, please let us
55+-- know, as it may indicate that something is missing from Rel8!
5156unsafeLiteral :: String -> Expr a
5257unsafeLiteral = Expr . Opaleye.ConstExpr . Opaleye.OtherLit
5358