HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Types.Annotations

Support for source code annotation feature of GHC. That is the ANN pragma.

(c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998

Contents
  1. Main Annotation data types
  2. AnnEnv for collecting and querying Annotations
Synopsis

Main Annotation data types

datadata AnnTarget name

An annotation target

Constructors

Instances4Functor, NFData, Outputable, Binary

AnnEnv for collecting and querying Annotations

valuedeserializeAnns
  1. :: Typeable a
  2. => [Word8] -> a
  3. -> AnnEnv
  4. -> (ModuleEnv [a], NameEnv [a])

Deserialize all annotations of a given type. This happens lazily, that is no deserialization will take place until the [a] is actually demanded and the [a] can also be empty (the UniqFM is not filtered).