Skip to content

Commit 32f98be

Browse files
committed
add GHC 9.0 support
This shows the power of the cleaning & organization of the code. I expected there is something complex about the update. But in reality - what was needed is the proper ordering of the code. Goot that I love preparation & to order the code before doing work. Nice.
1 parent 3d9121c commit 32f98be

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Nix/Expr/Types.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,16 @@ instance TH.Lift NExpr where
605605

606606
-- ** Methods
607607

608+
#if __GLASGOW_HASKELL__ >= 900
609+
hashAt
610+
:: Functor f
611+
=> VarName
612+
-> (Maybe v -> f (Maybe v))
613+
-> AttrSet v
614+
-> f (AttrSet v)
615+
#else
608616
hashAt :: VarName -> Lens' (AttrSet v) (Maybe v)
617+
#endif
609618
hashAt = flip alterF
610619

611620
-- | Get the name out of the parameter (there might be none).

0 commit comments

Comments
 (0)