Preprocessing test suite 'test' for cabal-file-th-0.2.7..
Building test suite 'test' for cabal-file-th-0.2.7..
[1 of 1] Compiling Main ( test/Test.hs, dist/build/test/test-tmp/Main.dyn_o )
test/Test.hs:15:95: error:
• Couldn't match type ‘Distribution.Utils.ShortText.ShortText’
with ‘[Char]’
Expected type: PackageDescription -> String
Actual type: PackageDescription
-> Distribution.Utils.ShortText.ShortText
• In the second argument of ‘(.)’, namely ‘copyright’
In the second argument of ‘packageVariableFrom’, namely
‘(packageString . copyright)’
In the expression:
packageVariableFrom
"test/test-version-interp.cabal" (packageString . copyright)
|
15 | testCopyright = $(packageVariableFrom "test/test-version-interp.cabal" (packageString . copyright))
| ^^^^^^^^^