Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- renameDickinson :: Int -> Dickinson a -> (Dickinson a, Int)
- renameDickinsonM :: (MonadState s m, HasRenames s) => Dickinson a -> m (Dickinson a)
- renameDeclarationsM :: (MonadState s m, HasRenames s) => [Declaration a] -> m [Declaration a]
- renameDeclarationM :: (MonadState s m, HasRenames s) => Declaration a -> m (Declaration a)
- renameExpressionM :: (MonadState s m, HasRenames s) => Expression a -> m (Expression a)
- initRenames :: Renames
- maxLens :: Lens' Renames Int
- boundLens :: Lens' Renames (IntMap Int)
- replaceUnique :: (MonadState s m, HasRenames s) => Unique -> m Unique
- type RenameM = State Renames
- data Renames = Renames {}
- class HasRenames a where
Documentation
renameDickinsonM :: (MonadState s m, HasRenames s) => Dickinson a -> m (Dickinson a) Source #
The renamer ensures global uniqueness and is used during evaluation to clone expressions with bound variables.
renameDeclarationsM :: (MonadState s m, HasRenames s) => [Declaration a] -> m [Declaration a] Source #
renameDeclarationM :: (MonadState s m, HasRenames s) => Declaration a -> m (Declaration a) Source #
renameExpressionM :: (MonadState s m, HasRenames s) => Expression a -> m (Expression a) Source #
Since: 0.1.1.0
replaceUnique :: (MonadState s m, HasRenames s) => Unique -> m Unique Source #
Renamer state passed between various stages of compilation
Instances
Generic Renames Source # | |
Binary Renames Source # | |
HasRenames Renames Source # | |
Pretty Renames Source # | |
Defined in Language.Dickinson.Rename | |
type Rep Renames Source # | |
Defined in Language.Dickinson.Rename type Rep Renames = D1 ('MetaData "Renames" "Language.Dickinson.Rename" "language-dickinson-1.4.3.0-u4JKvBug5L7Xak6MfKGcR-dickinson" 'False) (C1 ('MetaCons "Renames" 'PrefixI 'True) (S1 ('MetaSel ('Just "max_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "bound") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (IntMap Int)))) |
class HasRenames a where Source #
Since: 0.1.1.0