haskell-src-exts-simple-1.20.0.0: A simplified view on the haskell-src-exts AST

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Exts.Simple.Parser

Contents

Description

This module partially reexports Language.Haskell.Exts.Parser with adaptations.

IMPORTANT: if you require compatiblity with ghc 7.8, you should use the function listOf for constructing ListOf values!

Synopsis

Datatypes and Constructors

ListOf

type ListOf = ListOf Source #

Beware that the ListOf constructor only works in a pattern context in ghc-7.8, because that version does not support explicitly bidirectional pattern synonyms.

For code that needs to work with ghc-7.8, we provide the listOf function constructing ListOf values.

pattern ListOf :: forall a. [a] -> ListOf a Source #

listOf :: [a] -> ListOf a Source #

PragmasAndModuleName

PragmasAndModuleHead

ModuleHeadAndImports

Functions

parse :: (Parseable (ast SrcSpanInfo), Functor ast) => String -> ParseResult (ast ()) Source #