Skip to content

Instantly share code, notes, and snippets.

@josephcsible
Last active September 19, 2022 13:12
Show Gist options
  • Save josephcsible/f9e7a60ad017d804c3e517377c278388 to your computer and use it in GitHub Desktop.
Save josephcsible/f9e7a60ad017d804c3e517377c278388 to your computer and use it in GitHub Desktop.
Using the C preprocessor with single quotes where C wouldn't allow them
{-# LANGUAGE CPP #-}
#define MAIN_FN_NAME main
#define puts putStrLn hello'world
hello'world :: String
hello'world = "Hello, World!"
MAIN_FN_NAME = puts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment