Just noticed Streams are a kind of Dictionary too, since they have a header
This commit is contained in:
parent
4a6dbda7d3
commit
b916ab5206
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ instance MonadFail Error where
|
||||||
|
|
||||||
castDictionary :: MonadFail m => Object -> m Dictionary
|
castDictionary :: MonadFail m => Object -> m Dictionary
|
||||||
castDictionary (Direct (Dictionary aDict)) = return aDict
|
castDictionary (Direct (Dictionary aDict)) = return aDict
|
||||||
|
castDictionary (Stream {header}) = return header
|
||||||
castDictionary obj = expected "dictionary : " obj
|
castDictionary obj = expected "dictionary : " obj
|
||||||
|
|
||||||
castObjectId :: MonadFail m => DirectObject -> m ObjectId
|
castObjectId :: MonadFail m => DirectObject -> m ObjectId
|
||||||
|
|
Loading…
Reference in a new issue