Safe Haskell | None |
---|
- quoteRExpression2 :: Int -> Bool -> [Char] -> Q Exp
- unlessQ :: Bool -> ExpQ -> ExpQ
- whenQ :: Bool -> ExpQ -> ExpQ
- splitKnitrHdr :: String -> (String, String)
- withRawFile :: String -> (String, ExpQ -> ExpQ)
- dropHS :: [Char] -> [Char]
- prefixes :: [[Char]]
- label :: String -> ExpQ
- label' :: String -> ExpQ
- var :: [Char] -> ExpQ
- mkHList :: [ExpQ] -> ExpQ
- notOut :: Intent -> Bool
- notIn :: Intent -> Bool
- parseTree' :: Parser (Tree [Char])
- parseTree :: Parser (Tree [Char])
- hsVars :: Tree String -> [String]
- labelTree :: Tree String -> Tree (String, Int)
- data Intent
- classifyExp :: Tree String -> Maybe (String, Intent)
- hsClassify :: Tree String -> Map String Intent
- getConTOf :: String -> Q (Maybe Name)
- classifyByConT :: [(String, b)] -> Q ([(String, b)], [(String, b)], [(String, b)])
- parseTreeTest2 :: IO ()
- parseTreeTest3 :: String -> IO ()
- parseTreeTest :: [Char] -> IO ()
- getRlangQQ_n :: Q Int
- rlangQQ_n :: IORef Int
the main quoter
quoteRExpression2 :: Int -> Bool -> [Char] -> Q ExpSource
going via binary serialization (classes from RlangQQ.Binary). This is used in r
splitKnitrHdr :: String -> (String, String)Source
utility functions
dropHS :: [Char] -> [Char]Source
go from the variable name used on the R-side to the one in the haskell side
converting R's AST
parseTree' :: Parser (Tree [Char])Source
what is the usage of a hs_
variable on the R side?
getConTOf :: String -> Q (Maybe Name)Source
this reify fails most of the time, since the type isn't available in a quasiquote (run in the renamer) for things declared in the same file.
tests
parseTreeTest2 :: IO ()Source
parseTreeTest3 :: String -> IO ()Source
parseTreeTest :: [Char] -> IO ()Source