15 Feb
2013
15 Feb
'13
10:15 p.m.
Andrew Cowie <andrew@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...), which defines `os` and `arch`.