言語である Haskell にはある程度の知識がありますが、ツールチェーンにはあまり詳しくありません。(cabal と stack が存在する前に Haskell をいじってみました。) Haskell プロジェクトを管理するために使用すべきツールは stack だと言われました。ヘイスト ライブラリを学習しようとしていますが、hplayground をインストールできないため、最初に試したチュートリアルで苦労しています。スタック プロジェクトを作成しました。私のstack.yamlには
extra-deps:
- ghc-simple-0.3
- haste-compiler-0.5.3
- shellmate-0.2.3
- haste-perch-0.1.0.9
- hplayground-0.1.3.1
私の.cabalファイルには、ビルド依存にリストされているhplaygroundがあります。しかし、スタック ビルドを実行すると、次のエラーが発生します。
Configuring haste-perch-0.1.0.9...
Building haste-perch-0.1.0.9...
Preprocessing library haste-perch-0.1.0.9...
Haste/Perch.hs:17:15: Warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
Haste/App/Perch.hs:18:15: Warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[1 of 2] Compiling Haste.App.Perch ( Haste/App/Perch.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Haste/App/Perch.o )
Haste/App/Perch.hs:61:15: Not in scope: ‘newTextElem’
Haste/App/Perch.hs:71:9:
Not in scope: ‘setAttr’
Perhaps you meant ‘jsSetAttr’ (imported from Haste.App)
Haste/App/Perch.hs:76:15:
Not in scope: ‘newElem’
Perhaps you meant one of these:
‘nelem’ (line 75), ‘notElem’ (imported from Prelude)
と同様のエラーがたくさんあります。私が間違っていることについて何か考えはありますか?
より広い意味で: Haskell ツールチェーンの経験がない人が急いで立ち上げて実行するための迅速で簡単な方法は何ですか?