| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
DDC.Build.Interface.Load
Description
Loader for DDC interface files.
- loadInterface :: FilePath -> UTCTime -> String -> Either Error InterfaceAA
- data Error
- = ErrorEmpty
- | ErrorNoMeta
- | ErrorDuplicate
- | ErrorBadMagic { }
- | ErrorParse { }
- | ErrorParseEnd
- | ErrorLoadTetra (Error Name Error)
- | ErrorLoadSalt (Error Name Error)
- type InterfaceAA = Interface (AnTEC SourcePos Name) ()
Documentation
Arguments
| :: FilePath | File path of interface file, for error messages. |
| -> UTCTime | TimeStamp of interface file. |
| -> String | Interface file source. |
| -> Either Error InterfaceAA |
Load an interface file.
Problems that can arise when loading an interface file.
Constructors
| ErrorEmpty | Empty Interface file. |
| ErrorNoMeta | No module meta information. |
| ErrorDuplicate | Duplicate module information. |
| ErrorBadMagic | Bad magic numbers / header information in alleged interface file. This probably isn't an interface file. |
Fields
| |
| ErrorParse | Parse error in Interface file. |
Fields
| |
| ErrorParseEnd | Parser error at end of input. |
| ErrorLoadTetra (Error Name Error) | Error when loading a tetra core module from the interface file. |
| ErrorLoadSalt (Error Name Error) | Error when loading a salt core module from the interface file. |