Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stToPrim is only available since primitive-0.6.2.0 #42

Open
phadej opened this issue Oct 8, 2022 · 1 comment
Open

stToPrim is only available since primitive-0.6.2.0 #42

phadej opened this issue Oct 8, 2022 · 1 comment

Comments

@phadej
Copy link

phadej commented Oct 8, 2022

https://hackage.haskell.org/package/primitive-0.7.4.0/docs/Control-Monad-Primitive.html#v:stToPrim

% cabal build -w ghc-8.8.4 --constraint='primitive <0.7'
Resolving dependencies...
Build profile: -w ghc-8.8.4 -O1
In order, the following will be built (use -v for more details):
 - vector-algorithms-0.9.0.1 (lib) (first run)
Configuring library for vector-algorithms-0.9.0.1..
Preprocessing library for vector-algorithms-0.9.0.1..
Building library for vector-algorithms-0.9.0.1..
[ 1 of 11] Compiling Data.Vector.Algorithms.Common ( src/Data/Vector/Algorithms/Common.hs, /codetmp/vector-algorithms-0.9.0.1/dist-newstyle/build/x86_64-linux/ghc-8.8.4/vector-algorithms-0.9.0.1/build/Data/Vector/Algorithms/Common.o )

src/Data/Vector/Algorithms/Common.hs:124:27: error:
    Variable not in scope: stToPrim :: m0 () -> m ()
    |
124 | copyToSmaller !dst !src = stToPrim $ do_copy 0
    |                           ^^^^^^^^
@phadej
Copy link
Author

phadej commented Oct 8, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant