Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Parser = Parsec Void Text
- renderIntro :: Ord c => (c -> Text) -> [c] -> Prompt -> Either String Text
- renderPrompt :: forall c. Ord c => (c -> Text) -> (ByteString -> Word64) -> Map Text (Set Text) -> Bracket c Int64 KuritaGame -> Prompt -> Either String Text
- sortedPair :: Ord a => SortedList a -> Maybe (a, a)
- displayPrompt :: Prompt -> Text
- parsePrompt :: Text -> Either Text Prompt
- promptParser :: Parser Prompt
- textSegment :: Parser Text
- promptSlot :: Parser PromptSlot
Documentation
renderPrompt :: forall c. Ord c => (c -> Text) -> (ByteString -> Word64) -> Map Text (Set Text) -> Bracket c Int64 KuritaGame -> Prompt -> Either String Text Source #
Fill a prompt if possible, otherwise return the filled prompt and leftover emojis
sortedPair :: Ord a => SortedList a -> Maybe (a, a) Source #
displayPrompt :: Prompt -> Text Source #
textSegment :: Parser Text Source #