HTF-0.13.1.0: The Haskell Test Framework

Safe HaskellSafe
LanguageHaskell2010

Test.Framework.Location

Description

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

Synopsis

Documentation

unknownLocation :: Location #

The unknown location (file ? and line 0).

fileName :: Location -> String #

Extract the file name of a Location.

lineNumber :: Location -> Int #

Extract the line number of a Location.

showLoc :: Location -> String #

Render a Location as a String.

makeLoc #

Arguments

:: String

The file name

-> Int

The line number

-> Location 

Create a new location.