mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-10-26 16:38:05 +03:00
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.
This commit is contained in:
parent
3d9121c8cc
commit
32f98be25d
@ -605,7 +605,16 @@ instance TH.Lift NExpr where
|
|||||||
|
|
||||||
-- ** Methods
|
-- ** 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)
|
hashAt :: VarName -> Lens' (AttrSet v) (Maybe v)
|
||||||
|
#endif
|
||||||
hashAt = flip alterF
|
hashAt = flip alterF
|
||||||
|
|
||||||
-- | Get the name out of the parameter (there might be none).
|
-- | Get the name out of the parameter (there might be none).
|
||||||
|
Loading…
Reference in New Issue
Block a user