File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ dependencies:
2323 - base >= 4.10 && < 5
2424 - bytestring
2525 - text
26- - aeson >= 1.4.7 && < 1.6
26+ - aeson >= 1.4.7
2727 - containers ^>= 0.6.2.1
2828 - unordered-containers ^>= 0.2.10.0
2929 - stm ^>= 2.5.0.0
30- - polysemy ^ >= 1.3.0.0
31- - polysemy-plugin ^ >= 0.2.5.0
30+ - polysemy >= 1.3.0.0
31+ - polysemy-plugin >= 0.2.5.0
3232 - monad-loops
3333 - tdlib-types ^>= 0.4.0
3434
Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE ExistentialQuantification #-}
23
34-- | A heavyweight TDLib effect intepreter written using event loop
@@ -20,7 +21,11 @@ import Control.Monad
2021import Control.Monad.Loops
2122import Data.Aeson
2223import Data.ByteString.Lazy (toStrict )
24+ #if MIN_VERSION_aeson(2,0,0)
25+ import qualified Data.Aeson.KeyMap as HM
26+ #else
2327import qualified Data.HashMap.Strict as HM
28+ #endif
2429import Data.IntMap.Strict (IntMap )
2530import qualified Data.IntMap.Strict as M
2631import Data.Maybe
You can’t perform that action at this time.
0 commit comments