Skip to content

Commit e935904

Browse files
committed
move instance MonadStore Fix1T to the parent
1 parent 56d3774 commit e935904

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Nix/Effects.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ class (MonadFile m,
7474

7575
traceEffect :: String -> m ()
7676

77+
instance (MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) where
78+
addToStore a b c d = lift $ addToStore a b c d
79+
addTextToStore' a b c d = lift $ addTextToStore' a b c d
80+
7781
class Monad m => MonadIntrospect m where
7882
recursiveSize :: a -> m Word
7983
default recursiveSize :: (MonadTrans t, MonadIntrospect m', m ~ t m') => a -> m Word

src/Nix/Standard.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ import Nix.Value.Monad
5252
import Nix.Var
5353

5454

55-
instance (MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) where
56-
addToStore a b c d = lift $ addToStore a b c d
57-
addTextToStore' a b c d = lift $ addTextToStore' a b c d
58-
59-
---------------------------------------------------------------------------------
60-
6155
newtype StdCited m a = StdCited
6256
{ _stdCited :: Cited (StdThunk m) (StdCited m) m a }
6357
deriving

0 commit comments

Comments
 (0)