Skip to content

Instantly share code, notes, and snippets.

@pedrofurla
Created November 16, 2021 21:08
Show Gist options
  • Save pedrofurla/cd4bb0cc159375a294b561eab96474b1 to your computer and use it in GitHub Desktop.
Save pedrofurla/cd4bb0cc159375a294b561eab96474b1 to your computer and use it in GitHub Desktop.
import GHC
import GHC.Paths
main =
do
putStrLn $ "libdir = " ++ libdir
(runGhc (Just libdir) $ execStmt "print $ 1+1" execOptions) >> pure ()
putStrLn "We are done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment