Navigation Menu

Skip to content

Commit

Permalink
Move TH down to sort out scoping issues on 7.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuuzetsu committed Oct 5, 2014
1 parent 4c1079d commit 35f9c15
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions yi/src/library/Yi/Types.hs
Expand Up @@ -204,14 +204,6 @@ type WinMarks = MarkSet Mark

data MarkSet a = MarkSet { fromMark, insMark, selMark :: !a } deriving (Traversable, Foldable, Functor)

#if __GLASGOW_HASKELL__ < 708
$(derive makeBinary ''MarkSet)
#else
deriving instance Generic (MarkSet a)
instance Binary a => Binary (MarkSet a)
#endif


data Attributes = Attributes
{ ident :: !BufferId
, bkey__ :: !BufferRef -- ^ immutable unique key
Expand Down Expand Up @@ -357,12 +349,6 @@ instance MonadEditor EditorM where
askCfg = ask
withEditor = id

#if __GLASGOW_HASKELL__ < 708
deriving instance Typeable1 EditorM
#else
deriving instance Typeable EditorM
#endif

class (Monad m, MonadState Editor m) => MonadEditor m where
askCfg :: m Config

Expand Down Expand Up @@ -458,6 +444,19 @@ instance Default RegionStyle where

instance YiVariable RegionStyle

#if __GLASGOW_HASKELL__ < 708
deriving instance Typeable1 EditorM
#else
deriving instance Typeable EditorM
#endif

#if __GLASGOW_HASKELL__ < 708
$(derive makeBinary ''MarkSet)
#else
deriving instance Generic (MarkSet a)
instance Binary a => Binary (MarkSet a)
#endif

#if __GLASGOW_HASKELL__ < 708
$(derive makeBinary ''RegionStyle)
#else
Expand Down

0 comments on commit 35f9c15

Please sign in to comment.