diff --git a/src/Nix/Expr/Types.hs b/src/Nix/Expr/Types.hs index 887ab34b..b0999c3c 100644 --- a/src/Nix/Expr/Types.hs +++ b/src/Nix/Expr/Types.hs @@ -605,7 +605,16 @@ instance TH.Lift NExpr where -- ** Methods +#if __GLASGOW_HASKELL__ >= 900 +hashAt + :: Functor f + => VarName + -> (Maybe v -> f (Maybe v)) + -> AttrSet v + -> f (AttrSet v) +#else hashAt :: VarName -> Lens' (AttrSet v) (Maybe v) +#endif hashAt = flip alterF -- | Get the name out of the parameter (there might be none).