After I used ghcup to install haskell on ubuntu, I got ghc-8.10.7 and cabal-3.6.0. When I run command cabal v2-install primitive
, there throwed an error
cabal: Could not resolve dependencies:
[__0] trying: primitive-0.6.4.0 (user goal)
[__1] next goal: base (dependency of primitive)
[__1] rejecting: base-4.14.3.0/installed-4.14.3.0 (conflict: primitive =>
base>=4.5 && <4.13)