Skip to content

Commit a979207

Browse files
committed
Expr: Types: Annotated: pattern NSynHole(_->AnnF)
1 parent fbb34c5 commit a979207

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Nix/Exec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ instance MonadNix e t f m => MonadEval (NValue t f m) m where
155155
scope <- currentScopes
156156
evalError @(NValue t f m) $ SynHole $
157157
SynHoleInfo
158-
{ _synHoleInfo_expr = Fix $ NSynHole_ span name
158+
{ _synHoleInfo_expr = Fix $ NSynHoleAnnF span name
159159
, _synHoleInfo_scope = scope
160160
}
161161

src/Nix/Expr/Types/Annotated.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ pattern NWithAnnF ann x y = AnnF ann (NWith x y)
243243
pattern NAssertAnnF :: SrcSpan -> r -> r -> NExprLocF r
244244
pattern NAssertAnnF ann x y = AnnF ann (NAssert x y)
245245

246-
pattern NSynHole_ :: SrcSpan -> VarName -> NExprLocF r
247-
pattern NSynHole_ ann x = AnnF ann (NSynHole x)
248-
{-# complete NConstantAnnF, NStrAnnF, NSymAnnF, NListAnnF, NSetAnnF, NLiteralPathAnnF, NEnvPathAnnF, NUnaryAnnF, NBinaryAnnF, NSelectAnnF, NHasAttrAnnF, NAbsAnnF, NLetAnnF, NIfAnnF, NWithAnnF, NAssertAnnF, NSynHole_ #-}
246+
pattern NSynHoleAnnF :: SrcSpan -> VarName -> NExprLocF r
247+
pattern NSynHoleAnnF ann x = AnnF ann (NSynHole x)
248+
{-# complete NConstantAnnF, NStrAnnF, NSymAnnF, NListAnnF, NSetAnnF, NLiteralPathAnnF, NEnvPathAnnF, NUnaryAnnF, NBinaryAnnF, NSelectAnnF, NHasAttrAnnF, NAbsAnnF, NLetAnnF, NIfAnnF, NWithAnnF, NAssertAnnF, NSynHoleAnnF #-}
249249

250250

251251
pattern PNConstant :: SrcSpan -> NAtom -> NExprLoc

0 commit comments

Comments
 (0)