CurryInfo: curry-ast-3.1.0 / Curry.SpanInfo.fromSpanInfoList

definition:
fromSpanInfoList :: [SpanInfo] -> SpanInfo
fromSpanInfoList []       = NoSpanInfo
fromSpanInfoList xs@(s:_) = SpanInfo sp sps
  where
    sp  = Span (getStartPosition s) (getEndPosition (last xs))
    sps = concatMap getSrcInfoPoints xs
    last []           = error "Empty list"
    last [x]          = x
    last (_:xs'@(_:_)) = last xs'
demand:
argument 1
deterministic:
deterministic operation
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({[]}) |-> {NoSpanInfo} || ({:}) |-> {SpanInfo}}
name:
fromSpanInfoList
precedence:
no precedence defined
result-values:
{NoSpanInfo,SpanInfo}
signature:
[SpanInfo] -> SpanInfo
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term