Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
eitherIsLeft :: Either a b -> Bool Source #
partitionOut :: (a -> Maybe b) -> [a] -> ([b], [a]) Source #
zipWithOrChange :: (a -> a -> b) -> (a -> b) -> [a] -> [a] -> [b] Source #
zipWithOrIdM :: Monad m => (a -> a -> m a) -> [a] -> [a] -> m [a] Source #
unionWithM :: (Monad m, Ord key) => (val -> val -> m val) -> Map key val -> Map key val -> m (Map key val) Source #
intersectionWithM :: (Monad m, Ord key) => (val -> val -> m b) -> Map key val -> Map key val -> m (Map key b) Source #
composOpM1 :: (Compos1 t, Monad m) => (t -> m t) -> t -> m t Source #
composOpM1_ :: (Compos1 t, Monad m) => (t -> m ()) -> t -> m () Source #
composOpFold1 :: Compos1 t => b -> (b -> b -> b) -> (t -> b) -> t -> b Source #
class JTypeCheck a where Source #
traversem_ :: (Foldable t, Monad f) => (a -> f b) -> t a -> f () Source #
runTypecheckRaw :: JTypeCheck a => a -> (Either String JType, TCState) Source #
runTypecheckFull :: JTypeCheck a => a -> (Either String (String, [Map Ident String]), TCState) Source #
runTypecheck :: JTypeCheck a => a -> Either String String Source #
evalTypecheck :: JTypeCheck a => a -> Either String [Map Ident String] Source #
typecheckMain :: JTypeCheck a => a -> TMonad JType Source #
mapConstraint :: (Monad m, Functor m) => (JType -> m JType) -> Constraint -> m Constraint Source #
partitionCs :: [Constraint] -> ([JType], [JType]) Source #
lookupConstraintsList :: VarRef -> TMonad [Constraint] Source #
checkConstraints :: JType -> [Constraint] -> TMonad () Source #
addConstraint :: VarRef -> Constraint -> TMonad () Source #
cannonicalizeConstraints :: [Constraint] -> TMonad [Constraint] Source #
tryCloseFrozenVars :: TMonad () Source #
frame2VarRefs :: Set t -> [(Maybe a, t)] Source #
resolveTypeGen :: ((JType -> TMonad JType) -> JType -> TMonad JType) -> JType -> TMonad JType Source #
typecheckWithBlock :: (JsToDoc a, JMacro a, JTypeCheck a) => a -> TMonad JType Source #