| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Fluffy.Parser
Documentation
data TrueOrFalse Source #
Constructors
| TrueOrFalse | |
Fields
| |
Instances
data GapFilling Source #
Constructors
| GapFilling | |
Fields
| |
Instances
data MultipleChoice Source #
Instances
replace160 :: String -> String Source #
loadFileWithDocx :: FilePath -> IO (Either PandocError Pandoc) Source #
renderText :: [Inline] -> String Source #
fetchTOFInfo :: Block -> TrueOrFalse -> TrueOrFalse Source #
fetchTOFBody :: Block -> TrueOrFalse -> TrueOrFalse Source #
fetchGFInfo :: Block -> GapFilling -> GapFilling Source #
fetchGFBody :: Block -> GapFilling -> GapFilling Source #
parserTOFSet' :: Stream s m Char => ParsecT s u m ([String] -> TrueOrFalse -> TrueOrFalse) Source #
parseTOFSet :: [[Block]] -> TrueOrFalse -> TrueOrFalse Source #
parserGFSet' :: Stream s m Char => ParsecT s u m ([String] -> GapFilling -> GapFilling) Source #
parseGFSet :: [[Block]] -> GapFilling -> GapFilling Source #
toTOF :: Block -> TrueOrFalse Source #
toGF :: Block -> GapFilling Source #
updateTOF :: Connection -> TrueOrFalse -> IO () Source #
updateGF :: Connection -> GapFilling -> IO () Source #
data MultipleChoiceContext Source #
Constructors
| MCCQuestBody String | |
| MCCQuestHead String | |
| MCCQuestItem Int String | |
| MCCNull |
Instances
parserMCQuestHead :: Stream s m Char => ParsecT s u m [MultipleChoiceContext] Source #
parserMCQuestRest :: Stream s m Char => ParsecT s u m [MultipleChoiceContext] Source #
parserMCQuestItem :: Stream s m Char => ParsecT s u m [MultipleChoiceContext] Source #
parseMCBody :: [(Int, String)] -> String -> MultipleChoiceProb Source #
parseMCfBlock :: Block -> [MultipleChoiceContext] Source #
data MultipleChoiceProb Source #
Instances
Constructors
| MCCInterNull | |
| MCCInterItem String [(Int, String)] |
toMCPfMCCStep :: MCCInter -> [MultipleChoiceContext] -> [MultipleChoiceProb] Source #
toMCPfMCC :: [MultipleChoiceContext] -> [MultipleChoiceProb] Source #
updateMC :: Connection -> MultipleChoice -> IO () Source #