sol / call-stack

Use GHC call-stacks in a backward compatible way
MIT License
3 stars 7 forks source link

Cannot build under ghc 9.10 due to test failure #19

Open danwdart opened 2 months ago

danwdart commented 2 months ago

Hi,

I don't seem to be able to build version 0.4.0 using ghc 9.10:

Test suite spec: RUNNING...
/Data.CallStack/callStack/returns the call stack/ FAILED
expected: [("bar",SrcLoc {srcLocPackage = "main", srcLocModule = "Example", srcLocFile = "test/Example.hs", srcLocStartLine = 18, srcLocStartCol = 7, srcLocEndLine = 18, srcLocEndCol = 10}),("foo",SrcLoc {srcLocPackage = "main", srcLocModule = "Example", srcLocFile = "test/Example.hs", srcLocStartLine = 15, srcLocStartCol = 8, srcLocEndLine = 15, srcLocEndCol = 11})]
 but got: [("bar",SrcLoc {srcLocPackage = "call-stack-0.4.0-1HKrP3xRkzOLcASiBSwvgK-spec", srcLocModule = "Example", srcLocFile = "test/Example.hs", srcLocStartLine = 18, srcLocStartCol = 7, srcLocEndLine = 18, srcLocEndCol = 10}),("foo",SrcLoc {srcLocPackage = "call-stack-0.4.0-1HKrP3xRkzOLcASiBSwvgK-spec", srcLocModule = "Example", srcLocFile = "test/Example.hs", srcLocStartLine = 15, srcLocStartCol = 8, srcLocEndLine = 15, srcLocEndCol = 11})]
1 example(s), 1 failure(s)
Test suite spec: FAIL

Could this be addressed please?

I presume that it's due to template-haskell changes.

Thanks!

sol commented 2 months ago

This is due to a breaking change in Cabal. PRs welcome.