Skip to content

Commit f4d26ae

Browse files
Zilin ChenZilin Chen
authored andcommitted
cogent: fix import for newer versions of base
1 parent 89c1403 commit f4d26ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cogent/src/Cogent/Interpreter.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ import qualified Data.Vec as V
5454

5555
import Control.Monad.RWS.Strict
5656
import Control.Monad.State
57+
#if MIN_VERSION_base(4,16,0)
58+
import Data.Bits hiding (And)
59+
#else
5760
import Data.Bits
61+
#endif
5862
import Data.Either (fromLeft, fromRight, isLeft)
5963
import Data.Function ((&))
6064
import Data.IORef

0 commit comments

Comments
 (0)