owickstrom / pandoc-include-code

A Pandoc filter for including code from source files
Mozilla Public License 2.0
141 stars 17 forks source link

Add FilterTest to test-suite.other-modules #7

Closed dotlambda closed 6 years ago

dotlambda commented 6 years ago

This fixes a warning when doing stack test:

Warning: The following modules should be added to exposed-modules or other-modules in pandoc-include-code/pandoc-include-code.cabal:
             - In filter-tests component:
                 FilterTest

It also allows the project to build on NixOS whereas before I had the following problem:

Building test suite 'filter-tests' for pandoc-include-code-1.2.0.2..
[1 of 1] Compiling Main             ( test/Driver.hs, dist/build/filter-tests/filter-tests-tmp/Main.dyn_o )

test/Driver.hs:6:1: error:
    Could not find module ‘FilterTest’
    Use -v to see a list of the files searched for.
  |
6 | import qualified FilterTest
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
owickstrom commented 6 years ago

Thanks for the PR! 👍