Image.Loader
An interface that a backend shall implement.
The functions provided by a loader return an OGRE document, wrapped into option and error monads, thus the three outcomes are possible with the following interpretation:
Ok None
- a loader doesn't know how handle files of this type.Ok (Some doc)
- a loader was able to obtain some information from the input.Error err
- a file was corrupted, according to the loader.