@@ -9,3 +9,9 @@ fi
10cabal build
10cabal build
13+# Check that a source distribution can be successfully generated, and that
14+# the generated source distribution can be installed
16+SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
17+ (cd dist && cabal install --force-reinstalls "$SRC_TGZ")