I am using stack to build purescript with lts-3.2. My ghc is installed system-wide, and I also have several libraries installed system-wide.
While stack build works flawlessly, stack ghci tries to use text-18.104.22.168
(from lts-3.2) and text-22.214.171.124 simultaneously which causes an error:
[ 13of110] CompilingLanguage.PureScript.Names ( Language/PureScript/Names.hs, interpreted )
Language/PureScript/Names.hs:91:52:Couldn't match expected type‘T.Text’
with actual type‘text-126.96.36.199:Data.Text.Internal.Text’NB:‘T.Text’
is defined in‘Data.Text.Internal’in package ‘text-188.8.131.52’‘text-184.108.40.206:Data.Text.Internal.Text’
is defined in‘Data.Text.Internal’in package ‘text-220.127.116.11’In the first argument of‘T.unpack’, namely ‘str’In the second argument of‘splitOn’, namely ‘(T.unpack str)’
zudov@x200 ~/prog/haskell/purescript $ stack exec -- ghc-pkg list text
My best bet here is that the usage of -package= instead of -package-id is giving GHC too much freedom in choosing specific installed instances of packages, leading to this confusion. @chrisdone is it possible to use GhcPkgIds instead?
I am using stack to build purescript with
lts-3.2. My ghc is installed system-wide, and I also have several libraries installed system-wide.
stack buildworks flawlessly,
stack ghcitries to use
(from lts-3.2) and
text-18.104.22.168simultaneously which causes an error:
Here is an output of
stack ghci --verbose: paste.
I can reproduce it using latest stack release (0.1.3.1) and stack from master branch
The text was updated successfully, but these errors were encountered: