Hoogle Search
Within LTS Haskell 24.49 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
TcRnLastStmtNotExpr :: HsStmtContextRn -> UnexpectedStatement -> TcRnMessageghc-lib-parser GHC.Tc.Errors.Types TcRnLastStmtNotExpr is an error caused by the last statement in a statement block not being an expression. Example(s): do x <- pure () do let x = 5 Test cases: renameshould_failT6060 parsershould_failT3811g parsershould_failreadFail028
type
RoleAnnotEnv = NameEnv LRoleAnnotDecl GhcRnghc-lib-parser GHC.Tc.Types No documentation available.
emptyRoleAnnotEnv :: RoleAnnotEnvghc-lib-parser GHC.Tc.Types No documentation available.
mkRoleAnnotEnv :: [LRoleAnnotDecl GhcRn] -> RoleAnnotEnvghc-lib-parser GHC.Tc.Types No documentation available.
-
ghc-lib-parser GHC.Tc.Types.Constraint Do not expand superclasses any further
-
ghc-lib-parser GHC.Tc.Utils.TcType No documentation available.
-
ghc-lib-parser GHC.Types.Id No documentation available.
ProfNote :: CostCentre -> Bool -> Bool -> GenTickish (pass :: TickishPass)ghc-lib-parser GHC.Types.Tickish An {-# SCC #-} profiling annotation, either automatically added by the desugarer as a result of -auto-all, or added by the user.
SourceNote :: RealSrcSpan -> LexicalFastString -> GenTickish (pass :: TickishPass)ghc-lib-parser GHC.Types.Tickish A source note. Source notes are pure annotations: Their presence should neither influence compilation nor execution. The semantics are given by causality: The presence of a source note means that a local change in the referenced source code span will possibly provoke the generated code to change. On the flip-side, the functionality of annotated code *must* be invariant against changes to all source code *except* the spans referenced in the source notes (see "Causality of optimized Haskell" paper for details). Therefore extending the scope of any given source note is always valid. Note that it is still undesirable though, as this reduces their usefulness for debugging and profiling. Therefore we will generally try only to make use of this property where it is necessary to enable optimizations.
profNoteCC :: GenTickish (pass :: TickishPass) -> CostCentreghc-lib-parser GHC.Types.Tickish the cost centre