definition: |
resetFormat :: FormatHistory -> (FormatStm, FormatHistory) resetFormat [] = error "Pretty.resetFormat2: illegal format history" resetFormat (stm:stms) = case stm of SetForeground _ -> (SetForeground (prevFGColor stms), stms) SetBackground _ -> (SetBackground (prevBGColor stms), stms) SetIntensity _ -> (SetIntensity (prevIntensity stms), stms) SetBlinkMode _ -> (SetBlinkMode (prevBlinkMode stms), stms) SetItalicized b -> (SetItalicized (not b), stms) SetUnderlined b -> (SetUnderlined (not b), stms) SetCrossedout b -> (SetCrossedout (not b), stms) InverseColoring b -> (InverseColoring (not b), stms) |
demand: |
argument 1 |
deterministic: |
deterministic operation |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({:}) |-> {(,)}} |
name: |
resetFormat |
precedence: |
no precedence defined |
result-values: |
{(,)} |
signature: |
[FormatStm] -> (FormatStm, [FormatStm]) |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |