unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.UnisonFile.Summary

Synopsis

Documentation

data FileSummary Source #

A file that parses might not always type-check, but often we just want to get as much information as we have available. This provides a type where we can summarize the information available in a Unison file.

If the file typechecked then all the Ref Ids and types will be filled in, otherwise they will be Nothing.

Instances

Instances details
Show FileSummary Source # 
Instance details

Defined in Unison.UnisonFile.Summary

mkFileSummary :: Maybe (UnisonFile Symbol Ann) -> Maybe (TypecheckedUnisonFile Symbol Ann) -> Maybe FileSummary Source #

Summarize the information available to us from the current state of the file. See FileSummary for more information.

fileDefLocations :: FileSummary -> Map Symbol (Set Ann) Source #

Compute the location of user defined definitions within the file