Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
LocRange | |
|
data SourceToken t Source
sourceTokenErrorL :: forall t. Lens (SourceToken t) Doc Source
sourceTokenRenderL :: forall t. Lens (SourceToken t) Doc Source
sourceTokenRangeL :: forall t. Lens (SourceToken t) LocRange Source
sourceTokenValueL :: forall t. Lens (SourceToken t) t Source
renderChar :: ℂ -> Doc Source
renderErrorChar :: ℂ -> Doc Source
data SourceInput t Source
(Pretty (Stream (SourceToken t0)), Pretty Loc) => Pretty (SourceInput t) Source |
sourceInputNextLocL :: forall t. Lens (SourceInput t) Loc Source
sourceInputStreamL :: forall t. Lens (SourceInput t) (Stream (SourceToken t)) Source
sourceInput₀ :: Stream (SourceToken t) -> SourceInput t Source
data SourceErrorTrace Source
sourceErrorTraceFromStack :: [𝕊] -> 𝕊 -> SourceErrorTrace Source
data SourceErrorInfo Source
data SourceError t Source
(Pretty (SourceInput t0), Pretty ((⇰) (AddBot LocRange, Doc) SourceErrorInfo)) => Pretty (SourceError t) Source |
sourceErrorContextsL :: forall t. Lens (SourceError t) ((⇰) (AddBot LocRange, Doc) SourceErrorInfo) Source
sourceErrorInputL :: forall t. Lens (SourceError t) (SourceInput t) Source
sourceErrorAppend :: SourceError t -> SourceError t -> SourceError t Source
data SourceErrorMaybe t Source
Monoid (SourceErrorMaybe t) Source | |
Pretty t => Pretty (SourceErrorMaybe t) Source |
sourceErrorMaybeL :: forall t. Prism (SourceErrorMaybe t) (SourceError t) Source
nullSourceErrorL :: forall t. Prism (SourceErrorMaybe t) () Source
data SourceContextPrefix t Source
Monoid (SourceContextPrefix k t) Source | |
Pretty (SourceContextPrefix k t) Source |
sourceContextPrefixRangeL :: forall t. Lens (SourceContextPrefix t) (AddBot LocRange) Source
sourceContextPrefixDisplayErrorL :: forall t. Lens (SourceContextPrefix t) Doc Source
sourceContextPrefixDisplayL :: forall t. Lens (SourceContextPrefix t) Doc Source
sourceContextPrefixBeforeL :: forall t. Lens (SourceContextPrefix t) Doc Source
errorSourceLocalContext :: SourceInput t -> ([𝕊], 𝕊) -> SourceContextPrefix t -> SourceError t Source
sourceLocalContextFromToken :: [Format] -> SourceToken t -> SourceContextPrefix t Source
data SourceContext t Source
Monoid (SourceContext t) Source | |
Pretty (SourceContext t) Source |
displaySourceContext :: SourceContext t -> Doc Source
errorSourceContext :: SourceContext t -> Doc Source