Skip to content

Commit

Permalink
move instance MonadStore Fix1T to the parent
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha committed Feb 8, 2021
1 parent 56d3774 commit e935904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/Nix/Effects.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ class (MonadFile m,

traceEffect :: String -> m ()

instance (MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) where
addToStore a b c d = lift $ addToStore a b c d
addTextToStore' a b c d = lift $ addTextToStore' a b c d

class Monad m => MonadIntrospect m where
recursiveSize :: a -> m Word
default recursiveSize :: (MonadTrans t, MonadIntrospect m', m ~ t m') => a -> m Word
Expand Down
6 changes: 0 additions & 6 deletions src/Nix/Standard.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ import Nix.Value.Monad
import Nix.Var


instance (MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) where
addToStore a b c d = lift $ addToStore a b c d
addTextToStore' a b c d = lift $ addTextToStore' a b c d

---------------------------------------------------------------------------------

newtype StdCited m a = StdCited
{ _stdCited :: Cited (StdThunk m) (StdCited m) m a }
deriving
Expand Down

0 comments on commit e935904

Please sign in to comment.