Created
May 9, 2011 13:52
-
-
Save mightybyte/962551 to your computer and use it in GitHub Desktop.
bindStrict
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
bindStrict :: Monad m => Splice m | |
bindStrict = do | |
node <- getParamNode | |
cs <- runChildren | |
maybe (return ()) (add cs) | |
(X.getAttribute bindAttr node) | |
return [] | |
where | |
add cs nm = modifyTS $ bindSplice nm $ do | |
caller <- getParamNode | |
ctx <- getContext | |
rawApply cs ctx (X.childNodes caller) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment