Skip to content

Commit

Permalink
Add shebang to build script
Browse files Browse the repository at this point in the history
This enables running it via simply `./Build.hs`.

It's difficult (possibly not standardized at all, I can't remember) to specify arguments here, so for now this will only work if GHC 8.10.7 is the version enabled globally. And using `cabal install --lib` (or `cabal-env`, or my script for extracting environment files from cabal scripts) is still preferable due to the slowness of `cabal run`, and HLS support. Cabal scripts are set to become more usable in 3.8: haskell/cabal#7851.
  • Loading branch information
georgefst committed Jan 9, 2022
1 parent 3226b3e commit 33f68a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Build.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env cabal

{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE ImportQualifiedPost #-}
{-# LANGUAGE LambdaCase #-}
Expand Down

0 comments on commit 33f68a8

Please sign in to comment.