haskell-token-utils-0.0.0.6: Utilities to tie up tokens to an AST

Safe HaskellNone

Language.Haskell.TokenUtils.HSE.Layout

Synopsis

Documentation

loadFile :: FilePath -> IO (ParseResult (Module SrcSpanInfo, [Loc TuToken]))Source

Load a file using 'haskell-src-exts' to provide both the AST and tokens

loadFileWithMode :: ParseMode -> FilePath -> IO (ParseResult (Module SrcSpanInfo, [Loc TuToken]))Source

Load a file using 'haskell-src-exts' to provide both the AST and tokens, using a custom loading mode allowing extensions to be enabled

data TuToken Source

Constructors

T Token 
C Comment 

Instances

Eq TuToken 
Show TuToken 
IsToken (Loc TuToken) 
Allocatable (Module SrcSpanInfo) (Loc TuToken)

This instance is the purpose of this module