| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Liquid.GHC.API.StableModule
Synopsis
- data StableModule
- mkStableModule :: UnitId -> ModuleName -> StableModule
- unStableModule :: StableModule -> Module
- toStableModule :: Module -> StableModule
- renderModule :: Module -> String
Documentation
data StableModule Source #
A newtype wrapper around a Module which:
- Allows a
Moduleto be serialised (i.e. it has aBinaryinstance) - It tries to use stable comparison and equality under the hood.
Instances
Constructing a StableModule
mkStableModule :: UnitId -> ModuleName -> StableModule Source #
Creates a new StableModule out of a ModuleName and a UnitId.
Converting a StableModule into a standard Module
unStableModule :: StableModule -> Module Source #
Utility functions
toStableModule :: Module -> StableModule Source #
Converts a Module into a StableModule.
renderModule :: Module -> String Source #