| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nix.Utils.Fix1
Synopsis
- newtype Fix1 (t :: (k -> Type) -> k -> Type) (a :: k) = Fix1 {}
- newtype Fix1T (t :: (k -> Type) -> (Type -> Type) -> k -> Type) (m :: Type -> Type) (a :: k) = Fix1T {}
- type MonadFix1T (t :: (Type -> Type) -> (Type -> Type) -> Type -> Type) (m :: Type -> Type) = (MonadTrans (Fix1T t), Monad (t (Fix1T t m) m))
Documentation
newtype Fix1 (t :: (k -> Type) -> k -> Type) (a :: k) Source #
The fixpoint combinator. Courtesy of Gregory Malecha. https://gist.github.com/gmalecha/ceb3778b9fdaa4374976e325ac8feced
Instances
newtype Fix1T (t :: (k -> Type) -> (Type -> Type) -> k -> Type) (m :: Type -> Type) (a :: k) Source #
Instances
| MonadReader e (t (Fix1T t m) m) => MonadReader e (Fix1T t m) Source # | |||||
| MonadState s (t (Fix1T t m) m) => MonadState s (Fix1T t m) Source # | |||||
| MonadThunkId m => MonadThunkId (StandardT m) Source # | |||||
| MonadTrans (Fix1T StandardTF) Source # | |||||
Defined in Nix.Standard Methods lift :: Monad m => m a -> Fix1T StandardTF m a # | |||||
| MonadIO (t (Fix1T t m) m) => MonadIO (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||
| MonadCatch (t (Fix1T t m) m) => MonadCatch (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||
| MonadMask (t (Fix1T t m) m) => MonadMask (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 Methods mask :: HasCallStack => ((forall a. Fix1T t m a -> Fix1T t m a) -> Fix1T t m b) -> Fix1T t m b # uninterruptibleMask :: HasCallStack => ((forall a. Fix1T t m a -> Fix1T t m a) -> Fix1T t m b) -> Fix1T t m b # generalBracket :: HasCallStack => Fix1T t m a -> (a -> ExitCase b -> Fix1T t m c) -> (a -> Fix1T t m b) -> Fix1T t m (b, c) # | |||||
| MonadThrow (t (Fix1T t m) m) => MonadThrow (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 Methods throwM :: (HasCallStack, Exception e) => e -> Fix1T t m a # | |||||
| Alternative (t (Fix1T t m) m) => Alternative (Fix1T t m) Source # | |||||
| Applicative (t (Fix1T t m) m) => Applicative (Fix1T t m) Source # | |||||
| Functor (t (Fix1T t m) m) => Functor (Fix1T t m) Source # | |||||
| Monad (t (Fix1T t m) m) => Monad (Fix1T t m) Source # | |||||
| MonadPlus (t (Fix1T t m) m) => MonadPlus (Fix1T t m) Source # | |||||
| MonadFail (t (Fix1T t m) m) => MonadFail (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||
| MonadFix (t (Fix1T t m) m) => MonadFix (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||
| MonadEnv (t (Fix1T t m) m) => MonadEnv (Fix1T t m) Source # | |||||
| MonadExec (t (Fix1T t m) m) => MonadExec (Fix1T t m) Source # | |||||
| MonadHttp (t (Fix1T t m) m) => MonadHttp (Fix1T t m) Source # | |||||
| MonadInstantiate (t (Fix1T t m) m) => MonadInstantiate (Fix1T t m) Source # | |||||
Defined in Nix.Effects | |||||
| MonadIntrospect (t (Fix1T t m) m) => MonadIntrospect (Fix1T t m) Source # | |||||
Defined in Nix.Effects Methods recursiveSize :: a -> Fix1T t m Word Source # | |||||
| MonadPaths (t (Fix1T t m) m) => MonadPaths (Fix1T t m) Source # | |||||
Defined in Nix.Effects Methods getDataDir :: Fix1T t m Path Source # | |||||
| MonadPutStr (t (Fix1T t m) m) => MonadPutStr (Fix1T t m) Source # | |||||
| (MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) Source # | |||||
Defined in Nix.Effects Methods addToStore :: StorePathName -> NarContent -> RecursiveFlag -> RepairFlag -> Fix1T t m (Either ErrorCall StorePath) Source # addTextToStore' :: StorePathName -> Text -> StorePathSet -> RepairFlag -> Fix1T t m (Either ErrorCall StorePath) Source # | |||||
| (MonadFix1T t m, MonadIO (Fix1T t m), MonadFail (Fix1T t m), MonadFile m) => MonadFile (Fix1T t m) Source # | |||||
Defined in Nix.Render Methods readFile :: Path -> Fix1T t m Text Source # listDirectory :: Path -> Fix1T t m [Path] Source # getCurrentDirectory :: Fix1T t m Path Source # canonicalizePath :: Path -> Fix1T t m Path Source # getHomeDirectory :: Fix1T t m Path Source # doesPathExist :: Path -> Fix1T t m Bool Source # doesFileExist :: Path -> Fix1T t m Bool Source # doesDirectoryExist :: Path -> Fix1T t m Bool Source # getSymbolicLinkStatus :: Path -> Fix1T t m FileStatus Source # | |||||
| (MonadFix1T t m, MonadAtomicRef m) => MonadAtomicRef (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||
| (MonadFix1T t m, MonadRef m) => MonadRef (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 Methods newRef :: a -> Fix1T t m (Ref (Fix1T t m) a) Source # readRef :: Ref (Fix1T t m) a -> Fix1T t m a Source # writeRef :: Ref (Fix1T t m) a -> a -> Fix1T t m () Source # modifyRef :: Ref (Fix1T t m) a -> (a -> a) -> Fix1T t m () Source # modifyRef' :: Ref (Fix1T t m) a -> (a -> a) -> Fix1T t m () Source # | |||||
| Generic (Fix1T t m m) Source # | |||||
Defined in Nix.Utils.Fix1 Associated Types
| |||||
| type ThunkId (StandardT m) Source # | |||||
Defined in Nix.Standard | |||||
| type Ref (Fix1T t m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||
| type Rep (Fix1T t m m) Source # | |||||
Defined in Nix.Utils.Fix1 | |||||