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
But, decodeFile have return type Q (TExp a).
So, example code of decodeFile is not work.
I think that should fix example code to $$(Code $ decodeFile "config.yaml") OR change decodeFile's return value to Code Q a (Is the latter not good idea for backward compatibility?).
The text was updated successfully, but these errors were encountered:
When use
decodeFile
, occur compile error.ref. example code at https://hackage.haskell.org/package/yaml-0.11.11.0/docs/Data-Yaml-TH.html#v:decodeFile
Typed TH splice
$$(...)
expect typeCode Q a
instead ofQ (TExp a)
from GHC 9.0.x.ref. https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#typed-th-quotes-and-splices-have-different-types
But,
decodeFile
have return typeQ (TExp a)
.So, example code of
decodeFile
is not work.I think that should fix example code to
$$(Code $ decodeFile "config.yaml")
OR changedecodeFile
's return value toCode Q a
(Is the latter not good idea for backward compatibility?).The text was updated successfully, but these errors were encountered: