If you want to inspect the code or manually compile later:
cabal download statistics
Note: Remember, the Haskell equivalent of “gtools” is the statistics package.
This creates a file like statistics-0.16.1.0.tar.gz in your current directory.
If you are absolutely certain there is a legacy package named gtools on Hackage (there isn’t as of 2025), you would run: gtools cabal download
cabal download gtools
But this will fail with cabal: Package not found. So always use statistics.
# Using your distro's package manager (often outdated) sudo apt install cabal-installOnce
cabal install gtools --libsucceeds, you can use it in a.hsfile:import Data.GTools.Statistics (permutationTest) import Data.GTools.Sorting (mixedsort)
main :: IO () main = do let result = permutationTest [1,2,3] [4,5,6] print resultIf you want to inspect the code orCompile and run:
ghc -package gtools myScript.hs ./myScript
echo "packages: ./myapp-src/*/" > cabal.project echo "source-repository-package" >> cabal.project echo " type: local" >> cabal.project echo " location: ./myapp-src/http-client-0.7.0" >> cabal.project cabal buildNote: Remember, the Haskell equivalent of “gtools” is
gtools cabal download makes step 1 trivial—without having to manually resolve dependency versions.