| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Dojang.Types.Registry
Description
This module provides the registry type and functions for reading and
writing the registry file. The registry file stores the path to the
repository so that commands like dojang edit can be run from any
directory.
Synopsis
- data Registry = Registry {}
- readRegistry :: (MonadFileSystem m, MonadIO m) => OsPath -> m (Maybe Registry)
- registryFilename :: OsPath
- writeRegistry :: MonadFileSystem m => OsPath -> Registry -> m ()
Documentation
The registry stores the path to the repository.
Constructors
| Registry | |
Fields
| |
Arguments
| :: (MonadFileSystem m, MonadIO m) | |
| => OsPath | The path to the registry file. |
| -> m (Maybe Registry) |
Read the registry from a file.
registryFilename :: OsPath Source #
The filename for the registry file.
Arguments
| :: MonadFileSystem m | |
| => OsPath | The path to the registry file. |
| -> Registry | The registry to write. |
| -> m () |
Write the registry to a file.