| definition: |  
storeStatistics :: Options -> String -> String -> [String] -> IO ()
storeStatistics opts mname stattxt statcsv = when (optStats opts) $ do
  reportWriting writeFile    (statsFile mname ++ ".txt") stattxt
  reportWriting writeCSVFile (statsFile mname ++ ".csv")
                [statColumnNames, mname : statcsv]
 where
  reportWriting wf f s = do
    when (optVerb opts > 2) $
      printInfoLine $ "Storing statistics in '" ++ f ++ "'..."
    wf f s
    printWhenDetails opts "done" | 
| demand: | no demanded arguments | 
| deterministic: | deterministic operation | 
| documentation: | Store the statitics for a module in a text and a CSV file (if required by the current options). | 
| failfree: | (_, _, _, _) | 
| indeterministic: | referentially transparent operation | 
| infix: | no fixity defined | 
| iotype: |  {(_,_,_,_) |-> _} | 
| name: | storeStatistics | 
| precedence: | no precedence defined | 
| result-values: | _ | 
| signature: | Verify.Options.Options -> String -> String -> [String] -> Prelude.IO () | 
| solution-complete: | operation might suspend on free variables | 
| terminating: | possibly non-terminating | 
| totally-defined: | possibly non-reducible on same data term |