使用"#Bool"时出错在路线上

时间:2014-03-21 15:24:46

标签: haskell yesod

我是yesod的初学者。 我正在尝试添加一个" / designmulti / key / #Int / name / #String/ finished / #Bool PutDesignMultiR PUT"在yesod的routes文件中,但收到错误:

Foundation.hs:46:1:
      No instance for (PathPiece Bool)
      arising from a use of `toPathPiece'
    Possible fix: add an instance declaration for (PathPiece Bool)

这是否意味着yesod仅支持Int和String,但不支持Bool? 怎么解决? 任何提示将不胜感激! 感谢。

0 个答案:

没有答案