Skip to content

Commit e1c01ca

Browse files
committed
Merge pull request #83 from thomie/SPEC
Use GHC.Types.SPEC instead of GHC.Exts.SpecConstrAnnotation
2 parents 764aa2e + ae7e847 commit e1c01ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Data/Vector/Fusion/Stream/Monadic.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,21 @@ import Prelude hiding ( length, null,
9292
import Data.Int ( Int8, Int16, Int32, Int64 )
9393
import Data.Word ( Word8, Word16, Word32, Word, Word64 )
9494

95-
#if __GLASGOW_HASKELL__ >= 700
95+
#if __GLASGOW_HASKELL__ >= 708
96+
import GHC.Types ( SPEC(..) )
97+
#elif __GLASGOW_HASKELL__ >= 700
9698
import GHC.Exts ( SpecConstrAnnotation(..) )
9799
#endif
98100

99101
#include "vector.h"
100102
#include "MachDeps.h"
101103

104+
#if __GLASGOW_HASKELL__ < 708
102105
data SPEC = SPEC | SPEC2
103106
#if __GLASGOW_HASKELL__ >= 700
104107
{-# ANN type SPEC ForceSpecConstr #-}
105108
#endif
109+
#endif
106110

107111
emptyStream :: String
108112
{-# NOINLINE emptyStream #-}

0 commit comments

Comments
 (0)