| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
DDC.Driver.Interface.Source
- data Source
- lineStartOfSource :: Source -> Int
- nameOfSource :: Source -> String
Documentation
Where some source code was obtained from.
This is used when generating error messages.
Constructors
| 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 -> Int Source #
Get the starting source line number to report for this source.
nameOfSource :: Source -> String Source #
Get the name of a source.