Does hplayground work with current version?

39 views
Skip to first unread message

Ur. Kr.

unread,
Feb 23, 2016, 8:00:12 PM2/23/16
to haste-compiler

I'm trying follow this tutorial in an attempt to learn about haste, but I'm having trouble installing the hplayground library.

Are they currently incompatible, or am I doing something wrong? Should I use an older version of haste if I want to use hplayground?

running cabal install hplayground gives this error: 

Resolving dependencies...
Configuring haste-perch-0.1.0.9...
Building haste-perch-0.1.0.9...
Failed to install haste-perch-0.1.0.9
Build log ( C:\Users\Urban\AppData\Roaming\cabal\logs\haste-perch-0.1.0.9.log ):
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, dist\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)

Haste\App\Perch.hs:94:17: Not in scope: `setProp'

Haste\App\Perch.hs:97:13:
    Not in scope: type constructor or class `ClientCallback'

Haste\App\Perch.hs:97:42:
    Not in scope: type constructor or class `Event'

Haste\App\Perch.hs:100:15: Not in scope: `evtName'

Haste\App\Perch.hs:101:13:
    Not in scope: `getAttr'
    Perhaps you meant `getAlt' (imported from Data.Monoid)

Haste\App\Perch.hs:105:9: Not in scope: `onEvent'

Haste\App\Perch.hs:106:9:
    Not in scope: `setAttr'
    Perhaps you meant `jsSetAttr' (imported from Haste.App)
cabal: Error: some packages failed to install:
haste-perch-0.1.0.9 failed during the building phase. The exception was:
ExitFailure 1
hplayground-0.1.3.1 depends on haste-perch-0.1.0.9 which failed to install.

Anton Ekblad

unread,
Mar 2, 2016, 3:44:11 PM3/2/16
to haste-compiler
I don't believe hplayground works with any 0.5.x version of Haste. You could try installing one of the 0.4 versions, but be aware that their APIs are slightly different and that they may contain bugs and performance problems that have been fixed in later releases.

/Anton

--
You received this message because you are subscribed to the Google Groups "haste-compiler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haste-compile...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages