Permalink
Browse files

correct type for stream callbacks -- use IO CInt not CInt as result type

  • Loading branch information...
1 parent 64909cc commit ea4ddc931762c2095b3c2cc479e2b123fb522974 @Dridus committed Nov 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Sound/PortAudio/Base.hsc
@@ -41,7 +41,7 @@ type PaStreamCallback =
-> Ptr PaStreamCallbackTimeInfo -- timeInfo
-> CInt -- statusFlags
-> Ptr () -- userData
- -> CInt
+ -> IO CInt
)
type PaStreamCallbackFunPtr = FunPtr PaStreamCallback

0 comments on commit ea4ddc9

Please sign in to comment.