Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data LintEnv a = LintEnv {
- _variables :: a -> Either String Convention
- _foreignCxt :: Map Foreign Form
- _globalCxt :: Map Id Form
- variables :: forall a a. Lens (LintEnv a) (LintEnv a) (a -> Either String Convention) (a -> Either String Convention)
- foreignCxt :: forall a. Lens' (LintEnv a) (Map Foreign Form)
- globalCxt :: forall a. Lens' (LintEnv a) (Map Id Form)
- newtype Lint a b = Lint {}
- inferCore :: Core Convention a -> Lint a Form
- checkCore :: Convention -> Core Convention a -> Lint a ()
- with :: Lint b c -> (LintEnv a -> LintEnv b) -> Lint a c
LintEnv
LintEnv | |
|
variables :: forall a a. Lens (LintEnv a) (LintEnv a) (a -> Either String Convention) (a -> Either String Convention) Source
foreignCxt :: forall a. Lens' (LintEnv a) (Map Foreign Form) Source
The Lint Monad
Checking and inference
inferCore :: Core Convention a -> Lint a Form Source
checkCore :: Convention -> Core Convention a -> Lint a () Source