haskell-src-match-0.0.0.1: Testing code generators piece by piece.

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.SourceMatch

Description

This module will implement pattern matching on Haskell source as parsed by `haskell-src-exts`.

Synopsis

Documentation

isStringMatchedToDecl :: String -> DecsQ -> IO (Either MatchingError MatchResult) Source #

This function should read input string, and check that it contains given declaration.

type MatchResult = Map MetaVariable String Source #

Result of matching (metavariables unification)

data T_1 Source #

Dummy Types to use as metavariables

data T_2 Source #

data T_3 Source #

data T_4 Source #

data T_5 Source #

data T_6 Source #

data T_7 Source #

data T_8 Source #

data T_9 Source #