liquidhaskell-0.5.0.1: Liquid Types for Haskell

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Liquid.DiffCheck

Contents

Description

This module contains the code for Incremental checking, which finds the part of a target file (the subset of the [CoreBind] that have been modified since it was last checked, as determined by a diff against a saved version of the file.

Synopsis

Changed binders + Unchanged Errors

data DiffCheck Source

Main type of value returned for diff-check.

Constructors

DC 

Use previously saved info to generate DiffCheck target

slice :: FilePath -> [CoreBind] -> GhcSpec -> IO (Maybe DiffCheck) Source

slice returns a subset of the [CoreBind] of the input target file which correspond to top-level binders whose code has changed and their transitive dependencies.

Use target binders to generate DiffCheck target

thin :: [CoreBind] -> [Var] -> [CoreBind] Source

thin returns a subset of the [CoreBind] given which correspond to those binders that depend on any of the Vars provided.

Save current information for next time

saveResult :: FilePath -> Output Doc -> IO () Source

save creates an .saved version of the target file, which will be used to find what has changed the next time target is checked.