From e91c625ff7cb7f19dfb9642e67dd3040464cd86b Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Mon, 7 Jul 2014 23:55:38 -0300 Subject: [PATCH] Small doc improvement. --- src/Database/Esqueleto.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Database/Esqueleto.hs b/src/Database/Esqueleto.hs index c4c09b4..0a10a9b 100644 --- a/src/Database/Esqueleto.hs +++ b/src/Database/Esqueleto.hs @@ -381,9 +381,12 @@ valkey = val . Key . PersistInt64 -- case it was written for was, given a @Value@ lift the @Key@ for that @Value@ -- into the query expression in a type safe way. However, the implementation is -- more generic than that so we call it @valJ@. +-- -- Its important to note that the input entity and the output entity are --- constrained to be the same by the type signature on the function. --- () +-- constrained to be the same by the type signature on the function +-- (). +-- +-- /Since: 1.4.2/ valJ :: Esqueleto query expr backend => Value (Key entity) -> expr (Value (Key entity)) valJ = val . unValue