2

In any of the build tools commonly used in Haskell projects (i.e stack, cabal, or hpack), is it possible to have a source directory which contains source files with a different extension (i.e. other than *.hs or *.lhs)?

I need to have source files with multiple extensions, such as *.md.lhs, or *.rst.lhs because the same directly needs to be used by stack/cabal, but the second extension is meaningful to a custom shake script that I'm writing.

It seems that cabal/stack are ignoring any files with *.*.lhs

2
  • You're already listing them in extra-source-files and it still ignores? Commented Sep 1, 2020 at 8:17
  • A hack might be to list them under extra-doc-files instead Commented Sep 1, 2020 at 8:40

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.