cryptol-2.13.0: Cryptol: The Language of Cryptography
Copyright(c) 2013-2016 Galois Inc.
LicenseBSD3
Maintainercryptol@galois.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cryptol.Parser.Names

Description

This module defines the scoping rules for value- and type-level names in Cryptol.

Synopsis

Documentation

tnamesNT :: Newtype name -> ([Located name], ()) Source #

The names defined by a newtype.

tnamesT :: Ord name => Type name -> Set name Source #

Compute the type synonyms/type variables used by a type.

tnamesC :: Ord name => Prop name -> Set name Source #

The type names used by a prop.

namesD :: Ord name => Decl name -> ([Located name], Set name) Source #

The names defined and used by a single declarations.

tnamesD :: Ord name => Decl name -> ([Located name], Set name) Source #

The type names defined and used by a single declaration.

namesB :: Ord name => Bind name -> ([Located name], Set name) Source #

The names defined and used by a single binding.

namesP :: Pattern name -> [Located name] Source #

The names defined by a pattern. These will always be unqualified names.

boundNames :: Ord name => [name] -> Set name -> Set name Source #

Remove some defined variables from a set of free variables.

boundNamesSet :: Ord name => Set name -> Set name -> Set name Source #

Remove some defined variables from a set of free variables.