fix compilation error on base <4.8 (i.e. GHC <7.10)
commitb77c61a2d9f6d3c7743f13bc93b611992b581e32
authorMasahiro Sakai <masahiro.sakai@gmail.com>
dateMon 12 Sep 2016, 12:16 (10 years ago)
parent4e315e6
MemoTrie.cabal+1
@@ -37,6 +37,7 @@ Library
3737 , newtype-generics >= 0.4
3838 else
3939 Build-Depends: base <4.8.0.0, void
40+ , newtype-generics >= 0.4
4041
4142 Exposed-Modules:
4243 Data.MemoTrie
src/Data/MemoTrie.hs+6−2
@@ -64,9 +64,13 @@ module Data.MemoTrie
6464import Data.Bits
6565import Data.Word
6666import Data.Int
67−-- import Control.Applicative
67+#if !MIN_VERSION_base(4,8,0)
68+import Control.Applicative
69+#endif
6870import Control.Arrow (first,(&&&))
69−-- import Data.Monoid
71+#if !MIN_VERSION_base(4,8,0)
72+import Data.Monoid
73+#endif
7074import Data.Function (on)
7175import GHC.Generics
7276