我正在尝试写一份报告,显示在职学生及其所支付的最高学费。我只想显示最高学费,这句话有什么问题:
-- .hs file
altclass, signclass :: Int -> String
altclass x = if even x then "even" else "odd"
signclass x = if x > 0 then "positive" else "non-positive"
-- .hamlet file
<span class="#{altclass x} #{signclass x}">#{x}</span>
提前谢谢!