Could not find module ‘Test.QuickCheck’ on Windows
My ghci version is 8.4.3
I tried
stack install QuickCheck
Something was installed. But when I input import Test.QuickCheck
, it tells Could not find module ‘Test.QuickCheck’
again. How can I fix it?
haskell quickcheck
add a comment |
My ghci version is 8.4.3
I tried
stack install QuickCheck
Something was installed. But when I input import Test.QuickCheck
, it tells Could not find module ‘Test.QuickCheck’
again. How can I fix it?
haskell quickcheck
add a comment |
My ghci version is 8.4.3
I tried
stack install QuickCheck
Something was installed. But when I input import Test.QuickCheck
, it tells Could not find module ‘Test.QuickCheck’
again. How can I fix it?
haskell quickcheck
My ghci version is 8.4.3
I tried
stack install QuickCheck
Something was installed. But when I input import Test.QuickCheck
, it tells Could not find module ‘Test.QuickCheck’
again. How can I fix it?
haskell quickcheck
haskell quickcheck
asked Nov 20 '18 at 22:03
user8314628user8314628
587210
587210
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Firstly, stack install
is not recommended for installing executables or libraries. Instead, there's a couple of things you can do to use the QuickCheck
library:
- If you want to use
QuickCheck
in a command such asstack ghci
orstack ghc
, you can add it as a--package
option e.g. to run a REPL to play around withQuickCheck
you can usestack ghci --package QuickCheck
and then writeimport Test.QuickCheck
. - If you want to write a small one-file program using
QuickCheck
, then you can runstack ghc --package QuickCheck -- MyProgram.hs
(using the--package
option from the last bullet point). Alternately, you can usestack
's scripting functionality and include a line such as this at the top of your program:
-- stack --resolver lts-12.18 script --package QuickCheck
- If you want to use
QuickCheck
in a large project, then add it as a dependency in yourmy-program.cabal
orproject.yaml
file.
The same guidance applies to any package you may want to use.
add a comment |
Download QuickCheck-2.12.6.1.tar.gz
cabal install QuickCheck-2.12.6.1.tar.gz
There's no need to install from a download. If you're using cabal-install, just runcabal install QuickCheck
and let the resolver do its thing.
– Chris Smith
Nov 20 '18 at 22:38
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402263%2fcould-not-find-module-test-quickcheck-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Firstly, stack install
is not recommended for installing executables or libraries. Instead, there's a couple of things you can do to use the QuickCheck
library:
- If you want to use
QuickCheck
in a command such asstack ghci
orstack ghc
, you can add it as a--package
option e.g. to run a REPL to play around withQuickCheck
you can usestack ghci --package QuickCheck
and then writeimport Test.QuickCheck
. - If you want to write a small one-file program using
QuickCheck
, then you can runstack ghc --package QuickCheck -- MyProgram.hs
(using the--package
option from the last bullet point). Alternately, you can usestack
's scripting functionality and include a line such as this at the top of your program:
-- stack --resolver lts-12.18 script --package QuickCheck
- If you want to use
QuickCheck
in a large project, then add it as a dependency in yourmy-program.cabal
orproject.yaml
file.
The same guidance applies to any package you may want to use.
add a comment |
Firstly, stack install
is not recommended for installing executables or libraries. Instead, there's a couple of things you can do to use the QuickCheck
library:
- If you want to use
QuickCheck
in a command such asstack ghci
orstack ghc
, you can add it as a--package
option e.g. to run a REPL to play around withQuickCheck
you can usestack ghci --package QuickCheck
and then writeimport Test.QuickCheck
. - If you want to write a small one-file program using
QuickCheck
, then you can runstack ghc --package QuickCheck -- MyProgram.hs
(using the--package
option from the last bullet point). Alternately, you can usestack
's scripting functionality and include a line such as this at the top of your program:
-- stack --resolver lts-12.18 script --package QuickCheck
- If you want to use
QuickCheck
in a large project, then add it as a dependency in yourmy-program.cabal
orproject.yaml
file.
The same guidance applies to any package you may want to use.
add a comment |
Firstly, stack install
is not recommended for installing executables or libraries. Instead, there's a couple of things you can do to use the QuickCheck
library:
- If you want to use
QuickCheck
in a command such asstack ghci
orstack ghc
, you can add it as a--package
option e.g. to run a REPL to play around withQuickCheck
you can usestack ghci --package QuickCheck
and then writeimport Test.QuickCheck
. - If you want to write a small one-file program using
QuickCheck
, then you can runstack ghc --package QuickCheck -- MyProgram.hs
(using the--package
option from the last bullet point). Alternately, you can usestack
's scripting functionality and include a line such as this at the top of your program:
-- stack --resolver lts-12.18 script --package QuickCheck
- If you want to use
QuickCheck
in a large project, then add it as a dependency in yourmy-program.cabal
orproject.yaml
file.
The same guidance applies to any package you may want to use.
Firstly, stack install
is not recommended for installing executables or libraries. Instead, there's a couple of things you can do to use the QuickCheck
library:
- If you want to use
QuickCheck
in a command such asstack ghci
orstack ghc
, you can add it as a--package
option e.g. to run a REPL to play around withQuickCheck
you can usestack ghci --package QuickCheck
and then writeimport Test.QuickCheck
. - If you want to write a small one-file program using
QuickCheck
, then you can runstack ghc --package QuickCheck -- MyProgram.hs
(using the--package
option from the last bullet point). Alternately, you can usestack
's scripting functionality and include a line such as this at the top of your program:
-- stack --resolver lts-12.18 script --package QuickCheck
- If you want to use
QuickCheck
in a large project, then add it as a dependency in yourmy-program.cabal
orproject.yaml
file.
The same guidance applies to any package you may want to use.
answered Nov 20 '18 at 22:28
bradrnbradrn
995512
995512
add a comment |
add a comment |
Download QuickCheck-2.12.6.1.tar.gz
cabal install QuickCheck-2.12.6.1.tar.gz
There's no need to install from a download. If you're using cabal-install, just runcabal install QuickCheck
and let the resolver do its thing.
– Chris Smith
Nov 20 '18 at 22:38
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
add a comment |
Download QuickCheck-2.12.6.1.tar.gz
cabal install QuickCheck-2.12.6.1.tar.gz
There's no need to install from a download. If you're using cabal-install, just runcabal install QuickCheck
and let the resolver do its thing.
– Chris Smith
Nov 20 '18 at 22:38
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
add a comment |
Download QuickCheck-2.12.6.1.tar.gz
cabal install QuickCheck-2.12.6.1.tar.gz
Download QuickCheck-2.12.6.1.tar.gz
cabal install QuickCheck-2.12.6.1.tar.gz
answered Nov 20 '18 at 22:17
user8314628user8314628
587210
587210
There's no need to install from a download. If you're using cabal-install, just runcabal install QuickCheck
and let the resolver do its thing.
– Chris Smith
Nov 20 '18 at 22:38
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
add a comment |
There's no need to install from a download. If you're using cabal-install, just runcabal install QuickCheck
and let the resolver do its thing.
– Chris Smith
Nov 20 '18 at 22:38
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
There's no need to install from a download. If you're using cabal-install, just run
cabal install QuickCheck
and let the resolver do its thing.– Chris Smith
Nov 20 '18 at 22:38
There's no need to install from a download. If you're using cabal-install, just run
cabal install QuickCheck
and let the resolver do its thing.– Chris Smith
Nov 20 '18 at 22:38
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
It doesn't work. I tried that also.
– user8314628
Nov 20 '18 at 22:57
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402263%2fcould-not-find-module-test-quickcheck-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown