on master help sign in
fix: Ambiguous occurrence AesonException
commit27d87f01d1499ea5cbe72e068635a5b7855db93d authorSebastian Estrella <2049686+sestrella@users.noreply.github.com> dateThu 23 Feb 2023, 17:51 (4 years ago) parent02e49d6
1 file changed+4
yaml/src/Data/Yaml/Internal.hs+4
yaml/src/Data/Yaml/Internal.hs+4
@@ -34,7 +34,11 @@ import Control.Monad (when, unless)
3434import Control.Monad.Trans.Resource (ResourceT, runResourceT)
3535import Control.Monad.State.Strict
3636import Control.Monad.Reader
37+#if MIN_VERSION_aeson(2,1,2)
38+import Data.Aeson hiding (AesonException)
39+#else
3740import Data.Aeson
41+#endif
3842#if MIN_VERSION_aeson(2,0,0)
3943import qualified Data.Aeson.Key as K
4044import qualified Data.Aeson.KeyMap as M