Handling in Android in Cabal

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Handling in Android in Cabal

Nathan Hüsken

I was just looking into how to add support to detect android as the OS
in Cabal. I found this comment:

--TODO: decide how to handle Android and iOS.
-- They are like Linux and OSX but with some differences.
-- Should they be separate from linux/osx, or a subtype?
-- e.g. should we have os(linux) && os(android) true simultaneously?

I want to add android to the list of os known by cabal because I need to
switch on it in the cabal file of haskeline to get it compiled on
android. But I would think that most of the time the same settings that
work for linux also work for android.

So my vote would be to make android a "subtype" of linux.