【发布时间】:2013-02-10 01:52:29
【问题描述】:
假设我有fooIds :: [Key Foo]。我如何获得foos :: [Foo]?
我试过了
do
foos <- map get fooIds
但它给了我
No instance for (MonadBaseControl IO m0)
arising from a use of `get'
我假设是因为我需要使用runDB。但我不太确定如何使用它。
【问题讨论】:
标签: haskell persistent yesod