Skip to content

Documented example of detailed-0.9 test-suite has runtime error #5124

Closed
@chreekat

Description

@chreekat
  • Cabal-1.24.2.0
  • cabal-install:
    cabal-install version 2.0.0.0
    compiled using version 2.0.0.2 of the Cabal library
    
  • NixOS 17.09

Using the bar.cabal and Bar.hs as listed at https://www.haskell.org/cabal/users-guide/developing-packages.html#example-package-using-detailed-0-9-interface

This is what I get:

$ cabal configure --enable-tests; cabal build; cabal test
Resolving dependencies...
Configuring bar-1.0...
Preprocessing test suite 'test-bar' for bar-1.0..
Building test suite 'test-bar' for bar-1.0..
[1 of 1] Compiling Main             ( dist/build/test-barStub/test-barStub-tmp/test-barStub.hs, dist/build/test-barStub/test-barStub-tmp/Main.o )
Linking dist/build/test-barStub/test-barStub ...
Preprocessing test suite 'test-bar' for bar-1.0..
Building test suite 'test-bar' for bar-1.0..
[1 of 1] Compiling Main             ( dist/build/test-barStub/test-barStub-tmp/test-barStub.hs, dist/build/test-barStub/test-barStub-tmp/Main.o )
Linking dist/build/test-barStub/test-barStub ...
Running 1 test suites...
Test suite test-bar: RUNNING...
Prelude.read: no parse

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions