| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Parser.Locations
Description
- Locations.
Synopsis
- data File_path_and_location = File_path_and_location File_path Location
- data Location
- data With_location t = With_location Location t
- init_location :: Location
- next_char :: Location -> Location
- next_line :: Location -> Location
- write_file_path_and_location :: File_path -> Location -> String
- write_location :: Location -> String
Documentation
data File_path_and_location Source #
Locations with a file path.
Constructors
| File_path_and_location File_path Location |
Instances
| Show File_path_and_location Source # | |
Defined in Parser.Locations Methods showsPrec :: Int -> File_path_and_location -> ShowS # show :: File_path_and_location -> String # showList :: [File_path_and_location] -> ShowS # | |
Locations.
data With_location t Source #
Add a location to any type.
Constructors
| With_location Location t |
Instances
| Show t => Show (With_location t) Source # | |
Defined in Parser.Locations Methods showsPrec :: Int -> With_location t -> ShowS # show :: With_location t -> String # showList :: [With_location t] -> ShowS # | |
init_location :: Location Source #
First line, first character.
write_file_path_and_location :: File_path -> Location -> String Source #
Write the location with the file path.
write_location :: Location -> String Source #
Write the location.