agocorona / hplayground

Translate your console applications to run in the web browser and have reactive, window-oriented and spreadsheet effects for free. Widget combinators running in the browser with the Haste compiler
Other
60 stars 7 forks source link

Build wih haste 0.5 #9

Open NCrashed opened 9 years ago

NCrashed commented 9 years ago

Platform: Fedora 22 hastec: 0.5.0

https://github.com/agocorona/haste-perch/issues/12 is fixed, thus the following problems could be reproduced:

[ncrashed@MAIN hplayground]$ haste-inst install
Resolving dependencies...
Configuring hplayground-0.1.2.9...
Building hplayground-0.1.2.9...
Preprocessing library hplayground-0.1.2.9...

src/Haste/HPlay/View.hs:156:49:
    Not in scope: type constructor or class ‘ElemID’
    Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:414:10: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:418:14: Not in scope: ‘getValue’

src/Haste/HPlay/View.hs:463:28:
    Not in scope: ‘withElem’
    Perhaps you meant one of these:
      ‘withElems’ (imported from Haste.Perch),
      ‘withElems'’ (imported from Haste.Perch)

src/Haste/HPlay/View.hs:466:28:
    Not in scope: ‘withElem’
    Perhaps you meant one of these:
      ‘withElems’ (imported from Haste.Perch),
      ‘withElems'’ (imported from Haste.Perch)

src/Haste/HPlay/View.hs:556:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:559:30: Not in scope: ‘getProp’

src/Haste/HPlay/View.hs:571:49:
    Not in scope: data constructor ‘OnClick’
    Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:598:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:601:29: Not in scope: ‘getProp’

src/Haste/HPlay/View.hs:799:76:
    Not in scope: data constructor ‘OnClick’
    Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:804:30:
    Not in scope: type constructor or class ‘ElemID’
    Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:813:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:819:45:
    Not in scope: data constructor ‘OnClick’
    Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:1055:20:
    Not in scope: type constructor or class ‘Event’
    Perhaps you meant ‘EventF’ (line 100)

src/Haste/HPlay/View.hs:1056:15:
    Not in scope: ‘evtName’
    Perhaps you meant one of these:
      ‘evName’ (line 1022), ‘eventName’ (line 1052)

src/Haste/HPlay/View.hs:1066:9:
    Not in scope: data constructor ‘OnLoad’

src/Haste/HPlay/View.hs:1067:9:
    Not in scope: data constructor ‘OnUnload’

src/Haste/HPlay/View.hs:1068:9:
    Not in scope: data constructor ‘OnChange’

src/Haste/HPlay/View.hs:1069:9:
    Not in scope: data constructor ‘OnFocus’

src/Haste/HPlay/View.hs:1070:9:
    Not in scope: data constructor ‘OnBlur’

src/Haste/HPlay/View.hs:1072:9:
    Not in scope: data constructor ‘OnMouseMove’

src/Haste/HPlay/View.hs:1075:9:
    Not in scope: data constructor ‘OnMouseOver’

src/Haste/HPlay/View.hs:1078:9:
    Not in scope: data constructor ‘OnMouseOut’
    Perhaps you meant ‘MouseOut’ (line 1021)

src/Haste/HPlay/View.hs:1081:9:
    Not in scope: data constructor ‘OnClick’
    Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:1084:9:
    Not in scope: data constructor ‘OnDblClick’

src/Haste/HPlay/View.hs:1087:9:
    Not in scope: data constructor ‘OnMouseDown’

src/Haste/HPlay/View.hs:1090:9:
    Not in scope: data constructor ‘OnMouseUp’

src/Haste/HPlay/View.hs:1093:9:
    Not in scope: data constructor ‘OnKeyPress’

src/Haste/HPlay/View.hs:1096:9:
    Not in scope: data constructor ‘OnKeyUp’

src/Haste/HPlay/View.hs:1099:9:
    Not in scope: data constructor ‘OnKeyDown’

src/Haste/HPlay/View.hs:1160:18:
    Not in scope: type constructor or class ‘Event’
    Perhaps you meant ‘EventF’ (line 100)

src/Haste/HPlay/View.hs:1165:21:
    Not in scope: ‘evtName’
    Perhaps you meant one of these:
      ‘evName’ (line 1022), ‘eventName’ (line 1052)

src/Haste/HPlay/View.hs:1177:12:
    Not in scope: ‘setTimeout’
    Perhaps you meant one of these:
      ‘wtimeout’ (line 1175), ‘setTimer’ (imported from Haste)

src/Haste/HPlay/View.hs:1178:15: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:1220:28:
    Not in scope: type constructor or class ‘ElemID’
    Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:1222:10: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:1296:38:
    Not in scope: ‘newElem’
    Perhaps you meant one of these:
      ‘nelem’ (imported from Haste.Perch),
      ‘notElem’ (imported from Prelude)

src/Haste/HPlay/View.hs:1353:15:
    Not in scope: ‘mkCallback’
    Perhaps you meant ‘wcallback’ (line 251)

src/Haste/HPlay/View.hs:1372:33:
    Not in scope: type constructor or class ‘JSFun’
    Perhaps you meant ‘JSFunc’ (imported from Haste.Foreign)

src/Haste/HPlay/View.hs:1374:53:
    Not in scope: type constructor or class ‘JSFun’
    Perhaps you meant ‘JSFunc’ (imported from Haste.Foreign)

src/Haste/HPlay/View.hs:1381:49:
    Not in scope: ‘mkCallback’
    Perhaps you meant ‘wcallback’ (line 251)
agocorona commented 9 years ago

I can´t boot Haste 5.0 I have this issue:

https://github.com/valderman/haste-compiler/issues/302

2015-04-11 1:59 GMT+02:00 Anton Gushcha notifications@github.com:

Platform: Fedora 22 hastec: 0.5.0

agocorona/haste-perch#12 https://github.com/agocorona/haste-perch/issues/12 is fixed, thus the following problems could be reproduced:

[ncrashed@MAIN hplayground]$ haste-inst install Resolving dependencies... Configuring hplayground-0.1.2.9... Building hplayground-0.1.2.9... Preprocessing library hplayground-0.1.2.9...

src/Haste/HPlay/View.hs:156:49: Not in scope: type constructor or class ‘ElemID’ Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:414:10: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:418:14: Not in scope: ‘getValue’

src/Haste/HPlay/View.hs:463:28: Not in scope: ‘withElem’ Perhaps you meant one of these: ‘withElems’ (imported from Haste.Perch), ‘withElems'’ (imported from Haste.Perch)

src/Haste/HPlay/View.hs:466:28: Not in scope: ‘withElem’ Perhaps you meant one of these: ‘withElems’ (imported from Haste.Perch), ‘withElems'’ (imported from Haste.Perch)

src/Haste/HPlay/View.hs:556:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:559:30: Not in scope: ‘getProp’

src/Haste/HPlay/View.hs:571:49: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:598:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:601:29: Not in scope: ‘getProp’

src/Haste/HPlay/View.hs:799:76: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:804:30: Not in scope: type constructor or class ‘ElemID’ Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:813:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:819:45: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:1055:20: Not in scope: type constructor or class ‘Event’ Perhaps you meant ‘EventF’ (line 100)

src/Haste/HPlay/View.hs:1056:15: Not in scope: ‘evtName’ Perhaps you meant one of these: ‘evName’ (line 1022), ‘eventName’ (line 1052)

src/Haste/HPlay/View.hs:1066:9: Not in scope: data constructor ‘OnLoad’

src/Haste/HPlay/View.hs:1067:9: Not in scope: data constructor ‘OnUnload’

src/Haste/HPlay/View.hs:1068:9: Not in scope: data constructor ‘OnChange’

src/Haste/HPlay/View.hs:1069:9: Not in scope: data constructor ‘OnFocus’

src/Haste/HPlay/View.hs:1070:9: Not in scope: data constructor ‘OnBlur’

src/Haste/HPlay/View.hs:1072:9: Not in scope: data constructor ‘OnMouseMove’

src/Haste/HPlay/View.hs:1075:9: Not in scope: data constructor ‘OnMouseOver’

src/Haste/HPlay/View.hs:1078:9: Not in scope: data constructor ‘OnMouseOut’ Perhaps you meant ‘MouseOut’ (line 1021)

src/Haste/HPlay/View.hs:1081:9: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:1084:9: Not in scope: data constructor ‘OnDblClick’

src/Haste/HPlay/View.hs:1087:9: Not in scope: data constructor ‘OnMouseDown’

src/Haste/HPlay/View.hs:1090:9: Not in scope: data constructor ‘OnMouseUp’

src/Haste/HPlay/View.hs:1093:9: Not in scope: data constructor ‘OnKeyPress’

src/Haste/HPlay/View.hs:1096:9: Not in scope: data constructor ‘OnKeyUp’

src/Haste/HPlay/View.hs:1099:9: Not in scope: data constructor ‘OnKeyDown’

src/Haste/HPlay/View.hs:1160:18: Not in scope: type constructor or class ‘Event’ Perhaps you meant ‘EventF’ (line 100)

src/Haste/HPlay/View.hs:1165:21: Not in scope: ‘evtName’ Perhaps you meant one of these: ‘evName’ (line 1022), ‘eventName’ (line 1052)

src/Haste/HPlay/View.hs:1177:12: Not in scope: ‘setTimeout’ Perhaps you meant one of these: ‘wtimeout’ (line 1175), ‘setTimer’ (imported from Haste)

src/Haste/HPlay/View.hs:1178:15: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:1220:28: Not in scope: type constructor or class ‘ElemID’ Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:1222:10: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:1296:38: Not in scope: ‘newElem’ Perhaps you meant one of these: ‘nelem’ (imported from Haste.Perch), ‘notElem’ (imported from Prelude)

src/Haste/HPlay/View.hs:1353:15: Not in scope: ‘mkCallback’ Perhaps you meant ‘wcallback’ (line 251)

src/Haste/HPlay/View.hs:1372:33: Not in scope: type constructor or class ‘JSFun’ Perhaps you meant ‘JSFunc’ (imported from Haste.Foreign)

src/Haste/HPlay/View.hs:1374:53: Not in scope: type constructor or class ‘JSFun’ Perhaps you meant ‘JSFunc’ (imported from Haste.Foreign)

src/Haste/HPlay/View.hs:1381:49: Not in scope: ‘mkCallback’ Perhaps you meant ‘wcallback’ (line 251)

— Reply to this email directly or view it on GitHub https://github.com/agocorona/hplayground/issues/9.

Alberto.

agocorona commented 9 years ago

But I think that it it necessary to redo some things in the event handling of hplay to accomodate to this new version of Haste.

I will do a rewrite probably bypassing the event handling of haste and calling directly JavaScript. This way it will be easier to port it to GHCJS.

In the meantime,the haste-perch , hplay and haste-compiler versions on hackage works well together.

I need to solve the fmap bug first

2015-04-11 11:05 GMT+02:00 Alberto G. Corona agocorona@gmail.com:

I can´t boot Haste 5.0 I have this issue:

https://github.com/valderman/haste-compiler/issues/302

2015-04-11 1:59 GMT+02:00 Anton Gushcha notifications@github.com:

Platform: Fedora 22 hastec: 0.5.0

agocorona/haste-perch#12 https://github.com/agocorona/haste-perch/issues/12 is fixed, thus the following problems could be reproduced:

[ncrashed@MAIN hplayground]$ haste-inst install Resolving dependencies... Configuring hplayground-0.1.2.9... Building hplayground-0.1.2.9... Preprocessing library hplayground-0.1.2.9...

src/Haste/HPlay/View.hs:156:49: Not in scope: type constructor or class ‘ElemID’ Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:414:10: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:418:14: Not in scope: ‘getValue’

src/Haste/HPlay/View.hs:463:28: Not in scope: ‘withElem’ Perhaps you meant one of these: ‘withElems’ (imported from Haste.Perch), ‘withElems'’ (imported from Haste.Perch)

src/Haste/HPlay/View.hs:466:28: Not in scope: ‘withElem’ Perhaps you meant one of these: ‘withElems’ (imported from Haste.Perch), ‘withElems'’ (imported from Haste.Perch)

src/Haste/HPlay/View.hs:556:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:559:30: Not in scope: ‘getProp’

src/Haste/HPlay/View.hs:571:49: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:598:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:601:29: Not in scope: ‘getProp’

src/Haste/HPlay/View.hs:799:76: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:804:30: Not in scope: type constructor or class ‘ElemID’ Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:813:18: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:819:45: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:1055:20: Not in scope: type constructor or class ‘Event’ Perhaps you meant ‘EventF’ (line 100)

src/Haste/HPlay/View.hs:1056:15: Not in scope: ‘evtName’ Perhaps you meant one of these: ‘evName’ (line 1022), ‘eventName’ (line 1052)

src/Haste/HPlay/View.hs:1066:9: Not in scope: data constructor ‘OnLoad’

src/Haste/HPlay/View.hs:1067:9: Not in scope: data constructor ‘OnUnload’

src/Haste/HPlay/View.hs:1068:9: Not in scope: data constructor ‘OnChange’

src/Haste/HPlay/View.hs:1069:9: Not in scope: data constructor ‘OnFocus’

src/Haste/HPlay/View.hs:1070:9: Not in scope: data constructor ‘OnBlur’

src/Haste/HPlay/View.hs:1072:9: Not in scope: data constructor ‘OnMouseMove’

src/Haste/HPlay/View.hs:1075:9: Not in scope: data constructor ‘OnMouseOver’

src/Haste/HPlay/View.hs:1078:9: Not in scope: data constructor ‘OnMouseOut’ Perhaps you meant ‘MouseOut’ (line 1021)

src/Haste/HPlay/View.hs:1081:9: Not in scope: data constructor ‘OnClick’ Perhaps you meant ‘Click’ (line 1021)

src/Haste/HPlay/View.hs:1084:9: Not in scope: data constructor ‘OnDblClick’

src/Haste/HPlay/View.hs:1087:9: Not in scope: data constructor ‘OnMouseDown’

src/Haste/HPlay/View.hs:1090:9: Not in scope: data constructor ‘OnMouseUp’

src/Haste/HPlay/View.hs:1093:9: Not in scope: data constructor ‘OnKeyPress’

src/Haste/HPlay/View.hs:1096:9: Not in scope: data constructor ‘OnKeyUp’

src/Haste/HPlay/View.hs:1099:9: Not in scope: data constructor ‘OnKeyDown’

src/Haste/HPlay/View.hs:1160:18: Not in scope: type constructor or class ‘Event’ Perhaps you meant ‘EventF’ (line 100)

src/Haste/HPlay/View.hs:1165:21: Not in scope: ‘evtName’ Perhaps you meant one of these: ‘evName’ (line 1022), ‘eventName’ (line 1052)

src/Haste/HPlay/View.hs:1177:12: Not in scope: ‘setTimeout’ Perhaps you meant one of these: ‘wtimeout’ (line 1175), ‘setTimer’ (imported from Haste)

src/Haste/HPlay/View.hs:1178:15: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:1220:28: Not in scope: type constructor or class ‘ElemID’ Perhaps you meant ‘Elem’ (imported from Haste)

src/Haste/HPlay/View.hs:1222:10: Not in scope: ‘elemById’

src/Haste/HPlay/View.hs:1296:38: Not in scope: ‘newElem’ Perhaps you meant one of these: ‘nelem’ (imported from Haste.Perch), ‘notElem’ (imported from Prelude)

src/Haste/HPlay/View.hs:1353:15: Not in scope: ‘mkCallback’ Perhaps you meant ‘wcallback’ (line 251)

src/Haste/HPlay/View.hs:1372:33: Not in scope: type constructor or class ‘JSFun’ Perhaps you meant ‘JSFunc’ (imported from Haste.Foreign)

src/Haste/HPlay/View.hs:1374:53: Not in scope: type constructor or class ‘JSFun’ Perhaps you meant ‘JSFunc’ (imported from Haste.Foreign)

src/Haste/HPlay/View.hs:1381:49: Not in scope: ‘mkCallback’ Perhaps you meant ‘wcallback’ (line 251)

— Reply to this email directly or view it on GitHub https://github.com/agocorona/hplayground/issues/9.

Alberto.

Alberto.

NCrashed commented 9 years ago

I can´t boot Haste 5.0 I have this issue:

I had the issue when was trying to boot like this:

haste-boot

But works (in haste-compiler root directory):

haste-boot --force --local
NCrashed commented 9 years ago

In the meantime,the haste-perch , hplay and haste-compiler versions on hackage works well together.

At the moment I use 0.4.4 toolchain. My tries to checkout 0.5 is hope that the version has better optimizer as I constantly catch too much recursion problem (the main reason - too many thunks).

NCrashed commented 9 years ago

By the way, there is no rush to fix the problem, I've just reported that there would be problems when haste-compiler 0.5 is out.

agocorona commented 9 years ago

Thanks, I did nor remember that trick

2015-04-11 13:16 GMT+02:00 Anton Gushcha notifications@github.com:

I can´t boot Haste 5.0 I have this issue:

I had the issue when was trying to boot like this:

haste-boot

But works (in haste-compiler root directory):

haste-boot --force --local

— Reply to this email directly or view it on GitHub https://github.com/agocorona/hplayground/issues/9#issuecomment-91827940.

Alberto.