You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm giving up working on this for the moment. I wanted to post it in case somebody else likes to continue. These errors are left
ghc-compiler-notes/src/GHC/Compiler/Notes/App.hs:98:1: error: [GHC-39999]
• Could not deduce ‘Capability.Source.Internal.Class.HasSource
"AppContext" AppContext (AppT m)’
arising from the superclasses of an instance declaration
from the context: Monad m
bound by the instance declaration
at src/GHC/Compiler/Notes/App.hs:(98,1)-(100,64)
• In the instance declaration for
‘HasReader "AppContext" AppContext (AppT m)’
|
98 | deriving
| ^^^^^^^^...
ghc-compiler-notes/src/GHC/Compiler/Notes/App.hs:102:1: error: [GHC-39999]
• Could not deduce ‘Capability.Source.Internal.Class.HasSource
"envSession" Session.DynFlags (AppT m)’
arising from the superclasses of an instance declaration
from the context: Monad m
bound by the instance declaration
at src/GHC/Compiler/Notes/App.hs:(102,1)-(104,70)
• In the instance declaration for
‘HasReader "envSession" Session.DynFlags (AppT m)’
|
102 | deriving
| ^^^^^^^^...
[ 6 of 10] Compiling GHC.Compiler.Utils.Lexer
ghc-compiler-notes/src/GHC/Compiler/Utils/Lexer.hs:34:25: error:
• The constructor ‘PFailed’ should have 1 argument, but has been given 3
• In the pattern: PFailed _ s d
In an equation for ‘fromParseResult’:
fromParseResult dflags (PFailed _ s d)
= Left $ ParseFailed [(s, Outputable.runSDoc d ctx)]
where
ctx
= Session.initSDocContext dflags
$ Outputable.defaultErrStyle dflags
|
34 | fromParseResult dflags (PFailed _ s d) = Left $ ParseFailed [(s, Outputable.runSDoc d ctx)]
| ^^^^^^^^^^^^^
ghc-compiler-notes/src/GHC/Compiler/Utils/Lexer.hs:44:30: error: [GHC-83865]
• Couldn't match a lifted type with an unlifted type
Expected kind ‘*’,
but ‘ParseResult a0’ has kind ‘TYPE
(ghc-prim-0.10.0:GHC.Types.SumRep
[ghc-prim-0.10.0:GHC.Types.TupleRep
[ghc-prim-0.10.0:GHC.Types.LiftedRep,
ghc-prim-0.10.0:GHC.Types.LiftedRep],
ghc-prim-0.10.0:GHC.Types.LiftedRep])’
• In the first argument of ‘($)’, namely ‘fromPR’
In the expression:
fromPR $ Lexer.unP p $ Lexer.initParserState opts buf loc
In an equation for ‘runParser’:
runParser p dflags buf loc
= fromPR $ Lexer.unP p $ Lexer.initParserState opts buf loc
where
opts
= initParserOpts (dflags `Session.gopt_set` Session.Opt_Haddock)
fromPR = fromParseResult dflags
|
44 | runParser p dflags buf loc = fromPR $ Lexer.unP p $ Lexer.initParserState opts buf loc
| ^^^^^^
ghc-compiler-notes/src/GHC/Compiler/Utils/Lexer.hs:64:30: error: [GHC-83865]
• Couldn't match a lifted type with an unlifted type
Expected kind ‘*’,
but ‘ParseResult a0’ has kind ‘TYPE
(ghc-prim-0.10.0:GHC.Types.SumRep
[ghc-prim-0.10.0:GHC.Types.TupleRep
[ghc-prim-0.10.0:GHC.Types.LiftedRep,
ghc-prim-0.10.0:GHC.Types.LiftedRep],
ghc-prim-0.10.0:GHC.Types.LiftedRep])’
• In the first argument of ‘($)’, namely ‘fromParseResult’
In the expression:
fromParseResult $ Lexer.unP p $ Lexer.initParserState opts buf loc
In an equation for ‘runParser’:
runParser p dflags buf loc
= fromParseResult
$ Lexer.unP p $ Lexer.initParserState opts buf loc
where
opts
= initParserOpts (dflags `Session.gopt_set` Session.Opt_Haddock)
|
64 | runParser p dflags buf loc = fromParseResult $ Lexer.unP p $ Lexer.initParserState opts buf loc
| ^^^^^^^^^^^^^^^
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm giving up working on this for the moment. I wanted to post it in case somebody else likes to continue. These errors are left