Precompiled package #1

aXe1 opened this Issue May 27, 2013 · 5 comments


None yet

3 participants

aXe1 commented May 27, 2013

Could you publish a precompiled APK to play with? I failed building ghc-android yet and just want to examine resulting package. Also, what is the minimum Android version required?
If it's possible, please, publish version targeting Android 2.2.
Thank you.


I’m not sure there is any point in that. It’s a pretty trivial example. Just one Java class file and a Haskell shared object file. I would rather spend some time getting pre-built cross-compilers built.

@neurocyte neurocyte closed this May 27, 2013
aXe1 commented May 28, 2013

Just now compiling Haskell shared object is tricky.. I just want to have understanding how fat APK will be with all Haskell staff packed inside. Also it is interesting, if there would be sensible performance penalty, but for that Hello World isn't enough of course. For comparison - AFAIK Mono for Android is a similar thing and it adds ~3 Mb of libs and doesn't give sensible performance penalty.
Can you comment on Haskell for Android?


The apk for android-haskell-activity is around 3Mb. I haven’t looked at reducing it yet. It may be possible though. I doubt a full haskell application would be much bigger. Most of the size is the base libraries and the RTS, which is huge compared to any actual application.

gliptak commented Jun 22, 2013

Neurocyte, how is generated? From Thanks


Yes. is built by arm-linux-androideabi-cabal and/or i686-linux-android-cabal. See custom_rules.xml. These are wrapper scripts around cabal for calling the cross-compiler correctly. They are installed by the cross-compiler build script in ghc-android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment