CurryInfo: sourceproggui-3.0.0 / SourceProgGUI.splitProgDefs

definition:
 
splitProgDefs :: String -> [(String,(Int,Int))]
splitProgDefs ptxt =
  groupFuns (dropWhile (null . fst)
  (deleteAdjacentFuns
   (concatMap
      (\ (mb,i) -> maybe [] (\s->if s `elem` keywords then [] else [(s,i)]) mb)
      (zip (map funDefOfLine (lines ptxt)) [1..]))))
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
-------------------------------------------------------------------------
Extract start and end lines of all function definitions in a program text:
failfree:
 <FAILING>
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_) |-> {:,[]}}
name:
 splitProgDefs
precedence:
 no precedence defined
result-values:
 {:,[]}
signature:
 String -> [(String, (Prelude.Int, Prelude.Int))]
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term