Safe Haskell | Safe-Inferred |
---|
DDC.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 -> IntSource
Get the starting source line number to report for this source.
nameOfSource :: Source -> StringSource
Get the name of a source.