Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Self-dependency in test suite fails with hie #1786

Open
Labels
@IlyaBizyaev

Description

@IlyaBizyaev

Hello! I have the followinghashtable.cabal file:

cabal-version:       2.2name:                hashtableversion:             0.1.0.0-- description etc.common shared-properties  build-depends: -- packages  ghc-options: -Wall -Werror -O2  default-language:    Haskell2010library  import: shared-properties  hs-source-dirs:  src  exposed-modules: Hashtable  default-language:    Haskell2010-- executabletest-suite hashtable-tests  import:              shared-properties  type:                exitcode-stdio-1.0  hs-source-dirs:      test/unit  main-is:             Spec.hs  other-modules:       HashtableSpec  build-depends:       hashtable                     , hspec                     , hspec-discover  default-language:    Haskell2010

And the followinghie.yaml file:

cradle:  stack:    - path: ./src      component: "hashtable:lib"    - path: ./test/unit      component: "hashtable:test:hashtable-tests"

It worked fine before I added the test suite, but now I get:

"cannot satisfy -package hashtable-0.1.0.0\n    (use -v for more information)"

stack build runs successfully.
Since self-dependency seems to be the canonical way to test a library in Haskell, how can I fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp