Class: have pure instance of openURL throw an error, for now.

Later we may want to include a map of URLs and mime type, bytestring
pairs in pure state to serve as a fake internet.
This commit is contained in:
John MacFarlane 2016-12-12 14:15:49 +01:00
parent 6aff97e4e1
commit 994d431172

View file

@ -396,7 +396,7 @@ instance PandocMonad PandocPure where
modifyPureState $ \st -> st { stUniqStore = us }
return u
_ -> M.fail "uniq store ran out of elements"
openURL _ = undefined -- TODO
openURL _ = throwError $ PandocSomeError "Cannot open URL in PandocPure"
readFileLazy fp = do
fps <- getsPureState stFiles
case infoFileContents <$> getFileInfo fp fps of