| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unison.Result
Documentation
Constructors
| Parsing (Err v) | |
| NameResolutionFailures [ResolutionFailure loc] | |
| UnknownSymbol v loc | |
| TypeError (ErrorNote v loc) | |
| TypeInfo (InfoNote v loc) | |
| CompilerBug (CompilerBug v loc) |
data CompilerBug v loc Source #
Constructors
| TopLevelComponentNotFound v (Term v loc) | |
| ResolvedNameNotFound v loc Name | |
| TypecheckerBug (CompilerBug v loc) |
Instances
| (Show loc, Var v, Ord loc) => Show (CompilerBug v loc) Source # | |
Defined in Unison.Result Methods showsPrec :: Int -> CompilerBug v loc -> ShowS # show :: CompilerBug v loc -> String # showList :: [CompilerBug v loc] -> ShowS # | |
pattern TypeWarning :: Warn v loc -> Note v loc Source #
makeResult :: forall (m :: Type -> Type) notes a. Applicative m => notes -> Maybe a -> ResultT notes m a Source #
runResultT :: ResultT notes f a -> f (Maybe a, notes) Source #
toEither :: forall (f :: Type -> Type) notes a. Functor f => ResultT notes f a -> ExceptT notes f a Source #
fromParsing :: forall (f :: Type -> Type) v a loc. Monad f => Either (Err v) a -> ResultT (Seq (Note v loc)) f a Source #
tellAndFail :: forall (f :: Type -> Type) note a. Monad f => note -> ResultT (Seq note) f a Source #
compilerBug :: forall (f :: Type -> Type) v loc a. Monad f => CompilerBug v loc -> ResultT (Seq (Note v loc)) f a Source #