]> git.wincent.com - docvim.git/commitdiff
Don't rely on transformers
authorGreg Hurrell <greg@hurrell.net>
Sun, 5 Jun 2016 08:44:47 +0000 (01:44 -0700)
committerGreg Hurrell <greg@hurrell.net>
Sun, 5 Jun 2016 08:44:47 +0000 (01:44 -0700)
Don't want two monad transformer libraries at play here
needlessly.

docvim.cabal
lib/Docvim/Visitor.hs

index ba6e6cd04db79b2e175f8fef8c37520ca7efa1d0..c0fb64582e0fa5657b29c5607e8e68c181a57f52 100644 (file)
@@ -83,7 +83,6 @@ library
                ,    parsec
                ,    pretty-show
                ,    split
-               ,    transformers
   default-language:    Haskell2010
   exposed-modules:  Docvim.AST
                  ,  Docvim.CLI
@@ -126,7 +125,6 @@ test-suite tasty
                ,    tasty-golden
                ,    tasty-hunit
                ,    temporary
-               ,    transformers
   default-language: Haskell2010
   hs-source-dirs:   tests
                 ,   lib
index 4c243f6e56712cc3cf027903c3c3f6dea9575a0d..5c5dbac5997f03c7f657c2a6a7d7aa740a74119e 100644 (file)
@@ -1,11 +1,11 @@
 {-# LANGUAGE LambdaCase #-}
+{-# LANGUAGE FlexibleContexts #-}
 
 module Docvim.Visitor (endBlock, extract, extractBlocks) where
 
 import Control.Applicative (Alternative, (<|>), empty)
 import Control.Monad ((>=>))
--- TODO switch to pure mtl here (reduce dependency footprint)
-import Control.Monad.Trans.Writer (runWriter, tell)
+import Control.Monad.Writer (runWriter, tell)
 import Data.Data.Lens
 import Docvim.AST
 import qualified Data.DList as DList