Skip to content

Commit

Permalink
Fix build with aeson >= 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Bogatov committed Feb 19, 2023
1 parent fba4ef9 commit 8eb9ecb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TDLib/EventLoop.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}

-- | A heavyweight TDLib effect intepreter written using event loop
Expand All @@ -20,7 +21,11 @@ import Control.Monad
import Control.Monad.Loops
import Data.Aeson
import Data.ByteString.Lazy (toStrict)
#if MIN_VERSION_aeson(2,0,0)
import qualified Data.Aeson.KeyMap as HM
#else
import qualified Data.HashMap.Strict as HM
#endif
import Data.IntMap.Strict (IntMap)
import qualified Data.IntMap.Strict as M
import Data.Maybe
Expand Down

0 comments on commit 8eb9ecb

Please sign in to comment.