Could not find module ‘Test.QuickCheck’ on Windows












0














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?










share|improve this question



























    0














    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?










    share|improve this question

























      0












      0








      0


      1





      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 at 22:03









      user8314628

      54629




      54629
























          2 Answers
          2






          active

          oldest

          votes


















          4














          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 as stack ghci or stack ghc, you can add it as a --package option e.g. to run a REPL to play around with QuickCheck you can use stack ghci --package QuickCheck and then write import Test.QuickCheck.

          • If you want to write a small one-file program using QuickCheck, then you can run stack ghc --package QuickCheck -- MyProgram.hs (using the --package option from the last bullet point). Alternately, you can use stack'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 your my-program.cabal or project.yaml file.


          The same guidance applies to any package you may want to use.






          share|improve this answer





























            0















            1. Download QuickCheck-2.12.6.1.tar.gz


            2. cabal install QuickCheck-2.12.6.1.tar.gz







            share|improve this answer





















            • 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 at 22:38










            • It doesn't work. I tried that also.
              – user8314628
              Nov 20 at 22:57











            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            4














            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 as stack ghci or stack ghc, you can add it as a --package option e.g. to run a REPL to play around with QuickCheck you can use stack ghci --package QuickCheck and then write import Test.QuickCheck.

            • If you want to write a small one-file program using QuickCheck, then you can run stack ghc --package QuickCheck -- MyProgram.hs (using the --package option from the last bullet point). Alternately, you can use stack'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 your my-program.cabal or project.yaml file.


            The same guidance applies to any package you may want to use.






            share|improve this answer


























              4














              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 as stack ghci or stack ghc, you can add it as a --package option e.g. to run a REPL to play around with QuickCheck you can use stack ghci --package QuickCheck and then write import Test.QuickCheck.

              • If you want to write a small one-file program using QuickCheck, then you can run stack ghc --package QuickCheck -- MyProgram.hs (using the --package option from the last bullet point). Alternately, you can use stack'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 your my-program.cabal or project.yaml file.


              The same guidance applies to any package you may want to use.






              share|improve this answer
























                4












                4








                4






                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 as stack ghci or stack ghc, you can add it as a --package option e.g. to run a REPL to play around with QuickCheck you can use stack ghci --package QuickCheck and then write import Test.QuickCheck.

                • If you want to write a small one-file program using QuickCheck, then you can run stack ghc --package QuickCheck -- MyProgram.hs (using the --package option from the last bullet point). Alternately, you can use stack'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 your my-program.cabal or project.yaml file.


                The same guidance applies to any package you may want to use.






                share|improve this answer












                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 as stack ghci or stack ghc, you can add it as a --package option e.g. to run a REPL to play around with QuickCheck you can use stack ghci --package QuickCheck and then write import Test.QuickCheck.

                • If you want to write a small one-file program using QuickCheck, then you can run stack ghc --package QuickCheck -- MyProgram.hs (using the --package option from the last bullet point). Alternately, you can use stack'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 your my-program.cabal or project.yaml file.


                The same guidance applies to any package you may want to use.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 at 22:28









                bradrn

                385310




                385310

























                    0















                    1. Download QuickCheck-2.12.6.1.tar.gz


                    2. cabal install QuickCheck-2.12.6.1.tar.gz







                    share|improve this answer





















                    • 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 at 22:38










                    • It doesn't work. I tried that also.
                      – user8314628
                      Nov 20 at 22:57
















                    0















                    1. Download QuickCheck-2.12.6.1.tar.gz


                    2. cabal install QuickCheck-2.12.6.1.tar.gz







                    share|improve this answer





















                    • 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 at 22:38










                    • It doesn't work. I tried that also.
                      – user8314628
                      Nov 20 at 22:57














                    0












                    0








                    0







                    1. Download QuickCheck-2.12.6.1.tar.gz


                    2. cabal install QuickCheck-2.12.6.1.tar.gz







                    share|improve this answer













                    1. Download QuickCheck-2.12.6.1.tar.gz


                    2. cabal install QuickCheck-2.12.6.1.tar.gz








                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 20 at 22:17









                    user8314628

                    54629




                    54629












                    • 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 at 22:38










                    • It doesn't work. I tried that also.
                      – user8314628
                      Nov 20 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 at 22:38










                    • It doesn't work. I tried that also.
                      – user8314628
                      Nov 20 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 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 at 22:38












                    It doesn't work. I tried that also.
                    – user8314628
                    Nov 20 at 22:57




                    It doesn't work. I tried that also.
                    – user8314628
                    Nov 20 at 22:57


















                    draft saved

                    draft discarded




















































                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Wiesbaden

                    To store a contact into the json file from server.js file using a class in NodeJS

                    Marschland