Skip to content

Conversation

@harendra-kumar
Copy link
Collaborator

Always pass all the explicitly specified packages in the script to ghc command
line. Also allow ghc options to be specified from the interpreter command. This
will give user the flixibility to, for example, use '-hide-all-packages' ghc
option. Like this:

{- stack runghc
--package base
--package exceptions
--package transformers
--package containers
--package getopt-generics
--package filepath
--package path
--package path-io
--package process
--package unix-compat
--
-hide-all-packages
-}

fixes #1208

Always pass all the explicitly specified packages in the script to ghc command
line. Also allow ghc options to be specified from the interpreter command. This
will give user the flixibility to, for example, use '-hide-all-packages' ghc
option. Like this:

{- stack runghc
    --package base
    --package exceptions
    --package transformers
    --package containers
    --package getopt-generics
    --package filepath
    --package path
    --package path-io
    --package process
    --package unix-compat
    --
    -hide-all-packages
-}

fixes #1208
@harendra-kumar
Copy link
Collaborator Author

Windows build failing due to #2457 fixed by #2482 . I will rebase and try again.

@harendra-kumar harendra-kumar force-pushed the self-contained-scripts branch from f019cf6 to a06e427 Compare August 13, 2016 06:33
@Blaisorblade
Copy link
Collaborator

LGTM!

@Blaisorblade Blaisorblade merged commit 54f59bd into master Aug 13, 2016
@Blaisorblade Blaisorblade deleted the self-contained-scripts branch August 13, 2016 10:44
@Blaisorblade
Copy link
Collaborator

@harendra-kumar thanks for this. Maybe you can add a mention for this in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interpreter: Don't make cached packages available that are not specified with --package

5 participants