on master help sign in
Document Function
commitf137cd0dac62658d7a39db692af9029daefe0b82 authorOllie Charles <ollie@ocharles.org.uk> dateWed 24 Mar 2021, 13:06 (6 years ago) parent05564f4
1 file changed+3
src/Rel8/Expr/Function.hs+3
src/Rel8/Expr/Function.hs+3
@@ -29,6 +29,9 @@ import Rel8.Schema.Nullability ( Sql )
2929import Rel8.Type ( DBType )
3030
3131
32+-- | This type class exists to allow 'function' to have arbitrary arity. It's
33+-- mostly an implementation detail, and typical uses of 'Function' shouldn't
34+-- need this to be specified.
3235type Function :: Type -> Type -> Constraint
3336class Function arg res where
3437 applyArgument :: ([Opaleye.PrimExpr] -> Opaleye.PrimExpr) -> arg -> res