CurryInfo: nonstrictunif-optimize-3.0.0 / NonStrictOpt.readWordsInFirstCommentLine

definition:
 
readWordsInFirstCommentLine :: String -> IO [String]
readWordsInFirstCommentLine filename = do
  fh <- openFile filename ReadMode
  c1 <- hGetChar fh
  c2 <- hGetChar fh
  if c1=='{' && c2=='-'
   then do cs <- getCommentString fh
           hClose fh
           return (words cs)
   else do hClose fh
           return []
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Read the words in the first comment line and return them, if the file
start with a comment, otherwise return the empty list:
failfree:
 _
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_) |-> _}
name:
 readWordsInFirstCommentLine
precedence:
 no precedence defined
result-values:
 _
signature:
 String -> Prelude.IO [String]
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term