hugs-android icon indicating copy to clipboard operation
hugs-android copied to clipboard

Prelude cannot be found

Open vxanica opened this issue 11 years ago • 2 comments

I have set setup the Hugs evn variable to make it find the package directory. However, it still say Hugs.Prelude not found on current path ".:{Home}/lib/hugs/packages/:/usr/local/ib/hugs/packages/:{Hugs}/packages/*"

vxanica avatar Jan 13 '14 12:01 vxanica

By default this port is intended for use with Jack Palevich's Android Terminal Emulator and must be placed here: '/data/data/jackpal.androidterm/app_HOME'. If you want to place it somewhere else, you can change the HUGSDIR environment variable which points to where the Hugs libraries are installed - ie so that the file HUGSDIR/lib/Prelude.hs exists. In this port by default it is '/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs'. By default Hugs paths and directories are set to be '.:{Home}/lib/hugs/packages/:/usr/local/lib/hugs/packages/:{Hugs}/packages/*'. This value can be overridden from the command line by setting the HUGSFLAGS environment variable. Value may contain string "{Hugs}" (for which we will substitute the value of HUGSDIR).

If this didn't help could you, please provide more information about your setup, e.g. where did you place Hugs, Terminal Emulator, etc.

conscell avatar Feb 05 '14 22:02 conscell

I've set this up using Terminal IDE (https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside) with very little hassle. I extracted the folder to ~/haskell, from the home folder did: ln -s haskell/lib lib chmod 755 haskell/bin/*

Lastly, I added ~/haskell/bin to my PATH. Works perfectly, thank you very much for all your effort!

undecided avatar May 09 '14 22:05 undecided