1
import Data.Map as Map
test :: Int -> Int -> Map -> Map
test key value cache = Map.insert key value cache
Erreur:Data.Map déclaration de type
`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
Comment puis-je déclarer la fonction de passer Data.Map en tant que paramètre?