Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
8371c638
Commit
8371c638
authored
Nov 28, 2009
by
Ian Lynagh
Browse files
Whitespace only
parent
2fe38b5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/basicTypes/SrcLoc.lhs
View file @
8371c638
...
@@ -136,7 +136,7 @@ srcLocCol _other = panic "srcLocCol: unknown col"
...
@@ -136,7 +136,7 @@ srcLocCol _other = panic "srcLocCol: unknown col"
advanceSrcLoc :: SrcLoc -> Char -> SrcLoc
advanceSrcLoc :: SrcLoc -> Char -> SrcLoc
advanceSrcLoc (SrcLoc f l _) '\n' = SrcLoc f (l + 1) 1
advanceSrcLoc (SrcLoc f l _) '\n' = SrcLoc f (l + 1) 1
advanceSrcLoc (SrcLoc f l c) _ = SrcLoc f l (c + 1)
advanceSrcLoc (SrcLoc f l c) _ = SrcLoc f l (c + 1)
advanceSrcLoc loc
_
= loc
-- Better than nothing
advanceSrcLoc loc
_
= loc
-- Better than nothing
\end{code}
\end{code}
%************************************************************************
%************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment