Add new convertNix function in Convert.hs
This commit is contained in:
parent
214f85ba70
commit
7759d171e8
|
@ -586,3 +586,6 @@ instance (Applicative m, ToNix a m (NValueNF m)) => ToNix [a] m (NValueNF m) whe
|
|||
|
||||
instance MonadThunk (NValue m) (NThunk m) m => ToNix (NThunk m) m (NValue m) where
|
||||
toNix = force ?? pure
|
||||
|
||||
convertNix :: forall a t m v. (FromNix a m t, ToNix a m v, Monad m) => t -> m v
|
||||
convertNix = fromNix @a >=> toNix
|
||||
|
|
Loading…
Reference in a new issue