| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Top.Repo
Description
Permanently register and retrieve absolute type definitions
- data RepoProtocol
- recordType :: Model a => Config -> Proxy a -> IO ()
- solveType :: Repo -> Config -> AbsType -> IO (Either RepoError AbsTypeModel)
- knownTypes :: Config -> IO (Either String [(AbsRef, AbsADT)])
Documentation
data RepoProtocol Source #
A (simplistic) protocol to permanently store and retrieve ADT definitions.
Constructors
| Record AbsADT | Permanently record an absolute type |
| Solve AbsRef | Retrieve the absolute type |
| Solved AbsRef AbsADT | Return the absolute type identified by an absolute reference |
| AskDataTypes | Request the list of all known data types |
| KnownDataTypes [(AbsRef, AbsADT)] | Return the list of all known data types |
Instances