1
0
forked from GitHub/gf-core

Added Read and Show instances for Type. This required moving some code around.

This commit is contained in:
bjorn
2008-10-20 11:36:17 +00:00
parent a26290659d
commit 2174690c5e
5 changed files with 69 additions and 57 deletions

View File

@@ -54,6 +54,7 @@ pgfMain pgf command =
getCat =
do mcat <- getInput "cat"
case mcat of
Nothing -> return Nothing
Just "" -> return Nothing
Just cat | cat `notElem` PGF.categories pgf ->
throwCGIError 400 "Unknown category" ["Unknown category: " ++ cat]