Safe Haskell | Safe-Inferred |
---|---|
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
Module
to be serialised (i.e. it has aBinary
instance) - 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 #