Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Use a better noRange (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell authored Jun 10, 2020
1 parent 7ac6b92 commit c5143e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Development/IDE/Types/Location.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ noFilePath = "<unknown>"

-- A dummy range to use when range is unknown
noRange :: Range
noRange = Range (Position 0 0) (Position 100000 0)
noRange = Range (Position 0 0) (Position 1 0)

showPosition :: Position -> String
showPosition Position{..} = show (_line + 1) ++ ":" ++ show (_character + 1)
Expand Down

0 comments on commit c5143e5

Please sign in to comment.