Skip to content

Commit

Permalink
punctuation in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoigtlaender committed Aug 17, 2023
1 parent c9c3553 commit 35cc42f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Test/IOTasks/MonadTeletype.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Monad m => MonadTeletype m where
-- Defaults to
-- @
-- hSetBuffering _ _ = pure ()
-- @
-- @.
hSetBuffering :: Handle -> BufferMode -> m ()
hSetBuffering _ _ = pure ()

Expand Down
4 changes: 2 additions & 2 deletions src/Test/IOTasks/Term/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ allValues = valuesBefore 0

valueBefore :: forall a e k. (Typeable a, VarExp e) => Int -> e -> Term k a
-- ^ If the variable-expression x is associated with the values [x_1,..,x_n],
-- @'valueBefore' i x@ provides access to x_(n-i)
-- @'valueBefore' i x@ provides access to x_(n-i).
valueBefore n x = checkNames x $ matchType @a
[ inCaseOfE' @Integer $ \HRefl -> Current x n
, inCaseOfE' @String $ \HRefl -> Current x n
, fallbackCase' $ error $ "variable type not supported for Terms: " ++ show (typeRep @a)
]
valuesBefore :: forall a e k. (Typeable a, VarExp e) => Int -> e -> Term k [a]
-- ^ If the variable-expression x is associated with the values [x_1,..,x_n],
-- @'valuesBefore' i x@ provides access to [x_1,..,x_(n-i)]
-- @'valuesBefore' i x@ provides access to [x_1,..,x_(n-i)].
valuesBefore n x = checkNames x $ matchType @a
[ inCaseOfE' @Integer $ \HRefl -> All x n
, inCaseOfE' @String $ \HRefl -> All x n
Expand Down

0 comments on commit 35cc42f

Please sign in to comment.