etienne-moqueur/src/Core/Compilers.hs
etienne 4bb7d7b140 First commit
Describes the base structure for the project, as well as some basic
functions.
TODO: everything really...
2022-09-21 18:02:50 +02:00

13 lines
429 B
Haskell

module Core.Compilers
( runGHC
) where
import Hakyll
-- Redundant... Those default extensions should be kept in sync with package.yaml, but `stack runghc` won't take those in account.
defaultExtensions :: [String]
defaultExtensions = ["--", "-XQuasiQuotes", "-XOverloadedStrings"]
runGHC :: Compiler (Item String)
runGHC = getResourceString
>>= withItemBody (unixFilter "stack" $ "runghc" : defaultExtensions)