Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to build with aeson-2.0 #26

Closed
juhp opened this issue Nov 29, 2021 · 1 comment
Closed

fails to build with aeson-2.0 #26

juhp opened this issue Nov 29, 2021 · 1 comment

Comments

@juhp
Copy link

juhp commented Nov 29, 2021

simple-templates               > /tmp/stack-12dc90534892fb49/simple-templates-1.0.0/src/Web/Simple/Templates/Language.hs:71:57: error:
simple-templates               >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
simple-templates               >                      with: H.HashMap Identifier Value
simple-templates               >       Expected: H.HashMap Identifier Value
simple-templates               >         Actual: Object
simple-templates               >     • In the second argument of ‘H.lookup’, namely ‘obj’
simple-templates               >       In the second argument of ‘($)’, namely ‘H.lookup ident obj’
simple-templates               >       In the expression: fromMaybe Null $ H.lookup ident obj
simple-templates               >    |
simple-templates               > 71 |           Object obj -> fromMaybe Null $ H.lookup ident obj
simple-templates               >    |                                                         ^^^
simple-templates               > 
simple-templates               > /tmp/stack-12dc90534892fb49/simple-templates-1.0.0/src/Web/Simple/Templates/Language.hs:77:57: error:
simple-templates               >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
simple-templates               >                      with: H.HashMap Identifier Value
simple-templates               >       Expected: H.HashMap Identifier Value
simple-templates               >         Actual: Object
simple-templates               >     • In the second argument of ‘H.lookup’, namely ‘obj’
simple-templates               >       In the second argument of ‘($)’, namely ‘H.lookup ident obj’
simple-templates               >       In the expression: fromMaybe Null $ H.lookup ident obj
simple-templates               >    |
simple-templates               > 77 |           Object obj -> fromMaybe Null $ H.lookup ident obj
simple-templates               >    |                                                         ^^^
simple-templates               > 
simple-templates               > /tmp/stack-12dc90534892fb49/simple-templates-1.0.0/src/Web/Simple/Templates/Language.hs:101:41: error:
simple-templates               >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
simple-templates               >                      with: H.HashMap a0 Value
simple-templates               >       Expected: H.HashMap a0 Value
simple-templates               >         Actual: Object
simple-templates               >     • In the first argument of ‘H.toList’, namely ‘obj’
simple-templates               >       In the first argument of ‘go’, namely ‘(H.toList obj)’
simple-templates               >       In the second argument of ‘($)’, namely ‘go (H.toList obj) mempty’
simple-templates               >     |
simple-templates               > 101 |     Object obj -> String $ go (H.toList obj) mempty
simple-templates               >     |                                         ^^^
simple-templates               > 
simple-templates               > /tmp/stack-12dc90534892fb49/simple-templates-1.0.0/src/Web/Simple/Templates/Language.hs:121:52: error:
simple-templates               >     • Couldn't match type: H.HashMap Identifier Value
simple-templates               >                      with: Data.Aeson.KeyMap.KeyMap Value
simple-templates               >       Expected: Object
simple-templates               >         Actual: H.HashMap Identifier Value
simple-templates               >     • In the second argument of ‘($)’, namely
simple-templates               >         ‘H.insert varName newVal orig’
simple-templates               >       In the expression: Object $ H.insert varName newVal orig
simple-templates               >       In an equation for ‘replaceVar’:
simple-templates               >           replaceVar (Object orig) varName newVal
simple-templates               >             = Object $ H.insert varName newVal orig
simple-templates               >     |
simple-templates               > 121 | replaceVar (Object orig) varName newVal = Object $ H.insert varName newVal orig
simple-templates               >     |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simple-templates               > 
simple-templates               > /tmp/stack-12dc90534892fb49/simple-templates-1.0.0/src/Web/Simple/Templates/Language.hs:121:76: error:
simple-templates               >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
simple-templates               >                      with: H.HashMap Identifier Value
simple-templates               >       Expected: H.HashMap Identifier Value
simple-templates               >         Actual: Object
simple-templates               >     • In the third argument of ‘H.insert’, namely ‘orig’
simple-templates               >       In the second argument of ‘($)’, namely
simple-templates               >         ‘H.insert varName newVal orig’
simple-templates               >       In the expression: Object $ H.insert varName newVal orig
simple-templates               >     |
simple-templates               > 121 | replaceVar (Object orig) varName newVal = Object $ H.insert varName newVal orig
simple-templates               >     |                                                                            ^^^^
simple-templates               > 
simple-templates               > /tmp/stack-12dc90534892fb49/simple-templates-1.0.0/src/Web/Simple/Templates/Language.hs:122:39: error:
simple-templates               >     • Couldn't match type ‘Text’ with ‘Key’
simple-templates               >       Expected: Key
simple-templates               >         Actual: Identifier
simple-templates               >     • In the first argument of ‘(.=)’, namely ‘varName’
simple-templates               >       In the expression: varName .= newVal
simple-templates               >       In the first argument of ‘object’, namely ‘[varName .= newVal]’
simple-templates               >     |
simple-templates               > 122 | replaceVar _ varName newVal = object [varName .= newVal]
simple-templates               >     |                                       ^^^^^^^
@alaendle
Copy link

Guess this can be closed? https://hackage.haskell.org/package/simple-2.0.0/reports/1 indicates this project builds with newer aeson versions.

@alevy alevy closed this as completed Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants