ddc-interface-0.4.1.3: Disciplined Disciple Compiler user interface support.

Safe HaskellSafe-Inferred

DDC.Interface.Source

Synopsis

Documentation

data Source Source

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 .dcx batch file.

Instances

Eq Source 
Show Source 

lineStartOfSource :: Source -> IntSource

Get the starting source line number to report for this source.

nameOfSource :: Source -> StringSource

Get the name of a source.