Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Env = PrettyPrintEnv
- defaultWidth :: Width
- prettyParseError :: forall v. Var v => String -> Err v -> Pretty ColorText
- prettyResolutionFailures :: forall a. (Annotated a, Ord a) => String -> [ResolutionFailure a] -> Pretty ColorText
- prettyVar :: Var v => v -> Pretty ColorText
- printNoteWithSource :: (Var v, Annotated a, Show a, Ord a) => Env -> String -> Note v a -> Pretty ColorText
- renderCompilerBug :: (Var v, Annotated loc, Ord loc, Show loc) => Env -> String -> CompilerBug v loc -> Pretty ColorText
- renderNoteAsANSI :: (Var v, Annotated a, Show a, Ord a) => Width -> Env -> String -> Note v a -> String
- renderParseErrorAsANSI :: Var v => Width -> String -> Err v -> String
- renderParseErrors :: forall v. Var v => String -> Err v -> [(Pretty ColorText, [Range])]
Documentation
type Env = PrettyPrintEnv Source #
defaultWidth :: Width Source #
prettyResolutionFailures Source #
Pretty prints resolution failure annotations, including a table of disambiguation suggestions.
printNoteWithSource :: (Var v, Annotated a, Show a, Ord a) => Env -> String -> Note v a -> Pretty ColorText Source #
renderCompilerBug :: (Var v, Annotated loc, Ord loc, Show loc) => Env -> String -> CompilerBug v loc -> Pretty ColorText Source #