There is no step in the environment you use to run the script. He received the GHC and the HTTP packet, but the compiler does not know about the packet.
GHC nix "" , . , " " , , . , GHC , GHC. GHC GHC , , nix . Nix GHC, , , , .
, , "" GHC, , . GHC, , GHC. , , , - GHC, .
, script, , , ; HTTP. script, command not found: runghc. runghc , , (, , GHC ?), GHC HTTP . nix-shell .
:
#! nix-shell -i runghc -p 'ghc.withPackages (ps: [ ps.HTTP ])'
ghc HTTP; ghc.withPackages nix, GHC, HTTP Haskell. "" GHC , HTTP .
Haskell (, nix-shell, , ), withPackages, , , - . , , nix GHC .