HTF-0.11.4.0: The Haskell Test Framework

Safe HaskellSafe-Inferred

Test.Framework.Location

Description

This module defines types and functions dealing with source code locations.

Synopsis

Documentation

data Location Source

An abstract type representing locations in a file.

unknownLocation :: LocationSource

The unknown location (file ? and line 0).

fileName :: Location -> StringSource

Extract the file name of a Location.

lineNumber :: Location -> IntSource

Extract the line number of a Location.

makeLocSource

Arguments

:: String

The file name

-> Int

The line number

-> Location 

Create a new location.