<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Simon,</div>

<div> </div>

<div>Thank you for your reply.</div>

<div> </div>

<div>Maybe my email wasn't clear.  <span style="line-height: 1.6em;">I didn't get "</span><span style="line-height: 19.2px;">Test suite not yet implemented",</span></div>

<div><span style="line-height: 19.2px;">which would have been correct.  Instead, I got</span></div>

<div> </div>

<div>
<p class="p1"><span style="font-size:12px;"><span style="font-family:courier new,courier,monospace;"><span class="s1">Test suite helloworld-test executable not found for helloworld</span></span></span></p>

<p class="p1"><span style="font-size:12px;"><span style="font-family: 'courier new', courier, monospace; line-height: 1.6em;">Test suite failure for package helloworld-0.1.0.0</span></span></p>

<p class="p1"><span style="font-size:12px;"><span style="font-family:courier new,courier,monospace;"><span class="s1">    helloworld-test:  executable not found</span></span></span></p>

<p class="p1"><span style="font-size:12px;"><span style="font-family:courier new,courier,monospace;"><span class="s1">Logs printed to console</span></span></span></p>

<div>I had also previously tried "stack upgrade", which at the time didn't change anything.</div>

<div>However, I took your suggestion and tried it again.</div>

<div>This time "stack upgrade" downloaded ghc 7.10.3 (was 7.10.2) and a whole new set of libraries.</div>

<div>I created the test app (helloworld) again and everything worked.  I got the expected</div>

<div>output from <span style="line-height: 1.6em;">'stack test':  "</span><span class="s1" style="line-height: 1.6em;">Test suite not yet implemented".</span></div>

<div> </div>

<div>So thanks, again.</div>
</div>

<div class="signature"> </div>

<div class="signature">Robert Weisser</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Tuesday, January 19, 2016 at 1:21 PM<br/>
<b>From:</b> "Simon Jakobi" <simon.jakobi@googlemail.com><br/>
<b>To:</b> "The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell" <beginners@haskell.org><br/>
<b>Subject:</b> Re: [Haskell-beginners] Problem using stack</div>

<div name="quoted-content">
<div>Hi Robert,
<div> </div>

<div>The reason for the "Test suite not yet implemented" message is that this is the default behaviour of the test suite that comes with "new-template":</div>

<div> </div>

<div>
<div>$ cat test/Spec.hs </div>

<div>main :: IO ()</div>

<div>main = putStrLn "Test suite not yet implemented"</div>
</div>

<div> </div>

<div>BTW, stack 0.1.8.0 is fairly outdated by now, so try to run "stack upgrade".</div>

<div> </div>

<div>Cheers,</div>

<div>Simon</div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2016-01-19 17:54 GMT+01:00 Robert Weisser <span><<a href="Robert.Weisser@gmx.com" target="_parent">Robert.Weisser@gmx.com</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">I recently installed stack via Haskell for Mac OS X<br/>
(<a href="https://ghcformacosx.github.io/" target="_blank">https://ghcformacosx.github.io/</a>), which gave me stack 0.1.8.0 x86_64 and ghc<br/>
7.10.2.<br/>
<br/>
Following the User Guide (<a href="http://docs.haskellstack.org/en/stable/GUIDE.html" target="_blank">http://docs.haskellstack.org/en/stable/GUIDE.html</a>),<br/>
I tried to create the first example (hello world, naturally).  Everything went<br/>
according to plan until I entered 'stack test', which failed.  The output was<br/>
supposed to be, 'Test suite not yet implemented.'  I tried to find information<br/>
online, but was unsuccessful.  I play with Haskell for fun and know nothing<br/>
about cabal, so I don't know if it is a cabal issue.<br/>
<br/>
The error message includes 'helloworld-test:  executable not found'.<br/>
helloworld-test is indeed missing.  I searched for it using find:<br/>
<br/>
  find . -name '*test'<br/>
<br/>
Here is the terminal session, followed by the contents of the generated<br/>
helloworld.cabal file (with some user info removed):<br/>
<br/>
$ stack new helloworld new-template<br/>
Downloading template "new-template" to create project "helloworld" in helloworld/ ...<br/>
Writing default config file to: /Users/rpw/self/haskell/stack/user_guide/helloworld/stack.yaml<br/>
Basing on cabal files:<br/>
- /Users/rpw/self/haskell/stack/user_guide/helloworld/helloworld.cabal<br/>
<br/>
Checking against build plan lts-3.13<br/>
Selected resolver: lts-3.13<br/>
Wrote project config to: /Users/rpw/self/haskell/stack/user_guide/helloworld/stack.yaml<br/>
<br/>
$ cd helloworld/<br/>
<br/>
$ stack setup<br/>
stack will use the GHC on your PATH<br/>
For more information on paths, see 'stack path' and 'stack exec env'<br/>
To use this GHC and packages outside of a project, consider using:<br/>
stack ghc, stack ghci, stack runghc, or stack exec<br/>
<br/>
$ stack build<br/>
helloworld-0.1.0.0: configure<br/>
Configuring helloworld-0.1.0.0...<br/>
helloworld-0.1.0.0: build<br/>
Preprocessing library helloworld-0.1.0.0...<br/>
[1 of 1] Compiling Lib              ( src/Lib.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Lib.o )<br/>
In-place registering helloworld-0.1.0.0...<br/>
Preprocessing executable 'helloworld-exe' for helloworld-0.1.0.0...<br/>
[1 of 1] Compiling Main             ( app/Main.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/helloworld-exe/helloworld-exe-tmp/Main.o )<br/>
Linking .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/helloworld-exe/helloworld-exe ...<br/>
helloworld-0.1.0.0: copy/register<br/>
Installing library in<br/>
/Users/rpw/self/haskell/stack/user_guide/helloworld/.stack-work/install/x86_64-osx/lts-3.13/7.10.2/lib/x86_64-osx-ghc-7.10.2/helloworld-0.1.0.0-6urpPe0MO7OHasGCFSyIAT<br/>
Installing executable(s) in<br/>
/Users/rpw/self/haskell/stack/user_guide/helloworld/.stack-work/install/x86_64-osx/lts-3.13/7.10.2/bin<br/>
Registering helloworld-0.1.0.0...<br/>
<br/>
$ stack exec helloworld-exe<br/>
someFunc<br/>
<br/>
$ stack test<br/>
Test suite helloworld-test executable not found for helloworld<br/>
Test suite failure for package helloworld-0.1.0.0<br/>
    helloworld-test:  executable not found<br/>
Logs printed to console<br/>
<br/>
$ cat helloworld.cabal<br/>
name:                helloworld<br/>
version:             0.1.0.0<br/>
synopsis:            Initial project template from stack<br/>
description:         Please see README.md<br/>
homepage:            ...<br/>
license:             BSD3<br/>
license-file:        LICENSE<br/>
author:              ...<br/>
maintainer:          ...<br/>
copyright:           None<br/>
category:            Example<br/>
build-type:          Simple<br/>
-- extra-source-files:<br/>
cabal-version:       >=1.10<br/>
<br/>
library<br/>
  hs-source-dirs:      src<br/>
  exposed-modules:     Lib<br/>
  build-depends:       base >= 4.7 && < 5<br/>
  default-language:    Haskell2010<br/>
<br/>
executable helloworld-exe<br/>
  hs-source-dirs:      app<br/>
  main-is:             Main.hs<br/>
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N<br/>
  build-depends:       base<br/>
                     , helloworld<br/>
  default-language:    Haskell2010<br/>
<br/>
test-suite helloworld-test<br/>
  type:                exitcode-stdio-1.0<br/>
  hs-source-dirs:      test<br/>
  main-is:             Spec.hs<br/>
  build-depends:       base<br/>
                     , helloworld<br/>
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N<br/>
  default-language:    Haskell2010<br/>
<br/>
source-repository head<br/>
  type:     git<br/>
  location: ...<br/>
$<br/>
<br/>
<br/>
<span class="HOEnZb"><font color="#888888">Robert Weisser<br/>
_______________________________________________<br/>
Beginners mailing list<br/>
<a href="Beginners@haskell.org" target="_parent">Beginners@haskell.org</a><br/>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a></font></span></blockquote>
</div>
</div>
_______________________________________________ Beginners mailing list Beginners@haskell.org <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a></div>
</div>
</div>
</div></div></body></html>