atom-haskell / ide-haskell

Haskell IDE plugin for Atom editor
https://atom.io/packages/ide-haskell
Other
233 stars 30 forks source link

support for tests in ide haskell #188

Closed miladz68 closed 7 years ago

miladz68 commented 7 years ago

I write my tests in /tests folder next to /src folder and setup .cabal file as :

Test-Suite test-melody type: exitcode-stdio-1.0 main-is: MainTest.hs hs-source-dirs: test build-depends: base >=4.9 && <4.10, --test-framework, --test-framework-hunit, HUnit, containers == 0.5.*

Now when in every test file when I import from HUnit I get a red warning that the interface is part of a hidden package. In general the interface for all test dependencies are not recognized by atom.

How can I fix this ?

miladz68 commented 7 years ago

running the following commands solved my issue

$ cabal configure --enable-tests
$ cabal build
$ cabal test
lierdakil commented 7 years ago

Glad to hear you solved it.

пн, 23 янв. 2017 г. в 14:42, milad notifications@github.com:

Closed #188 https://github.com/atom-haskell/ide-haskell/issues/188.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/atom-haskell/ide-haskell/issues/188#event-932677314, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8EZjtuOLDAbwfwtJcrmR022fz9Nnw0ks5rVJIQgaJpZM4Lq4ny .