Type Classes

Type Classes

Share this post

Type Classes
Type Classes
Loc, Span, and Area

Loc, Span, and Area

A Haskell library for calculations on text file positions.

Chris Martin's avatar
Chris Martin
May 10, 2017
∙ Paid
1

Share this post

Type Classes
Type Classes
Loc, Span, and Area
Share

I started using haskell-src-exts recently to parse Haskell files to turn them into LaTeX for The Joy of Haskell. I wasn’t used to this sort of parser that produces an AST that’s mapped back to the source file by line and column numbers, so it took me a while to wrap my head around what to do with its output.

After a while, I settled on some types, invent…

Keep reading with a 7-day free trial

Subscribe to Type Classes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mission Valley Software LLC
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share