[Haskell-beginners] Strange "Not in scope" error message

Matthew Moppett matthewmoppett at gmail.com
Fri Apr 24 16:49:15 UTC 2015


I have a file with the following relevant lines:

import qualified Control.Concurrent as C

...

isCancelled = C.isEmptyMvar . stopConcurrentProcess

Trying to compile this or run it in ghci yields a puzzling error message:

Not in scope: `C.isEmptyMvar'
    Perhaps you meant one of these:
      `C.isEmptyMVar' (imported from Control.Concurrent),
      `C.isEmptyChan' (imported from Control.Concurrent)

Any idea what could be going wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150424/709f3764/attachment.html>


More information about the Beginners mailing list