@@ -1,15 +1,10 @@
11-- Copyright Corey O'Connor<coreyoconnor@gmail.com>
22{-# LANGUAGE BangPatterns #-}
3−{-# LANGUAGE CPP #-}
43{-# LANGUAGE ExistentialQuantification #-}
54{-# LANGUAGE NamedFieldPuns #-}
65{-# LANGUAGE RankNTypes #-}
76{-# LANGUAGE TemplateHaskell #-}
87
9−#ifndef MIN_VERSION_base
10−#defined MIN_VERSION_base(x,y,z) 1
11−#endif
12−
138-- | Transforms an image into rows of operations.
149module Graphics.Vty.PictureToSpans where
1510
@@ -24,12 +19,7 @@ import Lens.Micro.Mtl
2419import Lens.Micro.TH
2520import Control.Monad.Reader
2621import Control.Monad.State.Strict hiding ( state )
27−
28−#if __GLASGOW_HASKELL__ < 708
29−import Control.Monad.ST.Strict hiding ( unsafeIOToST )
30−#else
3122import Control.Monad.ST.Strict
32−#endif
3323
3424import qualified Data.Vector as Vector hiding ( take, replicate )
3525import Data.Vector.Mutable ( MVector(..))
@@ -37,10 +27,6 @@ import qualified Data.Vector.Mutable as MVector
3727
3828import qualified Data.Text.Lazy as TL
3929
40−#if !(MIN_VERSION_base(4,8,0))
41−import Data.Monoid (mappend)
42−#endif
43−
4430type MRowOps s = MVector s SpanOps
4531
4632type MSpanOps s = MVector s SpanOp