Andrew Cowie <and...@operationaldynamics.com> писал(а) в своём письме Fri,
15 Feb 2013 17:05:13 +0300:
So my question is: what's an appropriate Haskell mechanism for building
code that is OS / arch / distro specific? It's not like I have autoconf
running generating me a config.h I could #include, right?
You can know the OS and arch without even resorting to CPP; see
System.Info
(http://hackage.haskell.org/packages/archive/base/latest/doc/html/System-Info.html),
which defines `os` and `arch`.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe