Safe Haskell | Safe-Inferred |
---|
- data Source
- = SourceFile FilePath
- | SourceArgs
- | SourceConsole Int
- | SourceBatch FilePath Int
- lineStartOfSource :: Source -> Int
- nameOfSource :: Source -> String
Documentation
Where some source code was obtained from.
This is used when generating error messages.
SourceFile FilePath | Read directly from a file. |
SourceArgs | Supplied on the command line. |
SourceConsole Int | Typed into the console. |
SourceBatch FilePath Int | Part of a |
lineStartOfSource :: Source -> IntSource
Get the starting source line number to report for this source.
nameOfSource :: Source -> StringSource
Get the name of a source.