definition:
|
checkWhere' :: SpanInfo -> [Equation a] -> CSM ()
checkWhere' _ [] = return ()
checkWhere' fSI (eq:eqs) = case fSI of
(SpanInfo (Span (Position _ p) _) _) ->
case eq of
(Equation _ _ _ (SimpleRhs (SpanInfo _ (_:sp:_)) _ _ decls)) -> do checkDecls p sp decls
checkWhere' fSI eqs
(Equation _ _ _ (GuardedRhs (SpanInfo _ (_:sp:_)) _ _ decls)) -> do checkDecls p sp decls
checkWhere' fSI eqs
_ -> return ()
_ -> return ()
|
demand:
|
argument 2
|
deterministic:
|
deterministic operation
|
documentation:
|
-- Checks for both types.
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,{[]}) |-> _ || ({SpanInfo},{:}) |-> _ || ({NoSpanInfo},{:}) |-> _}
|
name:
|
checkWhere'
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Curry.SpanInfo.SpanInfo -> [Curry.Types.Equation a]
-> Control.Monad.Trans.State.StateT Types.CheckState Data.Functor.Identity.Identity ()
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|