|
definition: |
copyCurryCode :: Handle -> String -> IO String
copyCurryCode _ [] = error "\\end{curryprog} missing!"
copyCurryCode hc (d:ds) = case d of
'\n' -> if take 15 ds == "\\end{curryprog}"
then hPutChar hc '\n' >> return (drop 15 ds)
else hPutChar hc d >> copyCurryCode hc ds
_ -> hPutChar hc d >> copyCurryCode hc ds
|
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{:}) |-> _}
|
|
name: |
copyCurryCode |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
System.IO.Handle -> String -> Prelude.IO String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |