mirror of
https://github.com/typeable/validationt.git
synced 2024-11-22 01:34:05 +03:00
Merge pull request #5 from ilyakooo0/remove-transformers-lift
removed transformers-lift dependency
This commit is contained in:
commit
f0afa485d0
@ -11,7 +11,6 @@ import Control.Monad.Base
|
||||
import Control.Monad.Catch
|
||||
import Control.Monad.Except
|
||||
import Control.Monad.State.Strict
|
||||
import Control.Monad.Trans.Lift.Local
|
||||
import Data.Aeson
|
||||
import Data.Foldable as F
|
||||
import Data.List as L
|
||||
@ -32,9 +31,6 @@ newtype ValidationT e m a = ValidationT
|
||||
instance MonadTrans (ValidationT e) where
|
||||
lift = ValidationT . lift . lift
|
||||
|
||||
instance LiftLocal (ValidationT e) where
|
||||
liftLocal _ l f = ValidationT . mapExceptT (mapStateT $ l f) . unValidationT
|
||||
|
||||
-- | Map with 'Monoid' instance which 'mappend' its values
|
||||
newtype MonoidMap k v = MonoidMap (Map k v)
|
||||
deriving (Eq, Ord, Show, Arbitrary)
|
||||
|
@ -35,7 +35,6 @@ library
|
||||
, text
|
||||
, transformers
|
||||
, transformers-base
|
||||
, transformers-lift
|
||||
, vector
|
||||
hs-source-dirs: src
|
||||
default-language: Haskell2010
|
||||
|
Loading…
Reference in New Issue
Block a user