Skip to content

Commit 2c9c353

Browse files
committed
Haddock fixes
1 parent 6748108 commit 2c9c353

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hs-src/Language/Scheme/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ data LispError = NumArgs (Maybe Integer) [LispVal] -- ^Invalid number of functio
141141
| InternalError String {- ^An internal error within husk; in theory user (Scheme) code
142142
should never allow one of these errors to be triggered. -}
143143
| Default String -- ^Default error
144-
| ErrorWithCallHist LispError [LispVal]
144+
| ErrorWithCallHist LispError [LispVal] -- ^Wraps an error to also include the current call history
145145

146146
-- |Create a textual description for a 'LispError'
147147
showError :: LispError -> String

hs-src/Language/Scheme/Util.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ escapeBackslashes = foldr step []
2929
-- | Remove leading/trailing white space from a string; based on corresponding
3030
-- Python function. Code taken from:
3131
--
32-
-- http://gimbo.org.uk/blog/2007/04/20/splitting-a-string-in-haskell/
32+
-- <http://gimbo.org.uk/blog/2007/04/20/splitting-a-string-in-haskell/>
3333
strip :: String -> String
3434
strip s = dropWhile ws $ reverse $ dropWhile ws $ reverse s
3535
where ws = (`elem` [' ', '\n', '\t', '\r'])
@@ -43,7 +43,7 @@ countLetters :: Char -> String -> Int
4343
countLetters c str = length $ filter (== c) str
4444

4545
-- | Take last n elements of a list, from:
46-
-- http://stackoverflow.com/q/17252851/101258
46+
-- <http://stackoverflow.com/q/17252851/101258>
4747
lastN' :: Int -> [a] -> [a]
4848
lastN' n xs = DL.foldl' (const .drop 1) xs (drop n xs)
4949

0 commit comments

Comments
 (0)