You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.10 causes Couldn't match expected type Data.Text.Internal.Text' with actual type Data.ByteString.Builder.Internal.Builder' #293
I get the following error now in the code generated by Aeson.TH:
src\Language\Clafer\Intermediate\Intclafer.hs:392:3:
Couldn't match expected type `Data.Text.Internal.Text'
with actual type `Data.ByteString.Builder.Internal.Builder'
In the first argument of `(Data.Aeson..=)', namely
`aeson-0.10.0.0:Data.Aeson.Encode.Builder.text
(Data.Text.pack "gcard")'
In the first argument of `(<$>)', namely
`(aeson-0.10.0.0:Data.Aeson.Encode.Builder.text
(Data.Text.pack "gcard")
Data.Aeson..=)'
src\Language\Clafer\Intermediate\Intclafer.hs:400:3:
Couldn't match expected type `Data.Text.Internal.Text'
with actual type `Data.ByteString.Builder.Internal.Builder'
In the first argument of `(Data.Aeson..=)', namely
`aeson-0.10.0.0:Data.Aeson.Encode.Builder.text
(Data.Text.pack "iType")'
In the first argument of `(<$>)', namely
`(aeson-0.10.0.0:Data.Aeson.Encode.Builder.text
(Data.Text.pack "iType")
Data.Aeson..=)'
I ran into the same issue. An instance that used to work, it breaks on aeson-0.10.0.0. At the moment, I am building against 0.9.0.1, but I would like to build my package using the newest version. What is necessary to do in order to adapt to the new aeson?
@Osager since that is an old LTS version it contains an old version of aeson without the fix. lts-4 was also discontinued early in favor of lts-5 which reverted to aeson 0.9.* (which doesn't have this problem either).
Activity
juodaspaulius commentedon Sep 24, 2015
Yep, I was having the same issue and had to downgrade to 0.9.0.1..
s9gf4ult commentedon Sep 30, 2015
I have the same issue.
Daniel-Diaz commentedon Oct 4, 2015
I ran into the same issue. An instance that used to work, it breaks on
aeson-0.10.0.0. At the moment, I am building against 0.9.0.1, but I would like to build my package using the newest version. What is necessary to do in order to adapt to the new aeson?ankhers commentedon Oct 9, 2015
I'm also seeing this issue.
It has something to do with
omitNothingFields = True. If you remove that option, things should compile normally.basvandijk commentedon Oct 10, 2015
This should be fixed by 159de4f. @bos will you do the release honours?
Fix haskell#293
mantkiew commentedon Jan 6, 2016
I confirm that it's fixed with HEAD (latest commit ).
@bos New bug fix release pretty pretty please?
LTS-4.0 contains
aeson-0.10.0.0, so I have to do the following instack.yaml:Osager commentedon Aug 1, 2016
@ankhers
I am still having the exact issue with LTS-4.1
bergmark commentedon Aug 1, 2016
@Osager since that is an old LTS version it contains an old version of aeson without the fix. lts-4 was also discontinued early in favor of lts-5 which reverted to aeson 0.9.* (which doesn't have this problem either).