|
definition: |
readCategory :: [String] -> Category readCategory [] = General readCategory (catcmt:_) = case cat of "general" -> General "algorithm" -> Algorithm "database" -> Database "web" -> Web "meta" -> Meta _ -> General where (cat,_) = span isIdChar catcmt |
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Determine the category for a module |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({[]}) |-> {General} || ({:}) |-> {Algorithm,Database,General,Meta,Web}}
|
|
name: |
readCategory |
|
precedence: |
no precedence defined |
|
result-values: |
{Algorithm,Database,General,Meta,Web}
|
|
signature: |
[String] -> Category |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |