Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

[web-devel] Setting variables in hamlet forall

vagif.verdi@gmail.com

6 Apr 2011 6 Apr '11
7:57 p.m.

I noticed a pattern that in hamlet $forall i often retrieve the same value from a map, Sometimes 3,4 times. $forall row <- rs <td>#{getStr "form_name" row} <td>#{getStr "docname" row} ... <td>#{fromMaybe "" (IntMap.lookup (getInt "form_id" row) counties)} <td>#{fromMaybe "" (IntMap.lookup (getInt "form_id" row) customers)} Would it be possible to allow let statement in forall for often used values ? Regards, Vagif Verdi

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.