# The `stack eval` command ~~~text stack eval CODE [--[no-]ghc-package-path] [--[no-]stack-exe] [--package PACKAGE] [--rts-options RTSFLAG] [--cwd DIR] ~~~ GHC has an [expression-evaluation mode](https://downloads.haskell.org/ghc/latest/docs/users_guide/using.html#eval-mode), set by passing the GHC option `-e `. Commanding `stack eval ` is equivalent to commanding: ~~~text stack exec ghc -- -e ~~~ For further information, see the [`stack exec` command](exec_command.md) documentation.