|
definition: |
getDefaultOptions :: IO Options
getDefaultOptions = do
rcprops <- readRC
return $
defaultOptions
{ optCRequests = readReqs (rcValue rcprops "classrequests")
, optTRequests = readReqs (rcValue rcprops "typerequests")
, optORequests = readReqs (rcValue rcprops "operationrequests")
, optShowAll = if rcValue rcprops "showall"== "yes" then True else False
, optRemote = if rcValue rcprops "remote" == "yes" then True else False
, optRemoteURL = let rcurl = rcValue rcprops "curryinfourl"
in if null rcurl then curryInfoURL else rcurl
}
where
readReqs s = if null s then [] else splitOn "," s
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
The default options with values from the RC file taken into account. |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{() |-> _}
|
|
name: |
getDefaultOptions |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Prelude.IO Options |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |