>>817
ありがさうございます。
なるほど、自分自身のパッケージ名というのは、library の項で記述されるライブラリを指しているのですね。
勉強になりました。


ちなみに、エラーメッセージというものは出力されなかったのですが、
stack build コマンドで次のメッセージが出力されました。
(パスの一部は伏せ字にしてあります)


sample-0.1.0.0: unregistering (local file changes: sample.cabal src/Lib.hs)
sample-0.1.0.0: configure
Configuring sample-0.1.0.0...
sample-0.1.0.0: build
Preprocessing executable 'sample' for sample-0.1.0.0...
<command line>: cannot satisfy -package-id sample-0.1.0.0-D0Za6tWWy4BLT1YZ9OrRCu
(use -v for more information)

-- While building package sample-0.1.0.0 using:
/home/????/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 build exe:sample --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1


stack build -v コマンドを使うと長々とメッセージが出力されますが、
どの部分がエラーを示しているのか分かりませんでした。