|
definition: |
replaceOptionsLine :: String -> String
replaceOptionsLine = unlines . map replOptLine . lines
where
replOptLine s =
if isOptionLine s && "currypp" `isInfixOf` s
then "{-# DO NOT EDIT THIS FILE SINCE IT IS AUTO-GENERATED BY CURRYPP #-}"
else s
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Replace OPTIONS_FRONTEND / OPTIONS_CYMAKE line containing currypp call in a source text by blank line (to avoid recursive calls): |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{() |-> {.._#lambda508}}
|
|
name: |
replaceOptionsLine |
|
precedence: |
no precedence defined |
|
result-values: |
{.._#lambda508}
|
|
signature: |
String -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |