Copyright | (c) 2013-2016 Galois Inc. |
---|---|
License | BSD3 |
Maintainer | cryptol@galois.com |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- type NameMap = IntMap String
- data WithNames a = WithNames a NameMap
- emptyNameMap :: NameMap
- ppWithNamesPrec :: PP (WithNames a) => NameMap -> Int -> a -> Doc
- ppWithNames :: PP (WithNames a) => NameMap -> a -> Doc
- nameList :: [String] -> [String]
- dump :: PP (WithNames a) => a -> String
- module Cryptol.Utils.PP
Documentation
This packages together a type with some names to be used to display the variables. It is used for pretty printing types.
Instances
PP (WithNames Newtype) Source # | |
PP (WithNames TySyn) Source # | |
PP (WithNames TVar) Source # | |
PP (WithNames Type) Source # | |
PP (WithNames TParam) Source # | |
PP (WithNames Schema) Source # | |
PP (WithNames DeclDef) Source # | |
PP (WithNames Decl) Source # | |
PP (WithNames DeclGroup) Source # | |
PP (WithNames Match) Source # | |
PP (WithNames Expr) Source # | |
PP (WithNames Module) Source # | |
PP (WithNames Subst) Source # | |
PP (WithNames DelayedCt) Source # | |
PP (WithNames Goal) Source # | |
PP (WithNames Error) Source # | |
PP (WithNames Warning) Source # | |
nameList :: [String] -> [String] Source #
Expand a list of base names into an infinite list of variations.
module Cryptol.Utils.PP