|
definition: |
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: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
--------------------------------------------------------------------------- Checks whether a module is in the import list. Aborts with an error if this is not the case. |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_) |-> _}
|
|
name: |
checkRequiredImport |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> String -> [String] -> Prelude.IO () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |