CurryInfo: cpm-3.3.0 / CPM.Package.readPackageSpec

definition:
readPackageSpec :: String -> Either String Package
readPackageSpec s = case parseJSON s of
  Nothing -> Left "Invalid JSON"
  Just j -> case j of
    JObject kv -> packageSpecFromJObject kv
    _          -> Left "Expected a JSON object."
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Reads a package spec from a JSON string.
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> _}
name:
readPackageSpec
precedence:
no precedence defined
result-values:
_
signature:
String -> Prelude.Either String Package
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term