Merge branch 'prof-libs' into develop

This commit is contained in:
Julian Ospald 2022-10-10 13:30:11 +08:00
commit c3f3321617
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -12,15 +12,29 @@ which ghcup | grep foobarbaz
ghcup -v --url-source=file:$METADATA_FILE install $TOOL --set $VERSION ghcup -v --url-source=file:$METADATA_FILE install $TOOL --set $VERSION
cat <<EOF > main.hs
{- cabal:
build-depends: base
-}
main = print $ 1 + 1
EOF
case $TOOL in case $TOOL in
hls) hls)
haskell-language-server-wrapper --version haskell-language-server-wrapper --version
haskell-language-server-wrapper typecheck main.hs
;; ;;
ghc) ghc)
ghc --version ghc --version
echo 'main = print $ 1 + 1' > main.hs ghc --info
ghc main.hs ghc -prof main.hs
[[ $(./main) -eq 2 ]] [[ $(./main +RTS -s) -eq 2 ]]
;;
cabal)
cabal --version
cabal update
[[ $(cabal --verbose=0 run --enable-profiling ./main.hs -- +RTS -s) -eq 2 ]]
;; ;;
*) *)
$TOOL --version $TOOL --version