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:
Anton-Latukha 2021-07-07 23:16:20 +03:00
parent 3d9121c8cc
commit 32f98be25d
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41

View File

@ -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).