liquidhaskell-0.8.10.2: Liquid Types for Haskell
Safe HaskellNone
LanguageHaskell98

Language.Haskell.Liquid.GHC.Types

Synopsis

Documentation

newtype StableName Source #

A StableName is virtually isomorphic to a GHC's Name but crucially we don't use the Eq instance defined on a Name because it's Unique-based. In particular, GHC doesn't guarantee that if we load an interface multiple times we would get the same Unique for the same Name, and this is a problem when we rely on Names to be the same when we call isExportedVar, which used to use a NameSet derived from the '[AvailInfo]'. As the name implies, a NameSet uses a Names Unique for duplicate detection and indexing, and this would lead to Vars being resolved to a Name which is basically the same, but it has a different Unique, and that would cause the lookup inside the NameSet to fail.

Constructors

MkStableName 

Fields

Instances

Instances details
Eq StableName Source # 
Instance details

Defined in Language.Haskell.Liquid.GHC.Types

Show StableName Source # 
Instance details

Defined in Language.Haskell.Liquid.GHC.Types

Generic StableName Source # 
Instance details

Defined in Language.Haskell.Liquid.GHC.Types

Associated Types

type Rep StableName :: Type -> Type #

Hashable StableName Source # 
Instance details

Defined in Language.Haskell.Liquid.GHC.Types

type Rep StableName Source # 
Instance details

Defined in Language.Haskell.Liquid.GHC.Types

type Rep StableName = D1 ('MetaData "StableName" "Language.Haskell.Liquid.GHC.Types" "liquidhaskell-0.8.10.2-L92dB1QZcuO9sqg2FFZRKf" 'True) (C1 ('MetaCons "MkStableName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)))

mkStableName :: Name -> StableName Source #

Creates a new StableName out of a Name.

availsToStableNameSet :: [AvailInfo] -> HashSet StableName Source #

Converts a list of AvailInfo into a "StableNameSet", similarly to what availsToNameSet would do.

data MGIModGuts Source #

Datatype For Holding GHC ModGuts ------------------------------------------