stan-0.1.2.1: Haskell STatic ANalyser
Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Stan.Hie.MatchAst

Description

Some Inspections require to know about AST and some mechanism to match parts of syntax tree to the given PatternAst. This information on AST expressions is taken from HIE files in a more suitable view.

This module contains an implementation of the process of retrieval of AST information from HIE files.

Synopsis

Documentation

hieMatchPatternAst Source #

Arguments

:: HieFile

HIE file

-> HieAST TypeIndex

Current AST node to match

-> PatternAst

Pattern to match against

-> Bool

True if pattern matches AST node

Matching function that matches current AST node with a given pattern.