File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ data LispError = NumArgs (Maybe Integer) [LispVal] -- ^Invalid number of functio
141
141
| InternalError String {- ^ An internal error within husk; in theory user (Scheme) code
142
142
should never allow one of these errors to be triggered. -}
143
143
| Default String -- ^ Default error
144
- | ErrorWithCallHist LispError [LispVal ]
144
+ | ErrorWithCallHist LispError [LispVal ] -- ^ Wraps an error to also include the current call history
145
145
146
146
-- | Create a textual description for a 'LispError'
147
147
showError :: LispError -> String
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ escapeBackslashes = foldr step []
29
29
-- | Remove leading/trailing white space from a string; based on corresponding
30
30
-- Python function. Code taken from:
31
31
--
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/>
33
33
strip :: String -> String
34
34
strip s = dropWhile ws $ reverse $ dropWhile ws $ reverse s
35
35
where ws = (`elem` [' ' , ' \n ' , ' \t ' , ' \r ' ])
@@ -43,7 +43,7 @@ countLetters :: Char -> String -> Int
43
43
countLetters c str = length $ filter (== c) str
44
44
45
45
-- | Take last n elements of a list, from:
46
- -- http://stackoverflow.com/q/17252851/101258
46
+ -- < http://stackoverflow.com/q/17252851/101258>
47
47
lastN' :: Int -> [a ] -> [a ]
48
48
lastN' n xs = DL. foldl' (const . drop 1 ) xs (drop n xs)
49
49
You can’t perform that action at this time.
0 commit comments