Skip to content

Commit

Permalink
Add T.unpack to the relevant doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
aabounegm committed Jan 9, 2024
1 parent 3bc8964 commit 87fd1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rzk/src/Language/Rzk/Free/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ incVarIdentIndex (VarIdent (Rzk.VarIdent loc token)) =

-- | Increment the subscript number at the end of the indentifier.
--
-- >>> putStrLn $ incIndex "x"
-- >>> putStrLn $ T.unpack $ incIndex "x"
-- x₁
-- >>> putStrLn $ incIndex "x₁₉"
-- >>> putStrLn $ T.unpack $ incIndex "x₁₉"
-- x₂₀
incIndex :: T.Text -> T.Text
incIndex s = T.pack $ name <> newIndex
Expand Down
2 changes: 1 addition & 1 deletion rzk/src/Language/Rzk/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ data LineType = NonCode | CodeOf T.Text
-- := U
-- ```
-- asda
-- >>> putStrLn $ extractMarkdownCodeBlocks "rzk" example
-- >>> putStrLn $ T.unpack $ extractMarkdownCodeBlocks "rzk" example
-- <BLANKLINE>
-- <BLANKLINE>
-- #lang rzk-1
Expand Down

0 comments on commit 87fd1b9

Please sign in to comment.