CurryInfo: nonstrictunif-optimize-3.0.0 / NonStrictOpt.readWordsInFirstCommentLine

definition: Info
 
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: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Read the words in the first comment line and return them, if the file
start with a comment, otherwise return the empty list:
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 readWordsInFirstCommentLine
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> Prelude.IO [String]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term