CurryInfo: base-3.4.0 / Prelude.lines

definition: Info
 
lines :: String -> [String]
lines []       = []
lines as@(_:_) = let (l, bs) = splitLine as in l : lines bs
 where splitLine []     = ([], [])
       splitLine (c:cs) = if c == '\n' then ([], cs)
                                       else let (ds, es) = splitLine cs
                                            in (c : ds, es)
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Breaks a string into a list of lines where a line is terminated at a
newline character. The resulting lines do not contain newline characters.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({[]}) |-> {[]} || ({:}) |-> {:}}
name: Info
 lines
precedence: Info
 no precedence defined
result-values: Info
 {:,[]}
signature: Info
 [Char] -> [[Char]]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms