skogsbaer / hscurses

ncurses binding for Haskell
http://hackage.haskell.org/package/hscurses
GNU Lesser General Public License v2.1
60 stars 21 forks source link

Control.Exception block and unblock were removed from GHC (Head) #17

Closed jcristovao closed 10 years ago

jcristovao commented 10 years ago

Hi,

I was trying out GHC Head (7.7), and was unable to compile hscurses:

[1 of 7] Compiling UI.HSCurses.MonadException ( UI/HSCurses/MonadException.hs, dist/build/UI/HSCurses/MonadException.o )

UI/HSCurses/MonadException.hs:107:20:
    Not in scope: ‛block’
    Perhaps you meant ‛blockM’ (line 29)

UI/HSCurses/MonadException.hs:108:20:
    Not in scope: ‛unblock’
    Perhaps you meant ‛unblockM’ (line 30)

It seems block and unblock were already deprecated in 7.6.3. I think block could be easily replaced by mask_, but I'm not so sure about unblock.

mzero commented 10 years ago

I have a patch for this.. will post a pull request soon

mietek commented 10 years ago

Opened PR #20 with a fix.

skogsbaer commented 10 years ago

Just merged #20.