I have writen a small language lookup with a function
getValue :: String -> String -> String
getValue lang key = (
head $
filter ((== key) . head) langData)
!! getLangIndex lang
now i want to call this lookup function inside a hamlet file.
Is this possible and how do i have to change the function to make it callable?