Copyright | (C) 2012-2016 University of Twente 2017 Google Inc. |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | Christiaan Baaij <christiaan.baaij@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Capture-free substitution function for CoreHW
Synopsis
- substTys :: [(TyOccName, Type)] -> Type -> Type
- substTy :: TyOccName -> Type -> Type -> Type
- substKindWith :: [(KiOccName, Kind)] -> Kind -> Kind
- substTyInTm :: TyOccName -> Type -> Term -> Term
- substTysinTm :: [(TyOccName, Type)] -> Term -> Term
- substTm :: TmOccName -> Term -> Term -> Term
- substTms :: [(TmOccName, Term)] -> Term -> Term
- substBndr :: TmOccName -> Term -> LetBinding -> LetBinding
Documentation
substBndr :: TmOccName -> Term -> LetBinding -> LetBinding Source #
Substitutes a term in a let-binding