CurryInfo: currypp-3.2.0 / CPP.Helpers.checkRequiredImport

definition: Info
 
checkRequiredImport :: String -> String -> [String] -> IO ()
checkRequiredImport currmod reqmod imps =
 if reqmod `elem` imps
   then return ()
   else do
     putStrLn $ unlines $
       [ "WARNING: Module '" ++ currmod ++ "': '" ++ reqmod ++
         "' is required but not imported!"
       , "Please add it to the list of imports to avoid compilation problems."
       , "In the meantime, I try to insert this import..."
       ]
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
---------------------------------------------------------------------------
Checks whether a module is in the import list.
Aborts with an error if this is not the case.
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_) |-> _}
name: Info
 checkRequiredImport
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> String -> [String] -> Prelude.IO ()
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms