Many people include .ghci
files in their haskell projects to include needed options to load modules into ghci
. Here's an example:
:set -isrc -itest -iexamples -packagehspec2
However when trying to run a file containing main
through runhaskell
one has to repeat all these options, e.g.:
runhaskell -isrc -itest -iexamples -packagehspec2 test/Spec.hs
Is there a good way to let runhaskell
pick up the options from the .ghci
file?