As far as I know, GHC doesn't support Termux's LLVM.
https://github.com/termux/termux-packages/commit/94fc63465bbc476ff7a2fb03fd7efe8d37e0438a
Well that's really unfortunate...
The next version of ghc seems to be using llvm 3.7, which seems to be planned for _Release candidate by mid-December 2015. Release in January 2016_.
Oh man. I hope you can get it then. It would be amazing to have portable GHC in my pocket at all times.
Hi, I am reopening this issue. Package requests will now be labeled and tracked as an issue.
I second this request. It would be a lovely tool to have on the go :+1:
:+1:
Consider me a third for this request. Really wanna have an on-the-go GHCi especially.
I would love to have ghc on my phone and tablet. Please consider doing this.
I am attempting to build 7.10.3 using the Docker build method. Has anyone made it past the iconv portion of the build?
I've updated the disabled ghc package at
https://github.com/termux/termux-packages/tree/master/disabled-packages/ghc
That is probably the best starting point. Start by building the dependencies:
for p in libandroid-support libgnustl ncurses clang; do ./build-package.sh $p; done
Then try to build the ghc package with
./build-package.sh disabled-packages/ghc
Modify the build.sh file in disabled-packages/ghc and patch files as needed. I have left a note with the current status where the build fails at the top of disabled-packages/ghc/build.sh.
I'm very interested as well !!
I want to change my android device in quantum simulator !! http://www.mathstat.dal.ca/~selinger/quipper/
I would very much like to have hledger (http://hledger.org) running in termux. Would it be possible to run a compiled binary in termux, even without ghc? Currently, the "easy way" to install hledger (and hledger-ui, and hledger-web) is using stack.. does this make it any more feasible?
I'd like to mention that debian repositories contain ghc precompiled for arm64 which can be ran using application called 'GNURoot'
Love the idea. What's the current status on this?
There are now binary cross-compiler distributions for GHC, which might be a thing that we could use.
any updates on this?
right now i'm using android-termux-hugs to use Haskell but its missing quite a lot of functionality that GHC/GHCi provides.
Thanks to @t184256 and his script for running nix in termux, I was able to get GHC running. Once you have nix available, you can run nix run nixpkgs.haskellPackages.ghc to get shell with GHC/GHCi.
Has there been any progress on the possibility of fontforge in termux? It can be compiled without X, and many of its dependencies are flexible, according to the documentation.
edit: sorry, I posted this comment in the wrong thread.
Used Debian installed with a command from: "AndroNix - Linux on Android without root". Once installed ./start-ubuntu.sh then apt-get install ghc and voila gchi available.
Package is now available in unstable-packages repository.
pkg install unstable-repo
pkg install ghc
Available only for AArch64 and x86_64 currently.
Thanks to @qwerty12.
Most helpful comment
Thanks to @t184256 and his script for running nix in termux, I was able to get GHC running. Once you have nix available, you can run
nix run nixpkgs.haskellPackages.ghcto get shell with GHC/GHCi.