【发布时间】:2012-02-24 08:37:56
【问题描述】:
import Data.Map as Map
test :: Int -> Int -> Map -> Map
test key value cache = Map.insert key value cache
错误:
`Map' is not applied to enough type arguments
Expected kind `??', but `Map' has kind `* -> * -> *'
In the type signature for `test': test :: Int -> Int -> Map -> Map
如何声明函数以将 Data.Map 作为参数传递?
【问题讨论】:
标签: haskell