Comments (3)
example test case:
main :: IO ()
main = do
blg <- BS.readFile "blog-config.yaml"
let blogconfig = decodedstr blg
hakyll $ do
match "images/*" $ do
route idRoute
compile copyFileCompiler
match "css/*.scss" $ do
route $ setExtension "css"
let compressCssItem = fmap compressCss
compile (compressCssItem <$> sassCompiler)
match (fromList ["about.md", "contact.md"]) $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" (defaultCTX blogconfig)
>>= relativizeUrls
match "posts/*" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" (postCtx blogconfig)
>>= loadAndApplyTemplate "templates/default.html" (postCtx blogconfig)
>>= relativizeUrls
create ["archive.html"] $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "posts/*"
makeItem ""
>>= loadAndApplyTemplate "templates/archive.html" (archiveCtx posts blogconfig)
>>= loadAndApplyTemplate "templates/default.html" (archiveCtx posts blogconfig)
>>= relativizeUrls
match "index.html" $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "posts/*"
getResourceBody
>>= applyAsTemplate (indexCtx posts blogconfig)
>>= loadAndApplyTemplate "templates/default.html" (indexCtx posts blogconfig)
>>= relativizeUrls
match "templates/*" $ compile templateBodyCompiler
hint: it also works only on the brackets
from haskell-interactive-mode.
A new PR has been sent to fix this issue
from haskell-interactive-mode.
fixed
from haskell-interactive-mode.
Related Issues (9)
- pop ups in interpreter
- put docs on readthedocs.io HOT 1
- use cask
- Split haskell-interative-mode from haskell-mode
- make inf-haskell to highlight directories, urls etc
- interactive-haskell-mode is still dependent on haskell-interactive-mode HOT 1
- make tests/haskell-completions-tests.el independent of defadvice
- C-c C-c should be handled better in inferior haskell-mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-interactive-mode.