Skip to content

Instantly share code, notes, and snippets.

@nhibberd
Created May 19, 2015 04:26
Show Gist options
  • Save nhibberd/cd96921b893302275d63 to your computer and use it in GitHub Desktop.
Save nhibberd/cd96921b893302275d63 to your computer and use it in GitHub Desktop.
Haskell CPP Macros

Version

#if MIN_VERSION_process(1,2,0)
#if MIN_VERSION_base(4,7,0)

Host os

#if defined(darwin_HOST_OS)
#if defined(linux_HOST_OS)

format

#if X
#elif Y
#else
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment