Created
November 11, 2015 18:47
-
-
Save mjhoy/25205f7416e1734892a1 to your computer and use it in GitHub Desktop.
if-bound
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
ifBound :: SnapletISplice b | |
ifBound = do | |
inp <- getParamNode | |
let t = X.getAttribute "tag" inp | |
case t of | |
Nothing -> return mempty | |
Just t' -> do | |
st <- getHS | |
let s = lookupSplice t' st | |
case s of | |
Nothing -> return mempty | |
Just _x -> runChildren |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment