1
import Data.Map as Map
test :: Int -> Int -> Map -> Map
test key value cache = Map.insert key value cache
錯誤:Data.Map類型聲明
`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作爲參數的函數?