Skip to content

Instantly share code, notes, and snippets.

@arafangion
Created November 30, 2021 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arafangion/82c31f1dfe01c9cc559bbc6abc0ce699 to your computer and use it in GitHub Desktop.
Save arafangion/82c31f1dfe01c9cc559bbc6abc0ce699 to your computer and use it in GitHub Desktop.
Main.hs:210:35: error:
* | No instance for ‘GHC.Generics.Generic
(generic-lens-core-2.2.0.0:Data.Generics.Internal.Families.Changing.ReplaceArgs
(Env' Identity)
(generic-lens-core-2.2.0.0:Data.Generics.Internal.Families.Changing.Unify
b'1 a1))’
| arising from a generic lens focusing on the ‘"envLogger"’ field of type ‘a1’
| in ‘generic-lens-core-2.2.0.0:Data.Generics.Internal.Families.Changing.ReplaceArgs
(Env' Identity)
(generic-lens-core-2.2.0.0:Data.Generics.Internal.Families.Changing.Unify
b'1 a1)’
* In the first argument of `set', namely `(field @"envLogger")'
In the first argument of `(.)', namely
`set (field @"envLogger") lgr'
In the second argument of `(<&>)', namely
`set (field @"envLogger") lgr
. set (field @"envRegion") NorthVirginia'
|
210 | env <- newEnv Discover <&> set (field @"envLogger") lgr . set (field @"envRegion") NorthVirginia
| ^^^^^
Main.hs:210:66: error:
* The type Env'
Identity does not contain a field named 'envRegion'.
* In the first argument of `set', namely `(field @"envRegion")'
In the second argument of `(.)', namely
`set (field @"envRegion") NorthVirginia'
In the second argument of `(<&>)', namely
`set (field @"envLogger") lgr
. set (field @"envRegion") NorthVirginia'
|
210 | env <- newEnv Discover <&> set (field @"envLogger") lgr . set (field @"envRegion") NorthVirginia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment