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
evalTMonad :: TMonad a -> Either String a Source
traversem_ :: (Foldable t, Monad f) => (a -> f b) -> t a -> f () Source
prettyType :: JType -> TMonad String 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
addToStack :: Ord a => a -> [Set a] -> [Set a] Source
mapConstraint :: (Monad m, Functor m) => (JType -> m JType) -> Constraint -> m Constraint Source
partitionCs :: [Constraint] -> ([JType], [JType]) Source
instantiateVarRef :: VarRef -> JType -> TMonad () Source
occursCheck :: Int -> JType -> TMonad () 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
newVarDecl :: Ident -> TMonad JType Source
resolveTypeGen :: ((JType -> TMonad JType) -> JType -> TMonad JType) -> JType -> TMonad JType Source
resolveType :: JType -> TMonad JType Source
resolveTypeShallow :: JType -> TMonad JType Source
checkEscapedVars :: [VarRef] -> JType -> TMonad () Source
someUpperBound :: [JType] -> TMonad JType Source
someLowerBound :: [JType] -> TMonad JType Source
typecheckWithBlock :: (JsToDoc a, JMacro a, JTypeCheck a) => a -> TMonad JType Source