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:
parent
6aff97e4e1
commit
994d431172
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue