on master help sign in
Add functionField external tutorial
afbc784Jasper Van der Jeugt
src/Data/Yaml/Extended.hs+5−2
@@ -9,8 +9,11 @@ import qualified Data.Vector as V
9import Data.Yaml
9import Data.Yaml
10
10
11toString :: Value -> Maybe String
11toString :: Value -> Maybe String
12−toString (String t) = Just (T.unpack t)
12+toString (String t) = Just (T.unpack t)
13+toString (Bool True) = Just "true"
14+toString (Bool False) = Just "false"
15+toString (Number d) = Just (show d)
13−toString _ = Nothing
16+toString _ = Nothing
14
17
15toList :: Value -> Maybe [Value]
18toList :: Value -> Maybe [Value]
16toList (Array a) = Just (V.toList a)
19toList (Array a) = Just (V.toList a)
web/tutorials/04-compilers.markdown+1−1
@@ -1,5 +1,5 @@
1---
1---
2−title: More on compilers: load, and templates
2+title: 'More on compilers: load, and templates'
3author: Jasper Van der Jeugt
3author: Jasper Van der Jeugt
4---
4---
5
5
web/tutorials/external-functionfield.mdnew file+6
@@ -0,0 +1,6 @@
1+---
2+title: Hakyll's functionField
3+author: Beerend Lauwers
4+url: http://beerendlauwers.be/posts/2015-09-21-hakylls-functionfield.html
5+external: true
6+---