pro-source-0.1.0.0: Utilities for tracking source locations
Copyright© 2019 James Alexander Feldman-Crough
LicenseMPL-2.0
Safe HaskellNone
LanguageHaskell2010

ProSource.SourceOps

Description

 
Synopsis

Documentation

makeSource :: String -> LText -> Source Source #

Create a Source from a descriptive name and a body. The source name is typically a FilePath, but this is not guaranteed. For instance, when read from standard-input, a common choice is to name the source <stdin>.

getSourceLine :: Line -> Source -> Maybe Text Source #

Fetch a single line from a source.