From c4522124aab41a5e587785882ea1600b4c5c2e96 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 9 Jan 2022 13:08:28 -0800
Subject: [PATCH] make check: check for unreleased dependencies

---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ac0506328..c78ccffe4 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,9 @@ haddock:
 check: check-cabal checkdocs
 	cabal check # check cabal file
 	cabal outdated # check cabal dependencies
-	lsd # check that stack.yaml dependencies are up to date
+	stack-lint-extra-deps # check that stack.yaml dependencies are up to date
+	! grep 'git:' stack.yaml # use only released versions
+	! grep 'git:' cabal.project # use only released versions
 
 check-cabal: git-files.txt sdist-files.txt
 	@echo "Checking to see if all committed test/data files are in sdist."