DTC-1.0.1: Data To Class transformation.

Language.Haskell.DTC.Parser

Contents

Description

All you need to parse a module.

Synopsis

From Language.Haskell.Parser

data ParseResult a

The result of a parse.

Instances

Show a => Show (ParseResult a) 

data HsModule

A Haskell source module.

parseModule :: String -> ParseResult HsModule

Parse of a string, which should contain a complete Haskell 98 module.

Extras

parseModuleWithFN :: FilePath -> String -> ParseResult HsModuleSource

parseModuleWithFN fileName module parse module with a fileName associated.

parseModuleWithSrc :: FilePath -> IO HsModuleSource

Parse a module from a source code file. It throws an error if parsing fails.