Describes the base structure for the project, as well as some basic functions. TODO: everything really...
13 lines
429 B
Haskell
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)
|