I found a mismatched version between package.yaml and cabal file. I have added a check for this in a github workflow
- name: Check for Source Changes
shell: bash
run: |
if [ -n "$(git status --porcelain)" ]
then
>&2 echo 'ERROR: Source Changed After Build'
>&2 git diff
>&2 git status
>&2 echo 'ERROR: Source Changed After Build'
exit 1
fi
Do you think this is a good way to check for this or is there a better way (besides deleting the package.yaml files)?