mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-15 22:22:51 -06:00
Added Read and Show instances for Type. This required moving some code around.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user