Skip to content

Commit

Permalink
Align the EPState initialisation with the definition order
Browse files Browse the repository at this point in the history
  • Loading branch information
alanz committed Dec 16, 2024
1 parent a345899 commit a9d9647
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,19 @@ runEP epReader action = do

defaultEPState :: EPState
defaultEPState = EPState
{ epPos = (1,1)
, dLHS = 0
, pMarkLayout = False
, pLHS = 0
, dMarkLayout = False
, dPriorEndPosition = (1,1)
, uAnchorSpan = badRealSrcSpan
{ uAnchorSpan = badRealSrcSpan
, uExtraDP = Nothing
, uExtraDPReturn = Nothing
, pAcceptSpan = False

, epPos = (1,1)
, pMarkLayout = False
, pLHS = 0

, dPriorEndPosition = (1,1)
, dMarkLayout = False
, dLHS = 0

, epComments = []
, epCommentsApplied = []
, epEof = Nothing
Expand Down

0 comments on commit a9d9647

Please sign in to comment.