Fix #2
This fixes #2 (closed) by tweaking scripts/head.hackage
in two ways:
- This changes the script to use
cabal new-update head.hackage.ghc.haskell.org
, notcabal new-update head.hackage
, since the former is now the name of therepository
. Sincehead.hackage.ghc.haskell.org
is referred to in quite a few places in the script, I factored this out into its own variable. - This changes the
url
to usehttp://
, nothttps://
, so thathttp-transport: plain-http
works properly. An alternative would be to keep the use ofhttps://
and usehttp-transport: curl
instead, but that assumes the existence of acurl
binary on one's machine, making it a less portable solution. In any case, the use ofhttp://
in this script shouldn't pose any security issues, sincehackage-security
already introduces a security layer independent of CAs.