Port of HUGS Haskell interpreter to Android
Haskell C Other
Switch branches/tags
Nothing to show
Latest commit 31e5861 Oct 14, 2013 conscell Initial release
Failed to load latest commit information.
jni Initial release Oct 14, 2013
tools Initial release Oct 14, 2013
readme.txt Initial release Oct 14, 2013


This is a port of HUGS Haskell interpreter to Android.


To compile hugs-android, you have to install Android NDK and add the
path to your NDK directory into the PATH variable. For example:

export PATH=${PATH}:~/Development/android-ndk-r9 

Either you can build it manually by executing 'ndk-build' command 
or by executing 'tools/build.sh' script in the 'hugs-android' directory,
which will also create a ready to install archive 'hugs.zip' and the
installation script 'inst.sh'. The default target architecture is
'armeabi'. To build application for the other architecture you have to edit
files 'jni/Application.mk' and 'tools/build.sh' and replace the value
'armeabi' to one of the following: 'armeabi-v7a' 'mips' 'x86'.


This port is intended for use with Jack Palevich's Android Terminal Emulator
which is available here: 


After installing the terminal emulator you need to download the 
archive 'hugs.zip' to your device, decompress it and then copy 
extracted 'hugs' directory to the terminal emulator application home 
directory '/data/data/jackpal.androidterm/app_HOME'.
Since stock android doesn't have a 'cp' command which can copy directories
recursively, you can use the installation script 'inst.sh'. It will
do the job by creating the directory hierarchy with 'mkdir' command 
and copying files with 'cat' command from the download directory
'/sdcard/Download' to the application home directory.  If you have
a different download and application home locations you need to change the
values of variables DLDIR and BASEDIR in the 'inst.sh' script.

Happy coding!