Haskell interpreter on Android?
Solution 1
Taking a note from imz, all you need is
- ConnectBot or similar
- A remote machine with
- Vim, Emacs, or similar
- runghc / ghci / hugs / yourfavoritehaskellinterpreterorcompiler
It's not as solid as a dedicated app or scripting layer would be, but honestly, for your use cases, it would provide almost exactly the same functionality as those options (if not more). And it would be just as "mobile" as a website (depends only on the uptime of the host and the connectivity of the client).
Solution 2
Hugs is written in C and quite portable. It should be possible to port it to Android.
Solution 3
You can use tryhaskell.org from your mobile browser. It will accept any valid expression, but keep in mind that defining your own data types won't be possible.
Solution 4
For some negative information, all the work I've seen for GHC on Android (such as http://ipwnstudios.com/) is based on cross-compilation, rather than building GHC for android or ARM.
Solution 5
I just found IDEone in the Android Market, which sends your code to an online service. It works, but programming on Android isn't much fun. Btw: In case you don't want to register see BugMeNot
imz -- Ivan Zakharyaschev
My name is Ivan Zakharyaschev, Иван Захарьящев, imz.
Updated on May 27, 2020Comments
-
imz -- Ivan Zakharyaschev almost 4 years
Is there a Haskell interpreter (with standard libraries) that can be installed on Android?
So that someone with an Android device can do some Haskell exercises on an Android device: write and run some example code in Haskell.