diff --git a/changelog.d/added/comment-cabal.md b/changelog.d/added/comment-cabal.md new file mode 100644 index 000000000..cafa9a79b --- /dev/null +++ b/changelog.d/added/comment-cabal.md @@ -0,0 +1,2 @@ +- Added `.cabal` and `cabal.project` (Haskell) as recognised file types for + comments. (#1089) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 9d4872657..5b0ca08f3 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -608,6 +608,7 @@ class XQueryCommentStyle(CommentStyle): ".bib": BibTexCommentStyle, ".bzl": PythonCommentStyle, ".c": CCommentStyle, + ".cabal": HaskellCommentStyle, ".cc": CppCommentStyle, ".cjs": CppCommentStyle, ".cl": LispCommentStyle, @@ -878,6 +879,7 @@ class XQueryCommentStyle(CommentStyle): ".yarnrc": PythonCommentStyle, "ansible.cfg": PythonCommentStyle, "archive.sctxar": UncommentableCommentStyle, # SuperCollider global archive + "cabal.project": HaskellCommentStyle, "Cargo.lock": PythonCommentStyle, "CMakeLists.txt": PythonCommentStyle, "CODEOWNERS": PythonCommentStyle,