我想存儲aeson值usig acid-store。我已經採取了最低限度的酸實施,並試圖天真地將類型切換到價值。這些是我派生的安全拷貝:我想用酸存儲aeson's Value類型
$(deriveSafeCopy 0 'base ''Object)
$(deriveSafeCopy 0 'base ''Array)
$(deriveSafeCopy 0 'base ''Number)
$(deriveSafeCopy 0 'base ''Value)
$(deriveSafeCopy 0 'base ''JSONState)
$(deriveSafeCopy 0 'base ''JSONStateStore)
JSONState和JSONStateStore是我自己的類型。我得到這個錯誤:
Can't derive SafeCopy instance for: (Data.Aeson.Types.Internal.Object,TyConI (TySynD Data.Aeson.Types.Internal.Object [] (AppT (AppT (ConT Data.HashMap.Base.HashMap) (ConT Data.Text.Internal.Text)) (ConT Data.Aeson.Types.Internal.Value))))
謝謝 - 你覺得我應該從問題刪除更新?我不確定禮儀。 – schellsan 2013-04-24 23:16:12