Last active
September 19, 2022 13:12
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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