HTF-0.14.0.3: The Haskell Test Framework

Safe HaskellSafe
LanguageHaskell2010

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 :: Location Source #

The unknown location (file ? and line 0).

fileName :: Location -> String Source #

Extract the file name of a Location.

lineNumber :: Location -> Int Source #

Extract the line number of a Location.

makeLoc Source #

Arguments

:: String

The file name

-> Int

The line number

-> Location 

Create a new location.