Skip to content

Commit

Permalink
Relax dependencies and 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 4e29c0d commit efcea12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ dependencies:
- base >= 4.10 && < 5
- bytestring
- text
- aeson >= 1.4.7 && < 1.6
- aeson >= 1.4.7
- containers ^>= 0.6.2.1
- unordered-containers ^>= 0.2.10.0
- stm ^>= 2.5.0.0
- polysemy ^>= 1.3.0.0
- polysemy-plugin ^>= 0.2.5.0
- polysemy >= 1.3.0.0
- polysemy-plugin >= 0.2.5.0
- monad-loops
- tdlib-types ^>= 0.4.0

Expand Down
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 efcea12

Please sign in to comment.