[web-devel] Embedding a persist key into a hamlet template

Mark Bradley barkmadley at gmail.com
Fri May 20 01:51:02 CEST 2011

So far I have gotten away with:
  let Right k = fromPersistValue (fromPersistKey id)
  -- then use k as a Text

but I am pretty sure there is a better way that I have just overlooked.

On Fri, May 20, 2011 at 9:13 AM, Patrick Palka <patrick at parcs.ath.cx> wrote:
> What's the most idiomatic way of embedding a persist key into a hamlet
> template? (By persist key I mean a value of type Key a)
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel

sent from an internet enabled device

More information about the web-devel mailing list