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

$ cabal test cannot run #24

Open
mw66 opened this issue Mar 6, 2024 · 0 comments
Open

$ cabal test cannot run #24

mw66 opened this issue Mar 6, 2024 · 0 comments

Comments

@mw66
Copy link

mw66 commented Mar 6, 2024

I added tests here:

#23

but, it cannot run:

$ cabal test
Resolving dependencies...
Build profile: -w ghc-8.4.4 -O1
In order, the following will be built (use -v for more details):
 - language-eiffel-0.2.0 (test:tests) (first run)
Warning: language-eiffel.cabal:101:4: invalid subsection "language-eiffel"
Warning: language-eiffel.cabal:101:1: Tabs used as indentation at 101:1
Configuring test suite 'tests' for language-eiffel-0.2.0..
Preprocessing test suite 'tests' for language-eiffel-0.2.0..
Building test suite 'tests' for language-eiffel-0.2.0..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Language.Eiffel.Parser
                                                                                                 Language.Eiffel.Parser.Class
                                                                                                 Language.Eiffel.Parser.Clause
                                                                                                 Language.Eiffel.Parser.Expr
                                                                                                 Language.Eiffel.Parser.Feature
                                                                                                 Language.Eiffel.Parser.Note
                                                                                                 Language.Eiffel.Parser.Statement
                                                                                                 Language.Eiffel.Parser.Statement
                                                                                                 Language.Eiffel.Parser.Typ
                                                                                                 Language.Eiffel.Position
                                                                                                 Language.Eiffel.PrettyPrint
                                                                                                 Language.Eiffel.Syntax
                                                                                                 Language.Eiffel.Util
[ 1 of 14] Compiling Language.Eiffel.Position ( Language/Eiffel/Position.hs, /language-eiffel/dist-newstyle/build/x86_64-linux/ghc-8.4.4/language-eiffel-0.2.0/t/tests/build/tests/tests-tmp/Language/Eiffel/Position.o )

Language/Eiffel/Position.hs:30:1: error:
    Could not find module ‘Data.Binary’
    Use -v to see a list of the files searched for.
   |
30 | import Data.Binary
   | ^^^^^^^^^^^^^^^^^^

Language/Eiffel/Position.hs:31:1: error:
    Could not find module ‘Data.Hashable’
    Use -v to see a list of the files searched for.
   |
31 | import           Data.Hashable
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Language/Eiffel/Position.hs:32:1: error:
    Could not find module ‘Control.DeepSeq’
    Use -v to see a list of the files searched for.
   |
32 | import Control.DeepSeq
   | ^^^^^^^^^^^^^^^^^^^^^^

Language/Eiffel/Position.hs:36:1: error:
    Could not find module ‘Text.Parsec’
    Use -v to see a list of the files searched for.
   |
36 | import Text.Parsec
   | ^^^^^^^^^^^^^^^^^^

Language/Eiffel/Position.hs:37:1: error:
    Could not find module ‘Text.Parsec.Pos’
    Use -v to see a list of the files searched for.
   |
37 | import Text.Parsec.Pos
   | ^^^^^^^^^^^^^^^^^^^^^^

Language/Eiffel/Position.hs:38:1: error:
    Could not find module ‘Text.Parsec.ByteString’
    Use -v to see a list of the files searched for.
   |
38 | import Text.Parsec.ByteString
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

with

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.4

$ cabal --version
cabal-install version 3.10.2.1
compiled using version 3.10.2.1 of the Cabal library 

I'm wondering what fix else is needed?

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