Bloc notes | Code color with Hakyll


Posted on January 4, 2018 comments []

CLI

stack --resolver=lts-9 ghci --package  skylighting
import Skylighting
-- https://hackage.haskell.org/package/skylighting-0.5.0.1/docs/Skylighting-Styles.html
writeFile "./css/code.css" $ styleToCss espresso

Haskell code

main :: IO ()
main = do
  forkServer "localhost" 8001
  E.setLocaleEncoding E.utf8
  writeFile "./css/code.css" $ styleToCss zenburn -- css pour code
  hakyllWith conf $ do
    ...