Skip to content

Commit 0503332

Browse files
committed
move instance MonadStore Fix1T to the parent
1 parent d2aaffd commit 0503332

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
@@ -75,6 +75,10 @@ class (MonadFile m,
7575

7676
traceEffect :: String -> m ()
7777

78+
instance (MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) where
79+
addToStore a b c d = lift $ addToStore a b c d
80+
addTextToStore' a b c d = lift $ addTextToStore' a b c d
81+
7882
class Monad m => MonadIntrospect m where
7983
recursiveSize :: a -> m Word
8084
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)