Skip to content

Commit d38b08c

Browse files
committed
Expr: Types: Annotated: pattern NEnvPath(_->AnnF)
1 parent 8441fe9 commit d38b08c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Nix/Exec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ instance MonadNix e t f m => MonadEval (NValue t f m) m where
217217
evalEnvPath p = do
218218
scope <- currentScopes
219219
span <- currentPos
220-
nvPathP (Provenance scope $ NEnvPath_ span p) <$>
220+
nvPathP (Provenance scope $ NEnvPathAnnF span p) <$>
221221
findEnvPath @t @f @m (coerce p)
222222

223223
evalUnary op arg = do

src/Nix/Expr/Types/Annotated.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ pattern NSetAnnF ann recur x = AnnF ann (NSet recur x)
213213
pattern NLiteralPathAnnF :: SrcSpan -> Path -> NExprLocF r
214214
pattern NLiteralPathAnnF ann x = AnnF ann (NLiteralPath x)
215215

216-
pattern NEnvPath_ :: SrcSpan -> Path -> NExprLocF r
217-
pattern NEnvPath_ ann x = AnnF ann (NEnvPath x)
216+
pattern NEnvPathAnnF :: SrcSpan -> Path -> NExprLocF r
217+
pattern NEnvPathAnnF ann x = AnnF ann (NEnvPath x)
218218

219219
pattern NUnary_ :: SrcSpan -> NUnaryOp -> r -> NExprLocF r
220220
pattern NUnary_ ann op x = AnnF ann (NUnary op x)
@@ -245,7 +245,7 @@ pattern NAssert_ ann x y = AnnF ann (NAssert x y)
245245

246246
pattern NSynHole_ :: SrcSpan -> VarName -> NExprLocF r
247247
pattern NSynHole_ ann x = AnnF ann (NSynHole x)
248-
{-# complete NConstantAnnF, NStrAnnF, NSymAnnF, NListAnnF, NSetAnnF, NLiteralPathAnnF, NEnvPath_, NUnary_, NBinary_, NSelect_, NHasAttr_, NAbs_, NLet_, NIf_, NWith_, NAssert_, NSynHole_ #-}
248+
{-# complete NConstantAnnF, NStrAnnF, NSymAnnF, NListAnnF, NSetAnnF, NLiteralPathAnnF, NEnvPathAnnF, NUnary_, NBinary_, NSelect_, NHasAttr_, NAbs_, NLet_, NIf_, NWith_, NAssert_, NSynHole_ #-}
249249

250250

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

src/Nix/Reduce.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ reduce (NUnary_ uann op arg) =
173173
reduce (NBinary_ bann NApp fun arg) = fun >>= \case
174174
f@(Fix (NSymAnnF _ "import")) ->
175175
(\case
176-
-- Fix (NEnvPath_ pann origPath) -> staticImport pann origPath
176+
-- Fix (NEnvPathAnnF pann origPath) -> staticImport pann origPath
177177
Fix (NLiteralPathAnnF pann origPath) -> staticImport pann origPath
178178
v -> pure $ Fix $ NBinary_ bann NApp f v
179179
) =<< arg

0 commit comments

Comments
 (0)