Skip to content

Commit

Permalink
All tests now pass, against GHC master with my branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alanz committed Apr 7, 2024
1 parent b32990d commit e3dfe1f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,8 +1784,8 @@ instance ExactPrint InWarningCategory where

exact (InWarningCategory tkIn source (L l wc)) = do
tkIn' <- markEpToken tkIn
L _ (_,wc') <- markAnnotated (L l (source, wc))
return (InWarningCategory tkIn' source (L l wc'))
L l' (_,wc') <- markAnnotated (L l (source, wc))
return (InWarningCategory tkIn' source (L l' wc'))

instance ExactPrint (SourceText, WarningCategory) where
getAnnotationEntry _ = NoEntryVal
Expand Down Expand Up @@ -2871,9 +2871,9 @@ instance ExactPrint (Sig GhcPs) where
an1 <- markEpAnnLMS'' an0 lidl AnnClose (Just "#-}")
return (SCCFunSig (an1,src) ln' ml')

exact (CompleteMatchSig (an,src) cs mty) = do
exact (CompleteMatchSig (an,src) (L l cs) mty) = do
an0 <- markAnnOpen an src "{-# COMPLETE"
cs' <- markAnnotated cs
cs' <- mapM markAnnotated cs
(an1, mty') <-
case mty of
Nothing -> return (an0, mty)
Expand All @@ -2882,7 +2882,7 @@ instance ExactPrint (Sig GhcPs) where
ty' <- markAnnotated ty
return (an1, Just ty')
an2 <- markEpAnnLMS'' an1 lidl AnnClose (Just "#-}")
return (CompleteMatchSig (an2,src) cs' mty')
return (CompleteMatchSig (an2,src) (L l cs') mty')

-- ---------------------------------------------------------------------

Expand Down
24 changes: 13 additions & 11 deletions tests/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ mkTests = do
return $ TestList [
internalTests,
roundTripTests
-- ,
-- (transformTests libdir)
-- , (failingTests libdir)
-- ,
-- roundTripBalanceCommentsTests
-- ,
-- roundTripMakeDeltaTests
,
(transformTests libdir)
, (failingTests libdir)
,
roundTripBalanceCommentsTests
,
roundTripMakeDeltaTests
]

-- Tests that are no longer needed
Expand Down Expand Up @@ -213,10 +213,12 @@ tt' = do
-- mkParserTest libdir "ghc80" "ForFree.hs"
-- mkParserTestMD libdir "ghc80" "ForFree.hs"

-- Current failures (roundtrip only)
-- mkParserTest libdir "ghc710" "Stmts.hs"
-- mkParserTest libdir "ghc80" "ForFree.hs"
mkParserTest libdir "ghc96" "ContinuationIO.hs"
-- Current failures (makeDeltaAst only)
-- mkParserTest libdir "ghc82" "Completesig03A.hs"
mkParserTestMD libdir "ghc82" "Completesig03A.hs"

-- ExportWarnings_aux.hs
-- ghc98:7:T23465.hs

-- Needs GHC changes

Expand Down

0 comments on commit e3dfe1f

Please sign in to comment.