Ho una certa familiarità con Haskell, il linguaggio, ma non tanto con la toolchain. (Ho giocato con Haskell prima che esistessero cabal e stack.) Mi è stato detto che stack è lo strumento che dovrei usare per gestire i progetti Haskell. Sto cercando di imparare la rapidità della libreria, e sto diventando stymied sul primo tutorial che ho provato, perché non riesco a installare hplayground. Ho creato un progetto di stack; il mio stack.yaml haCome usare rapidità/hplayground con stack
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
e il mio file .cabal ha hplayground elencato nella build-dipende. Ma quando eseguo lo stack build, ottengo questi errori:
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)
e un sacco di errori simili. Qualche idea su cosa sto facendo male?
Più in generale: cos'è un modo rapido e semplice per iniziare subito a correre con qualcuno che non ha esperienza con la toolchain Haskell?