Created
June 4, 2014 14:20
-
-
Save imalsogreg/21957063f48bcb8e5993 to your computer and use it in GitHub Desktop.
SpliceAPI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Heist.SpliceAPI | |
main :: IO () | |
main = print $ runSplices baz | |
foo = do | |
"aoeu" #! (1 :: Int) | |
"baba" #! 2 | |
bar = do | |
"smoot" #! 2 | |
"aoeu" #! 5 | |
baz = do | |
foo | |
mapS (+1) bar | |
"extra" #! 8181 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment